diff --git a/.gitignore b/.gitignore index ef4f37551..8ce467e13 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ x64/ Release/ Debug/ Inc/ +Jusin154_Team3D/Client/Bin/Resources/ # Imgui 임시 파ì�¼ imgui.ini \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml new file mode 100644 index 000000000..e8082d594 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/ContainerTest.xml @@ -0,0 +1,340 @@ + + + + + + + + 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_fireplace + Prototype_GameObject_SM_HM_3Broom_fireplace_Lod1 + Prototype_GameObject_SM_HM_3Broom_fireplace_Lod2 + Prototype_GameObject_SM_HM_3Broom_fireplace_Lod3 + + + + + + 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_DoorFrame + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod1 + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Window_Glass + Prototype_GameObject_SM_HM_3Broom_Window_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod1 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod2 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod3 + + + + + + + + + + + Prototype_GameObject_SM_HM_3Broom_int_Bar + Prototype_GameObject_SM_HM_3Broom_int_Bar_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_Bar_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_floors + Prototype_GameObject_SM_HM_3Broom_int_floors_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_floors_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_stairs_A + Prototype_GameObject_SM_HM_3Broom_int_stairs_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_stairs_B + Prototype_GameObject_SM_HM_3Broom_int_stairs_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_stairs_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_stairs_D + Prototype_GameObject_SM_HM_3Broom_int_stairs_D_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_walls + Prototype_GameObject_SM_HM_3Broom_int_walls_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_walls_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_walls_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_windows + Prototype_GameObject_SM_HM_3Broom_int_windows_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_A + Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_B + Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_C + Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs_Lod2 + + + + + + Prototype_GameObject_SM_Broom_01 + Prototype_GameObject_SM_Broom_01_Lod1 + Prototype_GameObject_SM_Broom_01_Lod2 + + + + + + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_R + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/MapTest.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/MapTest.xml new file mode 100644 index 000000000..98d8b1513 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/MapTest.xml @@ -0,0 +1,123 @@ + + + + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_MERGED_Entry_Base_Stones.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_MERGED_Side_Stone_Steps.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_MERGED_Winter_Kit_Icicles.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_MERGED_Winter_Kit_Snow.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Decal.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Decal.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Snow_Winter.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Window_Glass.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Wood_Steps_B.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_Wood_Steps_C.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_walls.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_A.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_B.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_windows.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_walls.mo + + + + + + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors.mo + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Test.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Test.xml new file mode 100644 index 000000000..114aea18a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Test.xml @@ -0,0 +1,320 @@ + + + + + + + + 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_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_decals + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_decals_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_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_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_barrels_sign + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_Decals_A + Prototype_GameObject_SM_HM_3Broom_ext_Decals_A_Lod1 + + + + + + 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_ext_Dormer_Wood_Slats + + + + + + Prototype_GameObject_SM_HM_3Broom_fireplace + Prototype_GameObject_SM_HM_3Broom_fireplace_Lod1 + Prototype_GameObject_SM_HM_3Broom_fireplace_Lod2 + Prototype_GameObject_SM_HM_3Broom_fireplace_Lod3 + + + + + + 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_Door_R + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels_Lod1 + + + + + + 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_Window_Glass + Prototype_GameObject_SM_HM_3Broom_Window_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod1 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod2 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod3 + + + + + + Prototype_GameObject_SM_DSkull + Prototype_GameObject_SM_DSkull_Lod1 + Prototype_GameObject_SM_DSkull_Lod2 + Prototype_GameObject_SM_DSkull_Lod3 + + + + + + + + + + + Prototype_GameObject_SM_HM_3Broom_int_stairs_A + Prototype_GameObject_SM_HM_3Broom_int_stairs_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_Bar + Prototype_GameObject_SM_HM_3Broom_int_Bar_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_Bar_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_floors + Prototype_GameObject_SM_HM_3Broom_int_floors_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_floors_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_stairs_B + Prototype_GameObject_SM_HM_3Broom_int_stairs_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_stairs_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_windows + Prototype_GameObject_SM_HM_3Broom_int_windows_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_stairs_D + Prototype_GameObject_SM_HM_3Broom_int_stairs_D_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_walls + Prototype_GameObject_SM_HM_3Broom_int_walls_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_walls_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_walls_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_A + Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_B + Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_C + Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod2 + Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs_Lod1 + Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs_Lod2 + + + + + + Prototype_GameObject_SM_Broom_01 + Prototype_GameObject_SM_Broom_01_Lod1 + Prototype_GameObject_SM_Broom_01_Lod2 + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Fonts/malgunsl.ttf b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/malgunsl.ttf new file mode 100644 index 000000000..4d0c42c74 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/malgunsl.ttf differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Fox.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Fox.fbx deleted file mode 100644 index 59df87b62..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Fox.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91033ee9cf3c1af4c44a2ef730e0800e137294f7f3810876d560a040f59eb7b1 -size 26270032 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger emit.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger emit.png deleted file mode 100644 index 9db79aacf..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger emit.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger spec.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger spec.png deleted file mode 100644 index 8eba8035d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger.png deleted file mode 100644 index 7b557185d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/Scavenger.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/black.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/black.png deleted file mode 100644 index 894f241a8..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/black.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/bow.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/bow.png deleted file mode 100644 index 0c2607b43..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/bow.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/cathedral flame noise.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/cathedral flame noise.png deleted file mode 100644 index 8a7a8f5d2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/cathedral flame noise.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/caustic.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/caustic.png deleted file mode 100644 index 65f6d0a33..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/caustic.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/clouds_normal.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/clouds_normal.png deleted file mode 100644 index 0ab37efa2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/clouds_normal.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/detail texture noise.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/detail texture noise.png deleted file mode 100644 index f835c27d6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/detail texture noise.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/distorted particle ramp.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/distorted particle ramp.png deleted file mode 100644 index 39e8c5611..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/distorted particle ramp.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/door matcap 1.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/door matcap 1.png deleted file mode 100644 index 0066c80e4..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/door matcap 1.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/fox palette - runtime.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/fox palette - runtime.png deleted file mode 100644 index 816c9e9c6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/fox palette - runtime.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/fox palette - runtime1.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/fox palette - runtime1.png deleted file mode 100644 index fb1a3e070..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/fox palette - runtime1.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/hexagon plinth matcap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/hexagon plinth matcap.png deleted file mode 100644 index 02536fa65..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/hexagon plinth matcap.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/ice detail tex.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/ice detail tex.png deleted file mode 100644 index 9a18dbe14..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/ice detail tex.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_aura.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_aura.png deleted file mode 100644 index 35a0022bb..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_aura.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_ring.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_ring.png deleted file mode 100644 index 68d61a314..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_ring.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_ring_spikes.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_ring_spikes.png deleted file mode 100644 index 736e03e06..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_ring_spikes.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_traces.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_traces.png deleted file mode 100644 index d0b43a9bd..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/icedagger_traces.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/key.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/key.png deleted file mode 100644 index a9c238579..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/key.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lantern arc.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lantern arc.png deleted file mode 100644 index e5976229e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lantern arc.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger albedo.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger albedo.png deleted file mode 100644 index 0d675d873..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger albedo.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger emit.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger emit.png deleted file mode 100644 index 379863b6d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger emit.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger spec.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger spec.png deleted file mode 100644 index a0d663f41..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/lanterndagger spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/potion spec.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/potion spec.png deleted file mode 100644 index 769e3bd0a..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/potion spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/potion.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/potion.png deleted file mode 100644 index 0ab9f8893..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/potion.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/prayersmoke textures.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/prayersmoke textures.png deleted file mode 100644 index 3db7d1441..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/prayersmoke textures.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shield redux spec.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shield redux spec.png deleted file mode 100644 index b24c241c5..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shield redux spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shield redux.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shield redux.png deleted file mode 100644 index a4e95832b..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shield redux.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shockwave effect.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shockwave effect.png deleted file mode 100644 index 2420d8491..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/shockwave effect.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/spearbeam.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/spearbeam.png deleted file mode 100644 index 7e1f50d4b..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/spearbeam.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/stick.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/stick.png deleted file mode 100644 index c69e8d3b4..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/stick.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/sword spec.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/sword spec.png deleted file mode 100644 index 74d6b8aa9..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/sword spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/sword.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/sword.png deleted file mode 100644 index 77fb39756..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/sword.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/wand tentacle noise.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/wand tentacle noise.png deleted file mode 100644 index 430702fd7..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Fox/wand tentacle noise.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOB_M_Sniper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOB_M_Sniper_D.png deleted file mode 100644 index f0c80df1e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOB_M_Sniper_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_D.png deleted file mode 100644 index 6ed2c9ebf..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_E.png deleted file mode 100644 index 4669b020d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_MROA.png deleted file mode 100644 index de2e4abf6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_MROA.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_N.png deleted file mode 100644 index c89e83d64..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_E.png deleted file mode 100644 index 5dbbe2dc7..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_MRO.png deleted file mode 100644 index 035ceb7c3..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_N.png deleted file mode 100644 index d3112d6e0..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_E.png deleted file mode 100644 index 34ddde4a1..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_MRO.png deleted file mode 100644 index 42132cafe..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_N.png deleted file mode 100644 index 855cefc69..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1_D.png deleted file mode 100644 index 39b18306d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_2_D.png deleted file mode 100644 index 5ff7e66a6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOL_TombProtector_2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_Spline_clouds_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_Spline_clouds_D.png deleted file mode 100644 index 9f9c0704f..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_Spline_clouds_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_A_D.png deleted file mode 100644 index b8c7a6e9e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_A_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_B_D.png deleted file mode 100644 index 73a27fef9..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.bin deleted file mode 100644 index 594d7b2a7..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.bin and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.fbx deleted file mode 100644 index a9b67e9ba..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Body.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7586f3029f295dbcb4d0306a07464420af0efc524cf09568464b07d67340a95c -size 3076716 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.bin new file mode 100644 index 000000000..957bfa74f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.fbx new file mode 100644 index 000000000..ae09e939b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45ee67110f7435227b45aaeb3afbcfb80fa8f9f2579b76781825371e563d0c5f +size 196167180 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_N.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_N.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.bin new file mode 100644 index 000000000..907bc54c8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.fbx new file mode 100644 index 000000000..baf5d2ed9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d94cc1e19b4359316ddfccdcfbb20bc01dbc2f39d2a45f058d44d4144c39249 +size 215318412 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_D.png new file mode 100644 index 000000000..438de4cba Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_N.png new file mode 100644 index 000000000..dccef21ae Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_Old_M_Arms_Ivory02_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_Old_M_Arms_Ivory02_D.png new file mode 100644 index 000000000..7226b5070 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_Old_M_Arms_Ivory02_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/Body2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/Body2.bin new file mode 100644 index 000000000..2c541b691 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/Body2.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.bin new file mode 100644 index 000000000..8b0d70009 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.fbx new file mode 100644 index 000000000..065b3527f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:118eec828dcf0eafbd3d57b1b2351fb6f788425f82c7a9d852fb2008d4089afb +size 158792108 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_D.png new file mode 100644 index 000000000..1f7f28858 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_N.png new file mode 100644 index 000000000..cb19bd8bc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.bin new file mode 100644 index 000000000..7b4dc24eb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.fbx new file mode 100644 index 000000000..aa53fb0da --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07bd86220c75f6bc5dda73ff5dc446a5a83eca7c88b90d8ace464f77e43e8525 +size 240995100 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_D.png new file mode 100644 index 000000000..6f7dc9c4e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_D.png new file mode 100644 index 000000000..25c0e0e52 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_N.png new file mode 100644 index 000000000..327b67142 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_N.png new file mode 100644 index 000000000..666d09bf3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_D.png new file mode 100644 index 000000000..f66dbfc82 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_N.png new file mode 100644 index 000000000..7cb041ff2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.bin deleted file mode 100644 index 7305034ef..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.bin and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.fbx deleted file mode 100644 index b30f6ac18..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6bed60c6be5555ed08388845e833b539eb5ca8095be2e7096aad754450f0320 -size 3383676 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.bin new file mode 100644 index 000000000..069c7e108 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.fbx new file mode 100644 index 000000000..5bc1fb30a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b007729006283ebeb04abc5a27f7f7be71b22a24c42d3d9a66953cbe7f918fc +size 196498620 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/T_GHO_M_Hair_GHOHair01_WigTall_THV_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/T_GHO_M_Hair_GHOHair01_WigTall_THV_MSK.png new file mode 100644 index 000000000..247a7b7b5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/T_GHO_M_Hair_GHOHair01_WigTall_THV_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.bin new file mode 100644 index 000000000..2dddf309f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.fbx new file mode 100644 index 000000000..b99879e86 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:856e562b09f232b1c1130071a5ba6d2cc2b477961a4a53ee0a291358099bc23b +size 16798140 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head.fbx deleted file mode 100644 index d0d7958de..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Head.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8c2af954e432ef10626e687fc032c826b4042f6ba058e485347273087509b76 -size 2730924 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.bin new file mode 100644 index 000000000..d994d20d0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.fbx new file mode 100644 index 000000000..70eb923d7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e011347f4995566691487e16eacecf0d506c0c06eacccedaf0eae0f610ca51cc +size 193444396 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinBody.bin similarity index 91% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinBody.bin index d0c63a25f..f42644300 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinBody.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinBody.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinBody.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinBody.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinHead.bin similarity index 86% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinHead.bin index 70cdd40d1..0fe47e66b 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinHead.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinHead.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/GoblinHead.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/GoblinHead.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_M_Sniper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_M_Sniper_D.png new file mode 100644 index 000000000..ee01a4efc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_M_Sniper_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_Mage_Head_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOB_Mage_Head_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_D.png new file mode 100644 index 000000000..fc0fbca3d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_E.png new file mode 100644 index 000000000..f8a7c9c89 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_MROA.png new file mode 100644 index 000000000..e16ba8af8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_MROA.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_N.png new file mode 100644 index 000000000..6ac83780f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector01_Upper_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_E.png new file mode 100644 index 000000000..1d7adae32 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_MRO.png new file mode 100644 index 000000000..ccb0bca48 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_N.png new file mode 100644 index 000000000..8bbbb218a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1001_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_E.png new file mode 100644 index 000000000..85f9805c2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_MRO.png new file mode 100644 index 000000000..98d5357db Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_N.png new file mode 100644 index 000000000..4ebccf04d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1002_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1_D.png new file mode 100644 index 000000000..2fe1ffc6f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_1_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_2_D.png new file mode 100644 index 000000000..de7e79e09 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_GOL_TombProtector_2_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_Spline_clouds_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_Spline_clouds_D.png new file mode 100644 index 000000000..508965f7a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_Spline_clouds_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_TombProtector_DistortionPattern_A_D.png new file mode 100644 index 000000000..cdfe02952 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_TombProtector_DistortionPattern_A_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_TombProtector_DistortionPattern_B_D.png new file mode 100644 index 000000000..ff8a490c8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/T_TombProtector_DistortionPattern_B_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/TombProtector.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/TombProtector.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Goblin/TombProtector.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/TombProtector.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png new file mode 100644 index 000000000..7bb19943d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png new file mode 100644 index 000000000..2ed79b910 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png new file mode 100644 index 000000000..61cd321c0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png new file mode 100644 index 000000000..80bd10c56 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/TombProtector_Axe.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/TombProtector_Axe.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/TombProtector_Axe.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/TombProtector_Axe.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png new file mode 100644 index 000000000..2c9dc117f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png new file mode 100644 index 000000000..6c4acfba4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png new file mode 100644 index 000000000..774ea3db2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png new file mode 100644 index 000000000..181d60492 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/TombProtector_Mace.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/TombProtector_Mace.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/TombProtector_Mace.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/TombProtector_Mace.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_D.png new file mode 100644 index 000000000..fc0fbca3d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_E.png new file mode 100644 index 000000000..f8a7c9c89 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_MROA.png new file mode 100644 index 000000000..e16ba8af8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_MROA.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_N.png new file mode 100644 index 000000000..6ac83780f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_E.png new file mode 100644 index 000000000..1d7adae32 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_MRO.png new file mode 100644 index 000000000..ccb0bca48 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_N.png new file mode 100644 index 000000000..8bbbb218a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_E.png new file mode 100644 index 000000000..85f9805c2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_MRO.png new file mode 100644 index 000000000..98d5357db Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_N.png new file mode 100644 index 000000000..4ebccf04d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1_D.png new file mode 100644 index 000000000..b39df1bfb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_2_D.png new file mode 100644 index 000000000..e0bd0250f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_2_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_Spline_clouds_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_Spline_clouds_D.png new file mode 100644 index 000000000..508965f7a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_Spline_clouds_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_A_D.png new file mode 100644 index 000000000..cdfe02952 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_A_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_B_D.png new file mode 100644 index 000000000..ff8a490c8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_B_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.bin similarity index 81% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.bin index 6662964a2..81facc280 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/TombProtector.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Body_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Body_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_N.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_N.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_E.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_E.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_N.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_N.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Eye_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Eye_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_N.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_N.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_N.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_N.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_N.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_N.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.bin similarity index 83% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.bin index 181da1740..e287140cf 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Troll/Troll.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/River/Block_004_X-.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/Block_004_X-.png new file mode 100644 index 000000000..99b945200 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/Block_004_X-.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.Pxml b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.Pxml new file mode 100644 index 000000000..2c70d8eca --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.Pxml @@ -0,0 +1,13 @@ + + 0 0 0 + + 0 + 0 + + + 3009394725776 + -1689.49 -158.66 -1406.87 -1384.85 -162.306 -871.669 -1634.53 -144.585 -1293.33 -1482.73 -162.458 -911.221 -1708.09 -157.634 -1186.21 -1227.76 -153.513 -880.589 -1326.12 -148.466 -801.238 -1063.48 -139.643 -1014.68 -1003.65 -131.663 -1797.78 -913.248 -133.455 -1136.85 -775.953 -130.493 -1248.32 -1243.83 -156.661 -1730.63 -1252.32 -191.583 -2026.52 -1793.04 -159.199 -1489.44 -2050.91 -209.973 -1768.75 -1131.11 -145.007 -1838.52 -1262.02 -193.198 -2159.34 -737.981 -121.083 -1772.41 -1956.86 -206.869 -2125.67 -2239.28 -342.092 -1834.41 -1522.28 -249.657 -2487.65 -1277.34 -213.87 -2289.37 -1286.91 -260.165 -2413.58 -1443.42 -630.493 -2552.28 -1300.2 -487.023 -2562.75 -1259.1 -583.237 -2673.51 -1217.69 -424.558 -2638.77 -495.187 -126.636 -1476.11 -472.596 -128.804 -1494.27 -500.375 -127.177 -1471.87 -575.25 -127.361 -1532.87 -671.998 -129.493 -1332.63 -658.322 -126.454 -1638.45 -876.851 -122.856 -1761.86 -748.304 -119.426 -1730.93 34.886 -125.99 -651.533 69.4275 -84.4903 -833.169 101.895 -154.067 -785.37 34.3467 -80.0683 -869.839 7.56472 -72.3656 -928.309 -163.984 -118.01 -1032.49 253.702 -106.705 -612.83 381.03 -101.933 -576.065 396.216 -96.4434 -616.556 477.555 -106.751 -490.538 561.817 -107.596 -386.874 -325.386 -145.596 340.185 -598.702 -133.91 -155.508 -615.051 -127.675 67.6023 -436.094 -135.051 266.742 -529.771 -128.977 171.739 -691.486 -128.748 -41.9677 -763.301 -154.759 -151.097 -1225.18 -126.638 -596.945 -887.151 -167.231 -184.456 -880.892 -134.096 -900.285 -1258.99 -131.55 -699.114 -1314.71 -145.778 -787.557 -1326.12 -148.466 -801.239 -1227.76 -153.513 -880.589 -1063.48 -139.643 -1014.68 -913.248 -133.455 -1136.85 -775.953 -130.493 -1248.32 -671.998 -129.493 -1332.63 -248.295 -133.858 -1134.9 -189.562 -137.421 -1118.95 -347.302 -137.936 -1220.58 -389.34 -132.707 -1346.68 -359.754 -132.087 -1376 -474.309 -127.113 -1450.63 -500.375 -127.177 -1471.87 -495.187 -126.636 -1476.11 -472.596 -128.804 -1494.27 -1366.15 -146.243 -768.955 -1329.74 -147.248 -798.387 -1326.21 -148.474 -801.159 -2051.51 -196.711 -1747.01 -1850.14 -155.201 -1523.83 -739.274 -129.059 -32.9761 -439.12 -133.96 333.362 -436.142 -135.047 266.711 -1314.66 -145.749 -787.266 -1366.15 -146.243 -768.955 -1329.74 -147.248 -798.387 -1326.21 -148.474 -801.159 + 46 80 79 47 46 35 45 35 46 49 46 48 80 50 79 48 79 50 46 47 48 50 49 48 78 79 51 43 44 45 44 42 45 42 44 43 45 42 35 43 41 42 41 37 35 41 35 42 37 36 35 36 38 35 36 39 38 39 40 38 40 35 38 64 40 65 35 55 47 35 40 55 40 64 55 55 64 66 47 51 48 51 47 52 52 54 78 51 52 78 47 55 52 54 52 53 53 52 55 56 81 53 53 81 82 66 67 55 55 63 62 55 62 61 61 60 55 53 55 56 55 57 56 59 58 55 57 55 58 60 59 55 83 82 81 84 83 81 6 5 1 74 3 73 74 75 3 1 3 75 1 2 3 2 4 3 66 64 65 68 67 66 67 68 69 69 68 71 72 71 68 71 70 69 70 63 69 55 69 63 67 69 55 30 31 29 32 10 30 31 30 10 9 10 8 9 8 7 28 17 27 27 17 29 30 29 17 30 17 32 34 32 17 32 8 10 32 34 33 33 8 32 33 17 8 34 17 33 17 15 8 2 1 0 1 5 0 7 0 5 0 7 8 8 11 0 8 15 11 12 13 0 11 12 0 77 4 0 4 2 0 77 0 13 12 14 13 13 14 76 14 19 76 77 13 76 15 12 11 16 12 15 16 18 14 14 12 16 18 19 14 21 20 16 20 21 22 16 20 18 23 22 24 20 22 23 25 23 24 26 25 24 + 78 88 83 1 77 69 83 72 16 0 0 0 1 0 0 0 6 0 0 0 85 0 0 0 104 0 0 0 199 47 211 196 235 168 30 195 253 219 175 196 71 27 173 196 89 78 34 195 208 234 89 196 22 81 204 196 186 149 16 195 120 170 161 196 111 87 185 196 55 117 34 195 44 206 99 196 200 130 213 196 79 162 29 195 212 70 148 196 116 120 153 196 73 131 25 195 174 37 92 196 180 195 165 196 82 119 20 195 67 79 72 196 124 239 132 196 155 164 11 195 118 171 125 196 72 233 122 196 181 169 3 195 215 184 224 196 226 79 100 196 113 116 5 195 90 27 142 196 6 253 65 196 53 126 2 195 56 10 156 196 178 122 155 196 53 169 28 195 49 84 216 196 71 138 156 196 70 149 63 195 189 80 253 196 48 33 224 196 223 50 31 195 23 46 186 196 128 46 0 197 255 248 81 195 233 23 221 196 174 99 141 196 232 1 17 195 152 208 229 196 195 192 157 196 187 50 65 195 107 245 6 197 194 126 56 196 80 42 242 194 247 140 221 196 169 155 244 196 139 222 78 195 171 218 4 197 124 244 11 197 192 11 171 195 25 77 229 196 244 72 190 196 66 168 121 195 121 122 27 197 223 170 159 196 185 222 85 195 253 21 15 197 27 221 160 196 37 21 130 195 58 217 22 197 91 109 180 196 135 159 29 196 132 132 31 197 101 134 162 196 1 131 243 195 239 43 32 197 26 99 157 196 49 207 17 196 45 24 39 197 248 53 152 196 119 71 212 195 70 236 36 197 226 151 247 195 136 69 253 194 141 131 184 196 63 76 236 195 200 205 0 195 141 200 186 196 252 47 250 195 188 90 254 194 206 251 183 196 1 208 15 196 188 184 254 194 213 155 191 196 227 255 39 196 43 126 1 195 44 148 166 196 149 148 36 196 100 232 252 194 132 206 204 196 120 54 91 196 106 182 245 194 113 59 220 196 115 19 59 196 2 218 238 194 215 93 216 196 58 139 11 66 0 251 251 194 29 226 34 196 230 218 138 66 8 251 168 194 204 74 80 196 33 202 203 66 50 17 26 195 170 87 68 196 250 98 9 66 246 34 160 194 184 117 89 196 38 18 242 64 49 187 144 194 195 19 104 196 0 252 35 195 230 4 236 194 184 15 129 196 183 179 125 67 236 104 213 194 32 53 25 196 231 131 190 67 146 221 203 194 35 4 16 196 175 27 198 67 3 227 192 194 151 35 26 196 12 199 238 67 122 128 213 194 222 68 245 195 75 116 12 68 16 49 215 194 219 111 193 195 101 177 162 195 149 152 17 195 176 23 170 67 233 172 21 196 18 233 5 195 43 130 27 195 72 195 25 196 104 89 255 194 93 52 135 66 11 12 218 195 26 13 7 195 4 95 133 67 85 113 4 196 53 250 0 195 78 189 43 67 24 223 44 196 141 191 0 195 228 222 39 194 72 211 62 196 64 194 26 195 191 24 23 195 224 37 153 196 106 70 253 194 117 60 21 196 177 201 93 196 22 59 39 195 204 116 56 195 16 57 92 196 162 24 6 195 58 18 97 196 172 95 157 196 186 140 3 195 79 199 46 196 147 86 164 196 11 199 17 195 158 227 68 196 182 195 165 196 85 119 20 195 72 79 72 196 120 120 153 196 74 131 25 195 173 37 92 196 126 239 132 196 156 164 11 195 120 171 125 196 227 79 100 196 112 116 5 195 92 27 142 196 3 253 65 196 52 126 2 195 60 10 156 196 222 255 39 196 43 126 1 195 50 148 166 196 142 75 120 195 134 219 5 195 243 220 141 196 196 143 61 195 208 107 9 195 104 222 139 196 182 166 173 195 127 239 9 195 178 146 152 196 119 171 194 195 29 181 4 195 179 85 168 196 143 224 179 195 61 22 4 195 28 0 172 196 152 39 237 195 4 58 254 194 68 84 181 196 4 48 250 195 188 90 254 194 208 251 183 196 232 151 247 195 134 69 253 194 143 131 184 196 69 76 236 195 199 205 0 195 143 200 186 196 165 196 170 196 34 62 18 195 23 61 64 196 166 55 166 196 135 63 19 195 195 152 71 196 215 198 165 196 108 121 20 195 38 74 72 196 43 56 0 197 238 181 68 195 68 96 218 196 122 68 231 196 127 51 27 195 125 122 190 196 130 209 56 196 12 15 1 195 131 231 3 194 82 143 219 195 205 245 5 195 81 174 166 67 46 18 218 195 241 11 7 195 242 90 133 67 37 85 164 196 201 191 17 195 14 209 68 196 166 196 170 196 35 62 18 195 28 61 64 196 168 55 166 196 137 63 19 195 200 152 71 196 217 198 165 196 111 121 20 195 41 74 72 196 46 80 79 47 46 35 45 35 46 49 46 48 80 50 79 48 79 50 46 47 48 50 49 48 78 79 51 43 44 45 44 42 45 42 44 43 45 42 35 43 41 42 41 37 35 41 35 42 37 36 35 36 38 35 36 39 38 39 40 38 40 35 38 64 40 65 35 55 47 35 40 55 40 64 55 55 64 66 47 51 48 51 47 52 52 54 78 51 52 78 47 55 52 54 52 53 53 52 55 56 81 53 53 81 82 66 67 55 55 63 62 55 62 61 61 60 55 53 55 56 55 57 56 59 58 55 57 55 58 60 59 55 83 82 81 84 83 81 6 5 1 74 3 73 74 75 3 1 3 75 1 2 3 2 4 3 66 64 65 68 67 66 67 68 69 69 68 71 72 71 68 71 70 69 70 63 69 55 69 63 67 69 55 30 31 29 32 10 30 31 30 10 9 10 8 9 8 7 28 17 27 27 17 29 30 29 17 30 17 32 34 32 17 32 8 10 32 34 33 33 8 32 33 17 8 34 17 33 17 15 8 2 1 0 1 5 0 7 0 5 0 7 8 8 11 0 8 15 11 12 13 0 11 12 0 77 4 0 4 2 0 77 0 13 12 14 13 13 14 76 14 19 76 77 13 76 15 12 11 16 12 15 16 18 14 14 12 16 18 19 14 21 20 16 20 21 22 16 20 18 23 22 24 20 22 23 25 23 24 26 25 24 103 0 0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 66 86 52 32 3 0 0 0 210 174 81 196 237 182 175 195 55 213 145 196 225 192 1 69 4 0 0 0 149 245 139 61 197 160 157 60 124 25 167 61 144 157 116 61 25 73 84 60 194 133 159 61 1 0 0 0 76 0 0 0 166 205 192 36 93 158 73 233 1 128 91 190 88 191 154 243 185 224 47 234 12 222 211 217 1 128 79 216 143 226 255 219 144 197 16 17 134 191 100 3 1 128 74 212 250 167 218 210 84 37 0 0 132 71 0 0 124 96 0 0 4 128 0 0 199 221 192 36 190 213 184 234 166 205 73 2 110 0 192 36 113 226 144 223 113 226 131 217 255 227 47 234 185 224 47 234 206 224 16 17 142 248 16 17 144 197 52 248 142 211 154 236 7 0 0 0 132 167 0 0 124 192 0 0 4 224 0 0 74 205 215 216 233 177 215 216 51 180 73 233 93 158 178 175 12 222 131 217 12 222 211 217 213 224 211 217 4 223 106 212 43 247 100 3 229 212 109 248 134 191 17 226 20 194 112 217 73 3 0 0 84 5 1 0 130 39 1 0 2 64 1 0 130 153 91 190 1 128 23 174 1 128 4 182 37 144 91 176 27 217 79 216 141 186 106 212 141 186 73 212 1 128 194 197 250 158 74 212 250 158 132 196 158 152 54 169 1 128 103 149 84 101 1 0 132 135 1 0 84 165 1 0 4 192 1 0 58 213 23 225 88 191 241 212 150 217 154 243 54 195 137 230 217 229 255 219 143 226 255 219 255 227 211 217 166 227 225 217 37 171 48 182 250 167 102 193 118 184 227 199 238 169 218 210 172 226 1 0 132 7 2 0 130 39 2 0 2 64 2 0 216 220 184 234 216 220 72 227 216 220 184 234 190 213 72 227 113 226 131 217 206 228 131 217 113 226 131 217 206 228 48 217 60 3 16 17 60 3 184 16 142 248 16 17 253 253 184 16 101 0 0 0 163 0 0 0 197 0 0 0 3 1 0 0 160 246 73 2 206 241 71 245 166 205 73 2 166 205 71 245 108 230 47 234 26 228 109 220 198 228 109 220 255 227 109 220 145 206 84 223 170 201 57 204 145 206 52 248 144 197 218 210 101 2 0 0 163 2 0 0 197 2 0 0 5 3 0 0 199 21 192 36 254 1 192 36 254 1 237 24 110 0 139 4 40 234 237 226 108 230 237 226 185 224 136 230 108 230 47 234 123 226 154 236 206 224 154 236 28 216 29 227 142 211 84 223 39 1 0 0 133 1 0 0 199 1 0 0 37 2 0 0 166 205 215 216 248 185 19 206 218 180 221 175 233 177 221 175 149 224 161 215 12 222 211 217 105 226 211 217 79 226 211 217 229 212 109 248 229 212 109 248 79 218 17 226 79 218 17 226 195 3 0 0 229 3 0 0 35 4 0 0 67 4 0 0 54 195 73 233 218 180 98 198 51 180 98 198 0 0 0 0 166 227 246 216 103 226 211 217 213 224 147 215 0 0 0 0 134 191 218 210 229 212 17 226 107 207 130 216 0 0 0 0 105 4 0 0 229 4 0 0 39 5 0 0 255 255 255 255 93 158 108 165 215 176 178 175 63 171 66 169 0 0 0 0 4 223 106 212 12 223 16 212 4 223 234 211 0 0 0 0 20 194 74 212 215 213 112 217 95 212 112 217 0 0 0 0 69 6 0 0 135 5 0 0 231 5 0 0 255 255 255 255 109 159 113 186 109 159 91 190 109 159 91 190 130 153 165 174 12 223 231 213 202 223 79 216 202 223 79 216 27 217 198 208 165 188 74 212 238 169 30 205 250 167 115 185 250 158 115 185 167 9 0 0 3 10 0 0 37 10 0 0 101 10 0 0 63 150 23 149 63 150 127 145 197 138 23 174 1 128 185 138 202 223 106 212 174 223 54 209 95 213 2 208 141 186 54 209 11 183 132 196 11 183 115 185 250 158 79 181 45 168 79 181 165 10 0 0 227 10 0 0 3 11 0 0 39 11 0 0 107 184 4 182 221 183 4 182 197 138 23 174 1 128 1 128 27 217 73 212 199 216 73 212 95 213 62 198 141 186 163 193 250 158 54 169 158 152 205 163 158 152 77 167 59 154 77 167 131 11 0 0 163 11 0 0 197 11 0 0 3 12 0 0 252 168 116 173 37 144 116 173 252 168 212 171 126 173 91 176 47 203 194 197 81 205 194 197 1 128 188 180 1 128 1 128 230 136 182 147 230 136 103 149 78 133 246 134 1 128 1 128 37 12 0 0 99 12 0 0 133 12 0 0 197 12 0 0 209 213 23 225 209 213 157 223 209 213 96 218 58 213 241 212 217 229 127 219 36 230 127 219 36 230 127 219 84 230 255 219 37 171 250 181 37 171 48 182 37 171 33 179 37 171 214 173 67 8 0 0 101 8 0 0 163 8 0 0 195 8 0 0 161 198 241 212 161 198 241 212 161 198 187 207 88 191 187 207 69 229 225 217 69 229 255 219 69 229 255 219 143 226 127 219 238 169 102 193 238 169 214 173 238 169 50 169 250 167 30 167 227 8 0 0 5 9 0 0 69 9 0 0 131 9 0 0 190 233 154 243 178 227 121 232 150 217 250 224 0 0 0 0 255 227 46 216 15 229 211 217 182 229 211 217 0 0 0 0 31 190 227 199 118 184 119 188 84 185 44 189 0 0 0 0 133 6 0 0 199 6 0 0 37 7 0 0 255 255 255 255 54 195 63 205 166 205 137 230 165 211 70 223 0 0 0 0 166 227 169 216 198 228 174 217 130 229 225 217 0 0 0 0 238 169 30 205 140 186 218 210 142 177 102 193 0 0 0 0 5 8 0 0 101 7 0 0 167 7 0 0 255 255 255 255 45 24 39 58 124 244 11 197 135 159 29 196 45 24 39 197 75 116 12 68 49 187 144 194 176 23 170 67 104 0 0 0 40 0 32 8 24 56 0 40 56 32 16 0 8 24 40 40 24 48 24 40 16 24 16 16 40 16 24 8 16 32 8 48 8 40 32 0 16 16 8 32 16 8 32 8 40 56 40 56 40 32 8 24 40 32 0 32 40 40 8 0 0 16 0 32 8 32 56 40 32 8 40 0 56 40 56 56 56 40 0 32 32 32 24 8 0 40 24 40 32 16 48 40 32 32 24 0 40 40 56 48 16 40 8 40 + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.bin new file mode 100644 index 000000000..6c3cc5303 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.fbx new file mode 100644 index 000000000..b74a7bca0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/River/River.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f638f57425c167b335585503e8a73ce33fe4a7e7af99267e362f1732861f94fb +size 30540 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.bin deleted file mode 100644 index 4cd475871..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.bin and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.fbx deleted file mode 100644 index d00c20189..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/Steve.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cef2bb7918a4bcc6f5b1ac4208b564dfb86bd79d1c1ef01f0cf7369afa8e0141 -size 5354012 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.dds deleted file mode 100644 index c3ca7655c..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.png deleted file mode 100644 index fcd9a483b..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.dds deleted file mode 100644 index 5a0bcedbc..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.png deleted file mode 100644 index 003e894a1..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Sword/Sword.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Sword/Sword.fbx deleted file mode 100644 index 01f7eb9bb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Sword/Sword.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51f2fbdcd11d1d456b0d790b055890bff8c304f11cf18b7550ca77d25011b229 -size 30732 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Sword/sword.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Sword/sword.png deleted file mode 100644 index 77fb39756..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Sword/sword.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png deleted file mode 100644 index 21f37933b..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png deleted file mode 100644 index c2cefb93f..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png deleted file mode 100644 index 2dd395869..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png deleted file mode 100644 index 35cb5db87..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png deleted file mode 100644 index 316e8589e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png deleted file mode 100644 index 67c8b5447..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png deleted file mode 100644 index dc470c25e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png deleted file mode 100644 index d0c1f6f51..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_D.png deleted file mode 100644 index 6ed2c9ebf..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_E.png deleted file mode 100644 index 4669b020d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_MROA.png deleted file mode 100644 index de2e4abf6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_MROA.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_N.png deleted file mode 100644 index c89e83d64..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_E.png deleted file mode 100644 index 5dbbe2dc7..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_MRO.png deleted file mode 100644 index 035ceb7c3..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_N.png deleted file mode 100644 index d3112d6e0..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_E.png deleted file mode 100644 index 34ddde4a1..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_MRO.png deleted file mode 100644 index 42132cafe..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_N.png deleted file mode 100644 index 855cefc69..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png index 39b18306d..2fe1ffc6f 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png index 5ff7e66a6..de7e79e09 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png index 9f9c0704f..508965f7a 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png index b8c7a6e9e..cdfe02952 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png index 73a27fef9..ff8a490c8 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index a32c3c669..b2618d4ee 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -164,7 +164,7 @@ PS_OUT PS_MAIN(PS_IN In) PS_OUT Out; vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.4f) + if (vMtrlDiffuse.a < 0.1f) { discard; } @@ -180,7 +180,7 @@ PS_OUT PS_MAIN(PS_IN In) return Out; } -PS_OUT PS_MAIN_OUTLINE(PS_IN In) +PS_OUT PS_MAIN_SELECT(PS_IN In) { PS_OUT Out; @@ -195,7 +195,7 @@ PS_OUT PS_MAIN_OUTLINE(PS_IN In) float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - Out.vDiffuse = vMtrlDiffuse; + Out.vDiffuse = vMtrlDiffuse * float4(0.f, 1.f, 1.f, 0.3f); 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; @@ -439,4 +439,14 @@ technique11 MeshTechnique11 GeometryShader = NULL; PixelShader = compile ps_5_0 PS_EFFECT_UVMOVE(); } + + pass MapToolPass // 11 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_SELECT(); + } } diff --git a/Jusin154_Team3D/Editor/Default/Editor.cpp b/Jusin154_Team3D/Editor/Default/Editor.cpp index a75795a2a..de7b2d51e 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.cpp +++ b/Jusin154_Team3D/Editor/Default/Editor.cpp @@ -24,6 +24,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, { #ifdef _DEBUG _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); + //_CrtSetBreakAlloc(1157440); #endif UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 068571263..ab7438d1c 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -151,7 +151,10 @@ + + + @@ -162,8 +165,11 @@ + + + @@ -207,7 +213,10 @@ + + + @@ -218,8 +227,11 @@ + + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index c670f29d8..959aee4d6 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -145,9 +145,6 @@ {44a3ddc2-3993-48d6-840c-3da09daeab70} - - {584466e9-fe1a-4a7d-a4ba-54d62ee1a7c1} - {943a760b-2861-45b7-87b8-462e1309c172} @@ -160,12 +157,39 @@ {c347da03-98f1-4095-a4e4-2c840c308916} - + + {de3719fe-5a3a-45bd-ae8f-67533b8150fc} + + + {ad93e84b-166d-4ba2-9103-f4fe0171b2ac} + + {c7e7d3c7-fd26-4035-88b4-11233459559c} - + {15a9dfe7-f3f7-4906-8bd4-91734f4ddc92} + + {584466e9-fe1a-4a7d-a4ba-54d62ee1a7c1} + + + {d925c13c-6d66-4632-8bef-172baa566920} + + + {9643531b-3b64-4a3b-9ba7-e372b4e4ddba} + + + {702dfe26-f6b0-4aa0-b8d5-79385c0191d1} + + + {bc80fcba-1ebd-497c-a40d-973e44ad3ef8} + + + {34fa4d78-8091-44cf-b4b4-59db9fd56d98} + + + {fbe2856d-a829-4563-a9f1-00adc4029c65} + @@ -303,27 +327,60 @@ 01.Level\30.MapViewer - - 02.GameObjects\Env - 02.GameObjects\Terrain - 02.GameObjects\Env\Manger + 02.GameObjects\Env\00.Manger 01.Level\60.PhysXLab - 02.GameObjects\Dummys\PhysXBox + 02.GameObjects\Dummys\DummyPhysX\PhysXBox - 02.GameObjects\Dummys\PhysXMesh + 02.GameObjects\Dummys\DummyPhysX\PhysXMesh 50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget + + 02.GameObjects\Dummys\DummyObject + + + 02.GameObjects\Env\01.MapContainer + + + 02.GameObjects\Env\01.MapContainer\BuildingContainer + + + 02.GameObjects\Env\02.MapObject + + + 02.GameObjects\Env\02.MapObject\Static + + + 02.GameObjects\Env\02.MapObject\LOD + + + 02.GameObjects\Env\01.MapContainer + + + 02.GameObjects\Env\01.MapContainer\BuildingContainer + + + 02.GameObjects\Env\02.MapObject + + + 02.GameObjects\Env\02.MapObject\Static + + + 02.GameObjects\Env\02.MapObject\LOD + + + 02.GameObjects\Dummys\DummyPhysX\PhysXPlayable + @@ -442,14 +499,11 @@ 01.Level\30.MapViewer - - 02.GameObjects\Env - 02.GameObjects\Terrain - 02.GameObjects\Env\Manger + 02.GameObjects\Env\00.Manger 01.Level\60.PhysXLab @@ -467,10 +521,10 @@ 02.GameObjects\Monster - 02.GameObjects\Dummys\PhysXBox + 02.GameObjects\Dummys\DummyPhysX\PhysXBox - 02.GameObjects\Dummys\PhysXMesh + 02.GameObjects\Dummys\DummyPhysX\PhysXMesh 50.UI\LoadingWidget @@ -478,6 +532,42 @@ 50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget + + 02.GameObjects\Dummys\DummyObject + + + 02.GameObjects\Env\01.MapContainer + + + 02.GameObjects\Env\01.MapContainer\BuildingContainer + + + 02.GameObjects\Env\02.MapObject + + + 02.GameObjects\Env\02.MapObject\Static + + + 02.GameObjects\Env\02.MapObject\LOD + + + 02.GameObjects\Env\01.MapContainer + + + 02.GameObjects\Env\01.MapContainer\BuildingContainer + + + 02.GameObjects\Env\02.MapObject + + + 02.GameObjects\Env\02.MapObject\Static + + + 02.GameObjects\Env\02.MapObject\LOD + + + 02.GameObjects\Dummys\DummyPhysX\PhysXPlayable + diff --git a/Jusin154_Team3D/Editor/Private/Body.cpp b/Jusin154_Team3D/Editor/Private/Body.cpp index 22ca9e94e..c37a1b1ca 100644 --- a/Jusin154_Team3D/Editor/Private/Body.cpp +++ b/Jusin154_Team3D/Editor/Private/Body.cpp @@ -24,13 +24,9 @@ HRESULT CBody::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))) return E_FAIL; - if (FAILED(Ready_Components())) return E_FAIL; - dynamic_cast(m_pOwner)->Push_ModelParts(this); - - dynamic_cast(m_pOwner)->Push_MainModel(m_pModelCom); return S_OK; } @@ -41,7 +37,7 @@ void CBody::Priority_Update(_float fTimeDelta) void CBody::Update(_float fTimeDelta) { - //m_pModelCom->Play_Animation(fTimeDelta); + __super::Update(fTimeDelta); } void CBody::Late_Update(_float fTimeDelta) @@ -53,45 +49,20 @@ void CBody::Late_Update(_float fTimeDelta) HRESULT CBody::Render() { - if (FAILED(Bind_ShaderResources())) { - return E_FAIL; - } - - _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); - - for (_uint i = 0; i < iNumMeshes; i++) - { - if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { - return E_FAIL; - } - - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "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_ANIM::DEFAULT)))) { - return E_FAIL; - } - - if (FAILED(m_pModelCom->Render(i))) { - return E_FAIL; - } - } + __super::Render(); return S_OK; } HRESULT CBody::Ready_Components() { - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_HumanBody_Model"), - reinterpret_cast(&m_pModelCom)))) - return E_FAIL; - - /*m_pModelCom->Change_AnimationIndex(0, true, 0.4f, true);*/ + if (m_strModelPrototypeTag != L"") + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + } return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp new file mode 100644 index 000000000..08a091a3e --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp @@ -0,0 +1,164 @@ +#include "pch.h" +#include "BuildingContainer.h" +#include "PartObject.h" +#include "Terrain.h" +#include "Layer.h" +#include "VIBuffer_Terrain.h" + +CBuildingContainer::CBuildingContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CMapContainer(pDevice, pContext) +{ +} + +CBuildingContainer::CBuildingContainer(const CBuildingContainer& rhs) + :CMapContainer(rhs) +{ +} + +void CBuildingContainer::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + m_bSelected = false; +} + +void CBuildingContainer::Update(_float fTimeDelta) +{ + __super::Update(fTimeDelta); +} + +void CBuildingContainer::Late_Update(_float fTimeDelta) +{ + if (m_bSelected) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + } + + __super::Late_Update(fTimeDelta); +} + +HRESULT CBuildingContainer::Render() +{ + return S_OK; +} + +HRESULT CBuildingContainer::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CBuildingContainer::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + MAP_CONTAINER_DESC* pDesc = static_cast(pArg); + + m_strName = pDesc->strName; + + m_vPosition = pDesc->vPosition; + m_vScale = pDesc->vScale; + m_vRotation = pDesc->vRotation; + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + + return S_OK; +} + +HRESULT CBuildingContainer::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CBuildingContainer::Bind_ShaderResources() +{ + return S_OK; +} + +CBuildingContainer* CBuildingContainer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBuildingContainer* pInstance = new CBuildingContainer(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBuildingContainer"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CBuildingContainer::Clone(void* pArg, CGameObject* pOwner) +{ + CBuildingContainer* pInstance = new CBuildingContainer(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBuildingContainer"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBuildingContainer::Free() +{ + __super::Free(); +} + +void CBuildingContainer::Describe_Entity() +{ + if (m_bDead) + return; + if (nullptr == m_pGameInstance) + return; + + GUI::Text(m_strName.c_str()); + GUI::Text("----- Transfrom ----"); + GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f); + GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f); + GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f); + + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); + if (nullptr != pTerrain) + { + pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + } + + } + + GUI::Text("----- Rotation ----"); + GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f); + GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f); + GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f); + + GUI::Text("----- Scale ----"); + GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f); + GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f); + GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f); + + m_vScale.x = max(0.01f, m_vScale.x); + m_vScale.y = max(0.01f, m_vScale.y); + m_vScale.z = max(0.01f, m_vScale.z); + + + if (GUI::Button("Delete")) + m_bDead = true; + + m_bSelected = true; +} diff --git a/Jusin154_Team3D/Editor/Private/DummyObject.cpp b/Jusin154_Team3D/Editor/Private/DummyObject.cpp new file mode 100644 index 000000000..8bdccf5e5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/DummyObject.cpp @@ -0,0 +1,163 @@ +#include "pch.h" +#include "DummyObject.h" + +#include "GameInstance.h" +#include "DebugCamera.h" + +CDummyObject::CDummyObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CDummyObject::CDummyObject(const CDummyObject& Prototype) + : CGameObject(Prototype) +{ +} + +HRESULT CDummyObject::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummyObject::Initialize(void* pArg) +{ + PARTS_OBJECT_DESC* pDesc = static_cast(pArg); + + m_strModelPrototypeTag = pDesc->pModelPrototypeTag; + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + + if (FAILED(Ready_Components())) + return E_FAIL; + + m_pModelCom->Set_AnimationIndex(0); + + return S_OK; +} + +void CDummyObject::Priority_Update(_float fTimeDelta) +{ + +} + +void CDummyObject::Update(_float fTimeDelta) +{ + m_pModelCom->Play_Animation(fTimeDelta); +} + +void CDummyObject::Late_Update(_float fTimeDelta) +{ + _float4 vPos; + XMStoreFloat4(&vPos, Get_WorldPostion()); + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f); +} + +HRESULT CDummyObject::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "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_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CDummyObject::Ready_Components() +{ + __super::Ready_Components(nullptr); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CDummyObject::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; +} + +CDummyObject* CDummyObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummyObject* pInstance = new CDummyObject(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummyObject"); + Safe_Release(pInstance); + } + + return pInstance; +} + +CGameObject* CDummyObject::Clone(void* pArg, CGameObject* pOwner) +{ + CDummyObject* pInstance = new CDummyObject(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummyObject"); + Safe_Release(pInstance); + } + + return pInstance; +} + + + +void CDummyObject::Free() +{ + __super::Free(); + + Safe_Release(m_pShaderCom); + Safe_Release(m_pModelCom); +} + +void CDummyObject::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp index 550fde9cb..cbf2b0e7f 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp @@ -34,7 +34,32 @@ HRESULT CDummy_PhysXMesh::Initialize(void* pArg) void CDummy_PhysXMesh::Priority_Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Down(DIK_F2)) { + CModel* pModel = Get_Component(); + _uint iNumMesh = pModel->Get_NumMeshes(); + pModel->Save_PhysXTriMeshes("../Bin/Resources/Models/River/River.bin"); + CRigidBody::RIGIDBODY_DESC Desc{}; + Desc.eType = ACTOR::TRIANGLEMESH; + for (_uint i = 0; i < iNumMesh; ++i) + { // RIGID_BODY + Desc.tRigidStaticDesc.szMeshName = pModel->Get_MeshName(i); + + Add_Asset_Component(g_iStaticLevel, CMyTools::ToWstring(pModel->Get_MeshName(i)).c_str(), nullptr, &Desc); + } + } + if (m_pGameInstance->Key_Down(DIK_F3)) { + CModel* pModel = Get_Component(); + _uint iNumMesh = pModel->Get_NumMeshes(); + CRigidBody::RIGIDBODY_DESC Desc{}; + Desc.eType = ACTOR::TRIANGLEMESH; + for (_uint i = 0; i < iNumMesh; ++i) + { // RIGID_BODY + Desc.tRigidStaticDesc.szMeshName = pModel->Get_MeshName(i); + + Add_Asset_Component(g_iStaticLevel, CMyTools::ToWstring(pModel->Get_MeshName(i)).c_str(), nullptr, &Desc); + } + } } void CDummy_PhysXMesh::Update(_float fTimeDelta) @@ -43,36 +68,36 @@ void CDummy_PhysXMesh::Update(_float fTimeDelta) void CDummy_PhysXMesh::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()); + _float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, *vPos, m_pTransformCom->Get_Radius()); } HRESULT CDummy_PhysXMesh::Render() { - //if (FAILED(Bind_ShaderResources())) { - // return E_FAIL; - //} + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } - //_uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + _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; - // } + 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::SKYBOX)))) { - // 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; - // } - //} + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } return S_OK; @@ -83,46 +108,39 @@ HRESULT CDummy_PhysXMesh::Ready_Components(void* pArg) if (FAILED(__super::Ready_Components(pArg))) { return E_FAIL; } + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + BOXSTARTPOS_DESC* pBox = static_cast(pArg); m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f)); m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z); - - { // RIGID_BODY - CRigidBody::RIGIDBODY_DESC Desc{}; - Desc.tRigidDynamicDesc.bIsKinematic = false; - Desc.tRigidDynamicDesc.fDensity = 1000.f; - - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { - return E_FAIL; - } - - m_pActor = m_pGameInstance->Add_DynamicActor(*m_pRigidBody); - if (nullptr == m_pActor) { - assert(false); - return E_FAIL; - } + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_River_Col_Model"), (CComponent**)&m_pModelCom))) { + return E_FAIL; } + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(20.f, 20.f, 20.f, 1.f)); return S_OK; } HRESULT CDummy_PhysXMesh::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_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } - //if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { - // return E_FAIL; - //} + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } return S_OK; } @@ -156,9 +174,8 @@ void CDummy_PhysXMesh::Free() { __super::Free(); - SAFE_RELEASE(m_pRigidBody); - //SAFE_RELEASE(m_pModelCom); - //SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pShaderCom); } void CDummy_PhysXMesh::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp new file mode 100644 index 000000000..d3a845edb --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp @@ -0,0 +1,200 @@ +#include "pch.h" +#include "Dummy_PhysXPlayable.h" + +#include "GameInstance.h" + +CDummy_PhysXPlayable::CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext): + CGameObject(pDevice, pContext) +{ +} + +CDummy_PhysXPlayable::CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs): + CGameObject(rhs) +{ +} + +void CDummy_PhysXPlayable::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); +} + +void CDummy_PhysXPlayable::Update(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Pressing(DIK_W)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, 1.f, 0.f)); + } + if (m_pGameInstance->Key_Pressing(DIK_A)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(-1.f, 0.f, 0.f, 0.f)); + } + if (m_pGameInstance->Key_Pressing(DIK_S)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, -1.f, 0.f)); + } + if (m_pGameInstance->Key_Pressing(DIK_D)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(1.f, 0.f, 0.f, 0.f)); + } + if (m_pGameInstance->Key_Pressing(DIK_SPACE)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 10.f, 0.f, 0.f)); + } + if (m_pGameInstance->Key_Pressing(DIK_C)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f)); + } + //m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY, 0.f, 0.f)); + m_pCharacter_Controller->Move(fTimeDelta); +} + +void CDummy_PhysXPlayable::Late_Update(_float fTimeDelta) +{ + Describe_Entity(); + _float4 vPos; + XMStoreFloat4(&vPos, Get_WorldPostion()); + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this, vPos, 20.f); +} + +HRESULT CDummy_PhysXPlayable::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + //m_pShaderCom->Bind_SRV("g_NormalTexture", nullptr); + 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 (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 CDummy_PhysXPlayable::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(nullptr))) { + return E_FAIL; + } + { + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.tCapsuleInfo.fRadius = 1.5f; + Desc.tCapsuleInfo.fHeight = 3.0f; + Desc.tCapsuleInfo.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Steve_Model"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + //m_pModelCom->Change_AnimationIndex(0, true, 0.4f, true); + + return S_OK; + + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::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_PhysXPlayable* CDummy_PhysXPlayable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_PhysXPlayable* pInstance = new CDummy_PhysXPlayable(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_PhysXPlayable"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_PhysXPlayable::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_PhysXPlayable* pInstance = new CDummy_PhysXPlayable(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_PhysXPlayable"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_PhysXPlayable::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pCharacter_Controller); + Safe_Release(m_pShaderCom); + Safe_Release(m_pModelCom); +} + +void CDummy_PhysXPlayable::Describe_Entity() +{ + m_pCharacter_Controller->Describe_Entity(); +} diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp index 8c00ec440..3052f6689 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp @@ -61,7 +61,7 @@ HRESULT CEffect_Editor::Ready_Components(void* pArg) HRESULT CEffect_Editor::Ready_Child() { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_EFFECT , nullptr ,this , &m_pEditEffect))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_EFFECT , nullptr ,this , reinterpret_cast(&m_pEditEffect)))) return E_FAIL; return S_OK; diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp index 327fd3fc5..9b6e2995a 100644 --- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp +++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp @@ -94,12 +94,12 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg) { CGameObject* asdf = this; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoading_Panel))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoading_Panel)))) { return E_FAIL; } Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMinimap_Panel))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Hair.cpp b/Jusin154_Team3D/Editor/Private/Hair.cpp index c3a413db1..402d702ce 100644 --- a/Jusin154_Team3D/Editor/Private/Hair.cpp +++ b/Jusin154_Team3D/Editor/Private/Hair.cpp @@ -27,8 +27,6 @@ HRESULT CHair::Initialize(void* pArg) if (FAILED(Ready_Components())) return E_FAIL; - dynamic_cast(m_pOwner)->Push_ModelParts(this); - return S_OK; } @@ -39,7 +37,7 @@ void CHair::Priority_Update(_float fTimeDelta) void CHair::Update(_float fTimeDelta) { - //m_pModelCom->Play_Animation(fTimeDelta); + __super::Update(fTimeDelta); } void CHair::Late_Update(_float fTimeDelta) @@ -51,45 +49,21 @@ void CHair::Late_Update(_float fTimeDelta) HRESULT CHair::Render() { - if (FAILED(Bind_ShaderResources())) { - return E_FAIL; - } - - _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); - - for (_uint i = 0; i < iNumMeshes; i++) - { - if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { - return E_FAIL; - } - - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "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_ANIM::DEFAULT)))) { - return E_FAIL; - } - - if (FAILED(m_pModelCom->Render(i))) { - return E_FAIL; - } - } + __super::Render(); return S_OK; } HRESULT CHair::Ready_Components() { - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_HumanHair_Model"), - reinterpret_cast(&m_pModelCom)))) - return E_FAIL; + if (m_strModelPrototypeTag != L"") + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; - /*m_pModelCom->Change_AnimationIndex(0, true, 0.4f, true);*/ + } return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Head.cpp b/Jusin154_Team3D/Editor/Private/Head.cpp index 1f0a0fc5c..5aecdf0c9 100644 --- a/Jusin154_Team3D/Editor/Private/Head.cpp +++ b/Jusin154_Team3D/Editor/Private/Head.cpp @@ -28,8 +28,6 @@ HRESULT CHead::Initialize(void* pArg) if (FAILED(Ready_Components())) return E_FAIL; - dynamic_cast(m_pOwner)->Push_ModelParts(this); - return S_OK; } @@ -40,7 +38,7 @@ void CHead::Priority_Update(_float fTimeDelta) void CHead::Update(_float fTimeDelta) { - //m_pModelCom->Play_Animation(fTimeDelta); + __super::Update(fTimeDelta); } void CHead::Late_Update(_float fTimeDelta) @@ -52,43 +50,20 @@ void CHead::Late_Update(_float fTimeDelta) HRESULT CHead::Render() { - if (FAILED(Bind_ShaderResources())) { - return E_FAIL; - } - - _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); - - for (_uint i = 0; i < iNumMeshes; i++) - { - if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { - return E_FAIL; - } - - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "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_ANIM::DEFAULT)))) { - return E_FAIL; - } - - if (FAILED(m_pModelCom->Render(i))) { - return E_FAIL; - } - } + __super::Render(); return S_OK; } HRESULT CHead::Ready_Components() { - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_HumanHead_Model"), - reinterpret_cast(&m_pModelCom)))) - return E_FAIL; + if (m_strModelPrototypeTag != L"") + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + } return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp index 60fed9e82..67e98e563 100644 --- a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp +++ b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp @@ -355,7 +355,7 @@ HRESULT CIMGUIUI::Bind_ShaderResources() HRESULT CIMGUIUI::Ready_Components(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pGamePlay_Canvas))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pGamePlay_Canvas)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index 6b69a4dbc..9c53bbcad 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -6,6 +6,7 @@ #include "DebugCamera.h" #include "Terrain.h" #include "MapObject_Manager.h" +#include "BuildingContainer.h" CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -38,7 +39,7 @@ HRESULT CLevel_MapViewer::Initialize() return E_FAIL; } - if (FAILED(Ready_Layer_MapObjects(TEXT("Layer_MapObject")))) { + if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) { return E_FAIL; } @@ -92,12 +93,9 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) return S_OK; } -HRESULT CLevel_MapViewer::Ready_Layer_MapObjects(const _wstring& strLayerTag) +HRESULT CLevel_MapViewer::Ready_Layer_BuildingContainer(const _wstring& strLayerTag) { - //CMapObject::MAPOBJECT_DESC Desc = {}; - //Desc.pModelPrototypeTag = TEXT("Prototype_GameObject_SM_HW_ClockTower_Courtyard_BaseWall_A"); - - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL,strLayerTag, &Desc))) + //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/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index e6175746c..924692483 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -10,7 +10,7 @@ #include "DebugCamera.h" #include "Layer.h" #include "GameObject.h" -#include "Monster.h" +#include "DummyObject.h" CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -58,74 +58,46 @@ HRESULT CLevel_ObjectViewer::Render() void CLevel_ObjectViewer::Add_Object() { - GUI::Begin("Add Object"); + GUI::Begin("Add PartObject"); if (GUI::BeginTabBar("ObjectTabs")) { - Add_Creature(); - Add_Human(); - + } GUI::EndTabBar(); GUI::End(); - -} -void CLevel_ObjectViewer::Add_Creature() -{ - if (ImGui::BeginTabItem("Creatures")) - { - if (GUI::Button("Add Monster")) - { - CGameObject* pTempObject = { nullptr }; - CMonster::OBJECT_DESC Desc = {}; - Desc.pModelPrototypeTag = TEXT("Prototype_Component_Troll_Model"); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Monster"), &Desc, nullptr, &pTempObject))) - return; - m_Objects.push_back(pTempObject); - } - - GUI::EndTabItem(); - } } void CLevel_ObjectViewer::Add_Human() { - if (ImGui::BeginTabItem("Human")) + if (GUI::BeginTabItem("Body")) { - if (GUI::CollapsingHeader("Body")) - { - if (GUI::Button("Add Body")) - { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Root"), nullptr, nullptr, &m_HumanRoot))) - return; + Category_PartsModelList("Human/Body","Body"); - CGameObject* pTempObject = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Body"), nullptr, m_HumanRoot, &pTempObject))) - return; - m_Objects.push_back(pTempObject); - } - } + GUI::EndTabItem(); + } + + if (GUI::BeginTabItem("Head")) + { _bool bDisabled = (m_HumanRoot == nullptr); - if (bDisabled) ImGui::BeginDisabled(); - if (GUI::CollapsingHeader("Head")) - { - if (GUI::Button("Add Head")) - { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Head"), nullptr, m_HumanRoot))) - return; - } - } - if (GUI::CollapsingHeader("Hair")) - { - if (GUI::Button("Add Hair")) - { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Hair"), nullptr, m_HumanRoot))) - return; - } - } - if (bDisabled) ImGui::EndDisabled(); + if (bDisabled) GUI::BeginDisabled(); + + Category_PartsModelList("Human/Head", "Head"); + + if (bDisabled) GUI::EndDisabled(); + GUI::EndTabItem(); + } + + if (GUI::BeginTabItem("Hair")) + { + _bool bDisabled = (m_HumanRoot == nullptr); + if (bDisabled) GUI::BeginDisabled(); + + Category_PartsModelList("Human/Hair", "Hair"); + + if (bDisabled) GUI::EndDisabled(); GUI::EndTabItem(); } } @@ -133,35 +105,110 @@ void CLevel_ObjectViewer::Add_Human() void CLevel_ObjectViewer::Show_ModelFilePath() { GUI::Begin("Model_List"); - if(GUI::BeginTabBar("Model_List")) + if (GUI::BeginTabBar("Model_List")) { - if (GUI::BeginTabItem("Model")) - { - if (m_pGameInstance->BinaryModelFilePathCount() > 0) - { - for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++) - { - if (GUI::Button(m_pGameInstance->Load_BinaryModelFilePath(i))) - { + Category_ModelList("Monster"); - } - } - } - GUI::EndTabItem(); - } + Category_ModelList("Human"); } GUI::EndTabBar(); GUI::End(); } +void CLevel_ObjectViewer::Category_ModelList(const _char* Category) +{ + if (GUI::BeginTabItem(Category)) + { + if (m_pGameInstance->BinaryModelFilePathCount() > 0) + { + for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++) + { + const _char* szCategory = m_pGameInstance->Load_BinaryModelFilePath(i); + + if (strstr(szCategory, Category)) + { + if (GUI::Button(szCategory)) + { + CGameObject* pTempObject = { nullptr }; + + CDummyObject::PARTS_OBJECT_DESC Desc = {}; + + Desc.pModelPrototypeTag = Save_ModelName(szCategory); + + Save_LayerName(Category); + + if (m_Objects.size() > 0) + { + m_pGameInstance->Get_Layer(NEXT_LEVEL, m_wszPreLayer)->Clear_Layer(); + m_Objects.pop_back(); + } + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, m_wszLayer, &Desc, nullptr, reinterpret_cast(&pTempObject)))) + return; + + wcscpy_s(m_wszPreLayer, m_wszLayer); + + m_Objects.push_back(pTempObject); + } + } + } + } + GUI::EndTabItem(); + } +} + +void CLevel_ObjectViewer::Category_PartsModelList(const _char* Category, const _char* Layer) +{ + if (m_pGameInstance->BinaryModelFilePathCount() > 0) + { + if (!m_HumanRoot) + { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, TEXT("Layer_Root"), nullptr, nullptr, reinterpret_cast(&m_HumanRoot)))) + return; + } + for (_uint i = 0; i < m_pGameInstance->BinaryModelFilePathCount(); i++) + { + const _char* szCategory = m_pGameInstance->Load_BinaryModelFilePath(i); + + if (strstr(szCategory, Category)) + { + if (GUI::Button(szCategory)) + { + Save_LayerName(Layer); + + CGameObject* pTempObject = { nullptr }; + + CDummyObject::PARTS_OBJECT_DESC Desc = {}; + + Desc.pModelPrototypeTag = Save_ModelName(szCategory); + + dynamic_cast(m_HumanRoot)->Set_PrototypeModelName(Desc.pModelPrototypeTag); + dynamic_cast(m_HumanRoot)->Set_ModelName(szCategory); + } + } + } + } +} + void CLevel_ObjectViewer::Show_AnimList() { GUI::Begin("Anim_List"); if (!m_Objects.empty()) { - if (!m_Objects[m_iObjectIndex]->isDead()) + CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component(); + for (_uint i = 0; i < pModel->Get_AnimSize(); i++) + { + if (GUI::Button(pModel->Get_AnimList(i))) + { + pModel->Set_AnimationIndex(i); + } + } + } + if (m_HumanRoot) + { + CModel* pModel = dynamic_cast(m_HumanRoot)->Get_ModelParts(0)->Get_Component(); + if (pModel) { - CModel* pModel = m_Objects[m_iObjectIndex]->Get_Component(); for (_uint i = 0; i < pModel->Get_AnimSize(); i++) { if (GUI::Button(pModel->Get_AnimList(i))) @@ -207,11 +254,70 @@ void CLevel_ObjectViewer::Object_Setting() } if (GUI::Button("Delete")) { - + m_pGameInstance->Get_Layer(NEXT_LEVEL, m_wszPreLayer)->Clear_Layer(); + m_Objects.pop_back(); } } - GUI::End(); + + GUI::Begin("PartsObject_Info"); + if (m_HumanRoot) + { + CModel* pModel = dynamic_cast(m_HumanRoot)->Get_ModelParts(0)->Get_Component(); + if (pModel) + { + _float AnimTrack = pModel->Get_CurrentTrackPosition(); + GUI::DragFloat("AnimTrack", &AnimTrack); + + _float AnimSpeed = pModel->Get_AnimSpeed(); + GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f); + pModel->Set_AnimSpeed(AnimSpeed); + + _bool bPlayAnim = pModel->Get_PlayAnim(); + if (GUI::Checkbox("Play Anim", &bPlayAnim)) + { + pModel->Set_PlayAnim(bPlayAnim); + } + if (GUI::Button("Delete")) + { + m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_Root"))->Clear_Layer(); + m_HumanRoot = nullptr; + } + } + } + + GUI::End(); +} + +void CLevel_ObjectViewer::Save_LayerName(const _char* Category) +{ + _wstring szLayer = TEXT("Layer_"); + + _wchar szCategory[MAX_PATH]; + + wcscpy_s(m_wszLayer, szLayer.c_str()); + + MultiByteToWideChar(CP_ACP, 0, Category, -1, szCategory, MAX_PATH); + + wcscat_s(m_wszLayer, szCategory); +} + +_wchar* CLevel_ObjectViewer::Save_ModelName(const _char* Category) +{ + _splitpath_s(Category, nullptr, 0, nullptr, 0, m_szName, MAX_PATH, nullptr, 0); + + _wstring szDir = TEXT("Prototype_Component_"); + _wstring szDir2 = TEXT("_Model"); + + _wchar wszName[MAX_PATH] = { 0 }; + + MultiByteToWideChar(CP_ACP, 0, m_szName, -1, wszName, MAX_PATH); + + wcscpy_s(m_wszName, szDir.c_str()); + wcscat_s(m_wszName, wszName); + wcscat_s(m_wszName, szDir2.c_str()); + + return m_wszName; } HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) @@ -226,7 +332,7 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f); CameraDesc.fMouseSensor = 0.1f; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &CameraDesc))) return E_FAIL; @@ -256,8 +362,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag) 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, LAYER_CUBE))) + return E_FAIL;*/ return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp b/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp index 19a0e36d8..5bd46b23c 100644 --- a/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp @@ -6,6 +6,8 @@ #include "DebugCamera.h" #include "Terrain.h" #include "Dummy_PhysXBox.h" +#include "Dummy_PhysXPlayable.h" +#include "Dummy_PhysXMesh.h" CLevel_PhysXLab::CLevel_PhysXLab(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -66,7 +68,7 @@ HRESULT CLevel_PhysXLab::Ready_Layer_Camera(const _wstring& strLayerTag) CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{}; CameraDesc.fFovy = XMConvertToRadians(60.0f); CameraDesc.fNear = 0.1f; - CameraDesc.fFar = 500.f; + CameraDesc.fFar = 5000.f; CameraDesc.vEye = _float3(0.f, 10.f, -10.f); CameraDesc.vAt = _float3(0.f, 0.f, 0.f); CameraDesc.fSpeedPerSec = 2.f; @@ -97,7 +99,24 @@ HRESULT CLevel_PhysXLab::Ready_Layer_PhysXObjects(const _wstring& strLayerTag) return E_FAIL; } } + + { + CDummy_PhysXPlayable::BOXSTARTPOS_DESC Desc{}; + Desc.vPos = { 0.f, 10.f, 0.f }; + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER, &Desc))) { + return E_FAIL; + } + } + { + CDummy_PhysXMesh::BOXSTARTPOS_DESC Desc{}; + Desc.vPos = { 0.f, 10.f, 0.f }; + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CHUNK, &Desc))) { + return E_FAIL; + } + } return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 69741530b..5421e9a67 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -13,7 +13,10 @@ #include "Body.h" #include "Hair.h" #include "Dummy_Goblin.h" -#include "Monster.h" +#include "Dummy_Goblin.h" +#include "DummyObject.h" +#include + #pragma endregion #pragma region UI @@ -27,11 +30,11 @@ #include "Mission_Key.h" #include "Mission_KeyHold.h" #include "Mouse_Cursor.h" - #include "MiniMap_TrimBorder.h" #include "Active_Icon.h" #include "MiniMap_Panel.h" +#include "MiniMap_TrimBorder.h" #include "Loading_Panel.h" #include "LoadingWidget.h" @@ -44,7 +47,9 @@ #pragma region MAP_HEADER #include "VIBuffer_Terrain.h" #include "Terrain.h" -#include "MapObject.h" +#include "BuildingContainer.h" +#include "MapObject_Static.h" +#include "MapObject_LOD.h" #include "MapObject_Manager.h" #pragma endregion @@ -60,6 +65,8 @@ #pragma region PHYSX_HEADER #include "Dummy_PhysXBox.h" +#include "Dummy_PhysXPlayable.h" +#include "Dummy_PhysXMesh.h" #pragma endregion @@ -73,7 +80,7 @@ CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) SAFE_ADDREF(m_pContext); } -unsigned int APIENTRY LoadingMain(void* pArg) +_uint APIENTRY LoadingMain(void* pArg) { CLoader* pLoader = static_cast(pArg); @@ -123,18 +130,18 @@ HRESULT CLoader::Loading() case LEVEL::OBJECT: hr = Loading_For_ObjectViewer(); break; - //case LEVEL::COMBINED: - // hr = Loading_For_CombinedViewer(); - // break; + //case LEVEL::COMBINED: + // hr = Loading_For_CombinedViewer(); + // break; case LEVEL::EFFECT: hr = Loading_For_Effect(); break; case LEVEL::PHYSX: hr = Loading_For_PhysXLevel(); break; - //case LEVEL::PARTICLE: - // hr = Loading_For_Particle(); - // break; + //case LEVEL::PARTICLE: + // hr = Loading_For_Particle(); + // break; default: assert(false); break; @@ -160,7 +167,7 @@ HRESULT CLoader::Loading_For_Logo() if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dororong"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))){ + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))) { return E_FAIL; } @@ -205,11 +212,6 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Desc_Box"), - CModel::Create(m_pDevice, m_pContext, "../Bin/Resources/Models/Box/Box.fbx", MODEL::NONANIM, XMMatrixIdentity(), 0)))) - return E_FAIL; - - m_strMessage = TEXT("Prototype Loading.."); if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummyRect::Create(m_pDevice, m_pContext)))) { @@ -417,7 +419,7 @@ HRESULT CLoader::Loading_For_Effect() _string strFilePath = pFilePath; _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); - + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { @@ -426,7 +428,7 @@ HRESULT CLoader::Loading_For_Effect() return S_OK; - }); + }); Asset_FileLoad("../Bin/Resources/Textures/Effect/Diffuse", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { @@ -453,7 +455,7 @@ HRESULT CLoader::Loading_For_Effect() return S_OK; - }); + }); @@ -506,25 +508,80 @@ HRESULT CLoader::Loading_For_PhysXLevel() Desc.tRigidDynamicDesc.vhalfGeometryInfo = { 0.5f, 0.5f, 0.5f }; Desc.tRigidDynamicDesc.vMatInfo = { 0.5f, 0.5f, 0.6f }; Desc.tRigidDynamicDesc.ePxShapeFlag = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; - + m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody::Create(m_pDevice, m_pContext, Desc)); } - //{ - // CRigidBody::RIGIDBODY_PROTOTYPEDESC Desc{}; - // Desc.tRigidStaticDesc.pMesh; - // Desc.tRigidStaticDesc.vMatInfo = { 0.5f, 0.5f, 0.6f }; - // Desc.tRigidStaticDesc.pMeshKey = TEXT("PHYSX_STATIC_MESH"); - //} + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_River_Col_Model"), + //CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/River/River.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){ + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/River/River.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){ + return E_FAIL; + } + + { + CModel* pModel = (CModel*)m_pGameInstance->Find_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_River_Col_Model")); + _uint iNumMesh = pModel->Get_NumMeshes(); + + CRigidBody::RIGIDBODY_PROTOTYPEDESC Desc{}; + for (_uint i = 0; i < iNumMesh; ++i) { + Desc.eType = ACTOR::TRIANGLEMESH; + Desc.tRigidStaticDesc.szMeshName = pModel->Get_MeshName(i); + Desc.tRigidStaticDesc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(Desc.tRigidStaticDesc.szMeshName).c_str(), CRigidBody::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + } + } + { + m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)); + } m_strMessage = TEXT("Texture Loading.."); m_strMessage = TEXT("Model Loading.."); +#ifdef 기무리 + for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MapRe\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes")) + { + if (file.is_directory()) + continue; + + string ext = file.path().extension().string(); + + if (strcmp(ext.c_str(), ".bin")) + continue; + + _char szFilePath[MAX_PATH] = {}; + + strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); + + _wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring(); + + /*For Prototype_Component_Model_*/ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath)))) + return E_FAIL; + + ModelPrototypeTags.push_back(strFileName); + } +#endif // 기무리 + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Steve_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Steve/Steve.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) + return E_FAIL; + m_strMessage = TEXT("Shader Loading.."); m_strMessage = TEXT("Prototype Loading.."); - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXBox::Create(m_pDevice, m_pContext)))){ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXBox::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXMesh::Create(m_pDevice, m_pContext)))){ return E_FAIL; } @@ -570,36 +627,48 @@ HRESULT CLoader::Loading_For_ObjectViewer() m_strMessage = TEXT("Model Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_HumanBody_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Body.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DADA_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/DADA/DADA.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_HumanHead_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Head.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DarkWizardSoldier_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.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_HumanHair_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Hair.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DarkWizardGrunt_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.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_DarkWizardTank_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.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_Young_M_Head_Ivory_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Young_M_Head_Ivory.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_Hair1_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Hair1/Hair1.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_Hair2_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Hair2/Hair2.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_GoblinHead_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinHead.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/GoblinHead.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_GoblinBody_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Goblin/GoblinBody.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_Steve_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Steve/Steve.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/GoblinBody.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_TombProtector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/TombProtector/TombProtector.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/TombProtector/TombProtector.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_Troll_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Troll/Troll.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; m_strMessage = TEXT("Shader Loading.."); @@ -622,8 +691,8 @@ HRESULT CLoader::Loading_For_ObjectViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext)))) return E_FAIL; - /* For.Prototype_GameObject_Monster */ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMonster::Create(m_pDevice, m_pContext)))) + /* For.Prototype_GameObject_DummyObject */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummyObject::Create(m_pDevice, m_pContext)))) return E_FAIL; /* For.Prototype_GameObject_Dummy_Cube */ @@ -651,8 +720,7 @@ HRESULT CLoader::Loading_For_MapViewer() vector<_wstring> ModelPrototypeTags; - for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MapRe\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes")) - + for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes")) { if (file.is_directory()) continue; @@ -660,7 +728,6 @@ HRESULT CLoader::Loading_For_MapViewer() string ext = file.path().extension().string(); if (strcmp(ext.c_str(), ".fbx")) - continue; _char szFilePath[MAX_PATH] = {}; @@ -669,26 +736,56 @@ HRESULT CLoader::Loading_For_MapViewer() _wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring(); - /*For Prototype_Component_Model_Auro*/ + /*For Prototype_Component_Model_*/ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, - CModel::Create(m_pDevice, m_pContext, szFilePath, MODEL::ENVIROMENT, XMMatrixIdentity(), 0)))) + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath)))) return E_FAIL; ModelPrototypeTags.push_back(strFileName); } + //for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MapRe\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit")) + //{ + // if (file.is_directory()) + // continue; + // string ext = file.path().extension().string(); + + // 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(); + + // /*For Prototype_Component_Model_*/ + // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, + // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath)))) + // return E_FAIL; + + // ModelPrototypeTags.push_back(strFileName); + //} m_strMessage = TEXT("ì‰�ì�´ë�”를(ì�„) 로딩 중 입니다."); m_strMessage = TEXT("ê°�ì²´ì›�형를(ì�„) 로딩 중 입니다."); - + /* 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_MapObject */ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject::Create(m_pDevice, m_pContext)))) + /* For.Prototype_GameObject_BuildingContainer */ + 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)))) + return E_FAIL; + + /* For.Prototype_GameObject_MapObject_LOD */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_LOD::Create(m_pDevice, m_pContext)))) return E_FAIL; /* For.Prototype_GameObject_Terrain */ diff --git a/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp b/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp index 85215f2b1..46b0ac0cd 100644 --- a/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp @@ -99,12 +99,12 @@ HRESULT CLoading_Panel::Ready_Components(void* pArg) HRESULT CLoading_Panel::Ready_Element(void* pArg) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoadingWidget))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget)))) { return E_FAIL; } Add_Element(TEXT("LoadingWidget"), m_pLoadingWidget); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoadingWidget_Flame))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget_Flame)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/MainApp.cpp b/Jusin154_Team3D/Editor/Private/MainApp.cpp index 62c95dff4..210675229 100644 --- a/Jusin154_Team3D/Editor/Private/MainApp.cpp +++ b/Jusin154_Team3D/Editor/Private/MainApp.cpp @@ -108,9 +108,12 @@ HRESULT CMainApp::Ready_IMGUI() ImGui_ImplWin32_Init(g_hWnd); ImGui_ImplDX11_Init(m_pDevice, m_pContext); - string strFontTag = "C:\\Windows\\Fonts\\malgun.ttf"; - //string strFontTag = "../Bin/Resources/Fonts/SHOWG.TTF"; - + //string strFontTag = "C:\\Windows\\Fonts\\malgun.ttf"; + string strFontTag = "../Bin/Resources/Fonts/malgunsl.TTF"; + ImFontConfig cfg; + cfg.OversampleH = 2; // °¡µ¶¼º Çâ»ó + cfg.OversampleV = 2; + cfg.PixelSnapH = true; ifstream ifile; ifile.open(strFontTag); @@ -119,6 +122,7 @@ HRESULT CMainApp::Ready_IMGUI() font = io.Fonts->AddFontFromFileTTF(strFontTag.c_str(), 16.f, NULL, io.Fonts->GetGlyphRangesKorean()); } IM_ASSERT(font != NULL); + io.FontDefault = font; return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/MapContainer.cpp b/Jusin154_Team3D/Editor/Private/MapContainer.cpp new file mode 100644 index 000000000..484d616cb --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/MapContainer.cpp @@ -0,0 +1,122 @@ +#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) +{ +} + +CMapContainer::CMapContainer(const CMapContainer& rhs) + :CContainerObject(rhs) +{ +} + +HRESULT CMapContainer::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMapContainer::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CMapContainer::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +void CMapContainer::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CMapContainer::Update(_float fTimeDelta) +{ + __super::Update(fTimeDelta); +} + +void CMapContainer::Late_Update(_float fTimeDelta) +{ + __super::Late_Update(fTimeDelta); +} + +HRESULT CMapContainer::Render() +{ + return S_OK; +} + +HRESULT CMapContainer::Save_PartObjects(tinyxml2::XMLDocument& Doc, tinyxml2::XMLElement* Container) +{ + for (auto& piar : m_PartObjects) + { + CMapObject* pMapObject = dynamic_cast(piar.second); + + if (nullptr == pMapObject) + return E_FAIL; + + // + tinyxml2::XMLElement* PartObject = Doc.NewElement("PartObject"); + PartObject->SetAttribute("Lod_Level", pMapObject->Get_LodLevel()); + Container->InsertEndChild(PartObject); + + 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); + } + + // + 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); + PartObject->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); + PartObject->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); + PartObject->InsertEndChild(RotationElem); + + } + + return S_OK; +} + +void CMapContainer::Free() +{ + __super::Free(); +} diff --git a/Jusin154_Team3D/Editor/Private/MapObject.cpp b/Jusin154_Team3D/Editor/Private/MapObject.cpp index ace0588d0..183b29636 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject.cpp @@ -4,18 +4,59 @@ #include "GameInstance.h" #include "DebugCamera.h" #include "Layer.h" -//#include "Terrain.h" +#include "Terrain.h" +#include "VIBuffer_Terrain.h" CMapObject::CMapObject(ID3D11Device * pDevice, ID3D11DeviceContext * pContext) - : CGameObject(pDevice, pContext) + : CPartObject(pDevice, pContext) { } CMapObject::CMapObject(const CMapObject& Prototype) - : CGameObject(Prototype) + : CPartObject(Prototype) { } + + +void CMapObject::Priority_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + m_bSelected = false; +#endif +} + +void CMapObject::Update(_float fTimeDelta) +{ + +} + +void CMapObject::Late_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + if(m_bSelected) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + } +#endif + + _float4 vPos; + XMStoreFloat4(&vPos, Get_WorldPostion()); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f); +} + +HRESULT CMapObject::Render() +{ + return S_OK; +} + +_wstring CMapObject::Get_PrototypeTag(_uint iLodIndex) +{ + return _wstring(); +} + HRESULT CMapObject::Initialize_Prototype() { return S_OK; @@ -23,17 +64,9 @@ HRESULT CMapObject::Initialize_Prototype() HRESULT CMapObject::Initialize(void* pArg) { - MAPOBJECT_DESC* pDesc = static_cast(pArg); - - m_strModelPrototypeTag = pDesc->pModelPrototypeTag; - if (FAILED(__super::Initialize(pArg))) return E_FAIL; - if (FAILED(Ready_Components())) - return E_FAIL; - - #ifdef _DEBUG m_bSelected = false; m_vPosition = _float3(0.f, 0.f, 0.f); @@ -44,182 +77,23 @@ HRESULT CMapObject::Initialize(void* pArg) return S_OK; } -void CMapObject::Priority_Update(_float fTimeDelta) -{ -#ifdef _DEBUG - m_bSelected = false; -#endif -} - -void CMapObject::Update(_float fTimeDelta) -{ -#ifdef _DEBUG - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); - m_pTransformCom->Set_Scale(m_vScale); - m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); -#endif -} - -void CMapObject::Late_Update(_float fTimeDelta) -{ - _float4 vPos; - XMStoreFloat4(&vPos, Get_WorldPostion()); - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f); -} - -HRESULT CMapObject::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 CMapObject::Ready_Components() { __super::Ready_Components(nullptr); - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, - 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 CMapObject::Bind_ShaderResources() { - if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; - } - - if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { - return E_FAIL; - } - //if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { - // return E_FAIL; - //} - //if (FAILED(m_pShaderCom->Bind_RawValue("g_bRimLight", &m_bRimLight, sizeof(_bool)))) { - // return E_FAIL; - //} - //if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimStrength", &m_fRimLightStrength, sizeof(_float)))) { - // return E_FAIL; - //} - //if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimPower", &m_fRimLightPower, sizeof(_float)))) { - // return E_FAIL; - //} - //if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimColor", &m_vRimLightColor, sizeof(_float3)))) { - // return E_FAIL; - //} return S_OK; } -CMapObject* CMapObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) -{ - CMapObject* pInstance = new CMapObject(pDevice, pContext); - - if (FAILED(pInstance->Initialize_Prototype())) - { - MSG_BOX("Failed to Created : CMapObject"); - Safe_Release(pInstance); - } - - return pInstance; -} - -CGameObject* CMapObject::Clone(void* pArg, CGameObject* pOwner) -{ - CMapObject* pInstance = new CMapObject(*this); - - if (FAILED(pInstance->Initialize(pArg))) - { - MSG_BOX("Failed to Cloned : CMapObject"); - Safe_Release(pInstance); - } - - return pInstance; -} - void CMapObject::Free() { __super::Free(); - - Safe_Release(m_pShaderCom); - Safe_Release(m_pModelCom); } void CMapObject::Describe_Entity() { - if (m_bDead) - return; - if (nullptr == m_pGameInstance) - return; - - ImGui::Text(CMyTools::ToString(m_strModelPrototypeTag).c_str()); - ImGui::Text("----- Transfrom ----"); - ImGui::InputFloat("X##Position", &m_vPosition.x, 1.f, 10.f); - ImGui::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f); - ImGui::InputFloat("Z##Position", &m_vPosition.z, 1.f, 10.f); - - if (m_pGameInstance->Mouse_Down(DIM_4)) - { - /*CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); - if (nullptr != pTerrain) - { - pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); - }*/ - - } - - ImGui::Text("----- Rotation ----"); - ImGui::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f); - ImGui::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f); - ImGui::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f); - - ImGui::Text("----- Scale ----"); - ImGui::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f); - ImGui::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f); - ImGui::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f); - - m_vScale.x = max(0.01f, m_vScale.x); - m_vScale.y = max(0.01f, m_vScale.y); - m_vScale.z = max(0.01f, m_vScale.z); - - - if (ImGui::Button("Delete")) - m_bDead = true; - - m_bSelected = true; } \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp new file mode 100644 index 000000000..34ca2a9f7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp @@ -0,0 +1,275 @@ +#include "pch.h" +#include "MapObject_LOD.h" + +#include "GameInstance.h" +#include "DebugCamera.h" +#include "Layer.h" +#include "Terrain.h" +#include "VIBuffer_Terrain.h" + +CMapObject_LOD::CMapObject_LOD(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMapObject(pDevice, pContext) +{ +} + +CMapObject_LOD::CMapObject_LOD(const CMapObject_LOD& Prototype) + : CMapObject(Prototype), m_iLodIndex{ 0 } +{ +} + +HRESULT CMapObject_LOD::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMapObject_LOD::Initialize(void* pArg) +{ + MAPOBJECT_LOD_DESC* pDesc = static_cast(pArg); + + m_iMaxLodLevel = pDesc->iMaxLodLevel; + + for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) + { + m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); + } + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components())) + return E_FAIL; + +#ifdef _DEBUG + m_bSelected = false; + m_vPosition = pDesc->vPosition; + m_vScale = pDesc->vScale; + m_vRotation = pDesc->vRotation; + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); +#endif // _DEBUG + + return S_OK; +} + +void CMapObject_LOD::Priority_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + m_bSelected = false; +#endif +} + +void CMapObject_LOD::Update(_float fTimeDelta) +{ + +} + +void CMapObject_LOD::Late_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + if (m_bSelected) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + } +#endif + + XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix()); + + _float4 vPos; + //XMStoreFloat4(&vPos, Get_WorldPostion()); + XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION)); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f); +} + +HRESULT CMapObject_LOD::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + 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; + } + if (m_bSelected) + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + } + + + if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +_wstring CMapObject_LOD::Get_PrototypeTag(_uint iLodIndex) +{ + if (m_iMaxLodLevel < iLodIndex) + return m_ModelPrototypeTags[0]; + + return m_ModelPrototypeTags[iLodIndex]; +} + +HRESULT CMapObject_LOD::Add_LodModel(const _tchar* pModelPrototypeTag) +{ + CModel* pModel = { nullptr }; + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pModelPrototypeTag, + reinterpret_cast(&pModel)))) + return E_FAIL; + + m_ModelPrototypeTags.push_back(pModelPrototypeTag); + + ++m_iMaxLodLevel; + m_pModelComs.push_back(pModel); + + return S_OK; +} + +HRESULT CMapObject_LOD::Ready_Components() +{ + __super::Ready_Components(); + + 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; + + return S_OK; +} + +HRESULT CMapObject_LOD::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; + } + + return S_OK; +} + +CMapObject_LOD* CMapObject_LOD::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMapObject_LOD* pInstance = new CMapObject_LOD(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMapObject_LOD"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMapObject_LOD::Clone(void* pArg, CGameObject * pOwner) +{ + CMapObject_LOD* pInstance = new CMapObject_LOD(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMapObject_LOD"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapObject_LOD::Free() +{ + __super::Free(); + + Safe_Release(m_pShaderCom); + + for(auto& pModel : m_pModelComs) + Safe_Release(pModel); + m_pModelComs.clear(); +} + +void CMapObject_LOD::Describe_Entity() +{ + if (m_bDead) + return; + if (nullptr == m_pGameInstance) + return; + + GUI::Text(CMyTools::ToString(m_ModelPrototypeTags[m_iLodIndex]).c_str()); + GUI::InputInt("Lod Level", (_int*)(&m_iLodIndex)); + m_iLodIndex = max(0, m_iLodIndex); + m_iLodIndex = min(m_iMaxLodLevel, m_iLodIndex); + GUI::Text("----- Transfrom ----"); + GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f); + GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f); + GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f); + + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); + if (nullptr != pTerrain) + { + pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + } + + } + + GUI::Text("----- Rotation ----"); + GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f); + GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f); + GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f); + + GUI::Text("----- Scale ----"); + GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f); + GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f); + GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f); + + m_vScale.x = max(0.01f, m_vScale.x); + m_vScale.y = max(0.01f, m_vScale.y); + m_vScale.z = max(0.01f, m_vScale.z); + + + if (GUI::Button("Delete")) + m_bDead = true; + + m_bSelected = true; +} \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 65acf60aa..13fa89b1f 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -5,6 +5,9 @@ #include "DebugCamera.h" #include "Layer.h" #include "MapObject.h" +#include "MapObject_LOD.h" +#include "MapObject_Static.h" +#include "BuildingContainer.h" CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext) @@ -12,15 +15,25 @@ CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceConte { } -CMapObject_Manager::CMapObject_Manager(const CMapObject_Manager& Prototype) - : CGameObject(Prototype) - , m_ModelPrototypeTags{ Prototype.m_ModelPrototypeTags } +CMapObject_Manager::CMapObject_Manager(const CMapObject_Manager& rhs) + : CGameObject(rhs) + , m_ModelPrototypeTags{ rhs.m_ModelPrototypeTags } + , m_LODModelPrototypeTags{ rhs.m_LODModelPrototypeTags } { } HRESULT CMapObject_Manager::Initialize_Prototype(vector<_wstring>& ModelPrototypeTags) { - m_ModelPrototypeTags = ModelPrototypeTags; + for (auto& Tag : ModelPrototypeTags) + { + if (_wstring::npos != Tag.find(L"Lod")) + { + m_LODModelPrototypeTags.push_back(Tag); + } + + m_ModelPrototypeTags.push_back(Tag); + + } return S_OK; } @@ -30,51 +43,694 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))) return E_FAIL; + if (FAILED(Ready_Components())) + return E_FAIL; + m_iContainerObjectIndex = 99; + //m_pContainer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building"))->Get_Object(); return S_OK; } void CMapObject_Manager::Priority_Update(_float fTimeDelta) { - + for (auto* pObject : m_MapObjects) + { + pObject->Priority_Update(fTimeDelta); + } } void CMapObject_Manager::Update(_float fTimeDelta) { - GUI::Begin("Model Prototype List"); - - for (auto& Tag : m_ModelPrototypeTags) + GUI::Begin("File"); + if (GUI::Button("Save_Map")) { - if (ImGui::Button(CMyTools::ToString(Tag).c_str())) + Save_MapData("Test"); + + } + if (GUI::Button("Load_Map")) + { + Load_MapData("Test"); + + } + GUI::InputText("Containter Name", m_szSaveContainerName, MAX_PATH); + if (GUI::Button("Save_Container")) + { + Save_ContainerData("ContainerTest", m_szSaveContainerName); + } + if (GUI::Button("Load_Container")) + { + Load_ContainerData("ContainerTest", m_szSaveContainerName); + } + GUI::End(); + + Update_PrototypeList(); + + Update_ObjectList(); + + Update_Edit(); + + Update_ContainerObject(); + + for (auto* pObject : m_MapObjects) + { + pObject->Update(fTimeDelta); + } +} + +void CMapObject_Manager::Late_Update(_float fTimeDelta) +{ + auto iter = m_MapObjects.begin(); + for (; iter != m_MapObjects.end();) + { + if ((*iter)->isDead()) { - CMapObject::MAPOBJECT_DESC Desc = {}; - Desc.pModelPrototypeTag = Tag.c_str(); + SAFE_RELEASE(*iter); + iter = m_MapObjects.erase(iter); + } + else + { + (*iter)->Late_Update(fTimeDelta); + ++iter; + } + + } +} - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::MAP), TEXT("Layer_MapObject"), &Desc))) +HRESULT CMapObject_Manager::Render() +{ + return S_OK; +} + +HRESULT CMapObject_Manager::Ready_Components() +{ + __super::Ready_Components(nullptr); + + return S_OK; +} + +HRESULT CMapObject_Manager::Bind_ShaderResources() +{ + return S_OK; +} + +HRESULT CMapObject_Manager::Save_MapData(const _char* pFileName) +{ + tinyxml2::XMLDocument doc; + string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml"; + + tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str()); + + tinyxml2::XMLElement* land = {}; + tinyxml2::XMLElement* container = {}; + + if (loadResult != tinyxml2::XML_SUCCESS) + { + doc.InsertFirstChild(doc.NewDeclaration()); + + land = doc.NewElement("Land"); + doc.InsertEndChild(land); + + } + else + { + land = doc.FirstChildElement("Land"); + } + + CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building")); + + if (nullptr == pLayer) + return E_FAIL; + + const list* pList = pLayer->Get_Objects(); + + + for (auto pGamObject : *pList) + { + CBuildingContainer* pContainerObject = dynamic_cast(pGamObject); + + if (nullptr == pContainerObject) + return E_FAIL; + + string strName = pContainerObject->Get_Name(); + + tinyxml2::XMLElement* container = doc.NewElement("Container"); + container->SetAttribute("Name", strName.c_str()); + land->InsertEndChild(container); + + _float3 vPosition = {}; + XMStoreFloat3(&vPosition, pGamObject->Get_Component()->Get_State(STATE::POSITION)); + + _float3 vScale = pGamObject->Get_Component()->Get_Scale(); + + _float3 vRotation = {}; + XMStoreFloat3(&vRotation, pGamObject->Get_Component()->Get_RollPitchYawVector()); + vRotation.x = XMConvertToDegrees(vRotation.x); + vRotation.y = XMConvertToDegrees(vRotation.y); + vRotation.z = XMConvertToDegrees(vRotation.z); + + +#pragma region CONTAINER_TRANSFORM + tinyxml2::XMLElement* Position = doc.NewElement("Position"); + Position->SetAttribute("x", vPosition.x); + Position->SetAttribute("y", vPosition.y); + Position->SetAttribute("z", vPosition.z); + container->InsertEndChild(Position); + + tinyxml2::XMLElement* Scale = doc.NewElement("Scale"); + Scale->SetAttribute("x", vScale.x); + Scale->SetAttribute("y", vScale.y); + Scale->SetAttribute("z", vScale.z); + container->InsertEndChild(Scale); + + tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation"); + Rotation->SetAttribute("x", vRotation.x); + Rotation->SetAttribute("y", vRotation.y); + Rotation->SetAttribute("z", vRotation.z); + container->InsertEndChild(Rotation); +#pragma endregion + + + +#pragma region SAVE_PARTOBJECT + + if (FAILED(pContainerObject->Save_PartObjects(doc, container))) + return E_FAIL; + } +#pragma endregion + + // ÀúÀå + if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) { + MSG_BOX("Failed to Save File"); + } + else + { + MSG_BOX("Succeed to Save File"); + } + + return S_OK; + + + + + return S_OK; +} + +HRESULT CMapObject_Manager::Save_ContainerData(const _char* pFileName, const _char* pContainerName) +{ + if (true == m_MapObjects.empty()) + return E_FAIL; + + tinyxml2::XMLDocument doc; + string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml"; + + tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str()); + + tinyxml2::XMLElement* land = {}; + tinyxml2::XMLElement* container = {}; + + if (loadResult != tinyxml2::XML_SUCCESS) + { + doc.InsertFirstChild(doc.NewDeclaration()); + + land = doc.NewElement("Land"); + doc.InsertEndChild(land); + + container = doc.NewElement("Container"); + container->SetAttribute("Name", pContainerName); + land->InsertEndChild(container); + } + else + { + land = doc.FirstChildElement("Land"); + container = doc.NewElement("Container"); + container->SetAttribute("Name", pContainerName); + land->InsertEndChild(container); + } + +#pragma region CONTAINER_DEFAULT_TRANSFORM + tinyxml2::XMLElement* Position = doc.NewElement("Position"); + Position->SetAttribute("x", 0.f); + Position->SetAttribute("y", 0.f); + Position->SetAttribute("z", 0.f); + container->InsertEndChild(Position); + + tinyxml2::XMLElement* Scale = doc.NewElement("Scale"); + Scale->SetAttribute("x", 1.f); + Scale->SetAttribute("y", 1.f); + Scale->SetAttribute("z", 1.f); + container->InsertEndChild(Scale); + + tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation"); + Rotation->SetAttribute("x", 0.f); + Rotation->SetAttribute("y", 0.f); + Rotation->SetAttribute("z", 0.f); + container->InsertEndChild(Rotation); +#pragma endregion + +#pragma region SAVE_PARTOBJECT + for (auto& pMapObject : m_MapObjects) + { + // + tinyxml2::XMLElement* PartObject = doc.NewElement("PartObject"); + PartObject->SetAttribute("Lod_Level", pMapObject->Get_LodLevel()); + container->InsertEndChild(PartObject); + + 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); + } + + // + 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); + PartObject->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); + PartObject->InsertEndChild(ScaleElem); + + // + tinyxml2::XMLElement* RotationElem = doc.NewElement("Rotation"); + + _float3 vRotation = {}; + XMStoreFloat3(&vRotation, pMapObject->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); + PartObject->InsertEndChild(RotationElem); + + SAFE_RELEASE(pMapObject); + } + m_MapObjects.clear(); + m_pSelectObject = nullptr; +#pragma endregion + + // ÀúÀå + if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) { + MSG_BOX("Failed to Save File"); + } + else + { + MSG_BOX("Succeed to Save File"); + } + + return S_OK; +} + +HRESULT CMapObject_Manager::Load_MapData(const _char* pFileName) +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Land"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + /* Container */ + for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container")) + { + const _char* pName = {}; + + Container->QueryStringAttribute("Name", &pName); +#pragma region ADD_CONTAINER_OBJECT + + CBuildingContainer* pContainerObject = { nullptr }; + CMapContainer::MAP_CONTAINER_DESC ContainerDesc = {}; + + auto* ContainerPosition = Container->FirstChildElement("Position"); + ContainerPosition->QueryFloatAttribute("x", &ContainerDesc.vPosition.x); + ContainerPosition->QueryFloatAttribute("y", &ContainerDesc.vPosition.y); + ContainerPosition->QueryFloatAttribute("z", &ContainerDesc.vPosition.z); + + auto* ContainerScale = Container->FirstChildElement("Scale"); + ContainerScale->QueryFloatAttribute("x", &ContainerDesc.vScale.x); + ContainerScale->QueryFloatAttribute("y", &ContainerDesc.vScale.y); + ContainerScale->QueryFloatAttribute("z", &ContainerDesc.vScale.z); + + auto* ContainerRotation = Container->FirstChildElement("Rotation"); + ContainerRotation->QueryFloatAttribute("x", &ContainerDesc.vRotation.x); + ContainerRotation->QueryFloatAttribute("y", &ContainerDesc.vRotation.y); + ContainerRotation->QueryFloatAttribute("z", &ContainerDesc.vRotation.z); + + ContainerDesc.strName = string(pName); + + m_pGameInstance->Add_GameObject_ToLayer( + g_iStaticLevel, ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building"), &ContainerDesc, nullptr, &pContainerObject); +#pragma endregion + +#pragma region ADD_PARTOBJECT + for (auto* PartObject = Container->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject")) + { + _uint iLodLevel = {}; + + PartObject->QueryUnsignedAttribute("Lod_Level", &iLodLevel); + +#pragma region MAPOBJECT_STATIC + if (0 == iLodLevel) /* MapObject_Static */ { - }; + CMapObject_Static::MAPOBJECT_STATIC_DESC Desc = {}; + string strTag = {}; + auto* PrototypeTag = PartObject->FirstChildElement("PrototypeTag"); + strTag = PrototypeTag->GetText(); + + Desc.strModelPrototypeTag = CMyTools::ToWstring(strTag); + + Desc.pParentTransform = pContainerObject->Get_Component(); + const string strKey = strTag; + + /* Position */ + tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + /* Scale */ + tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + /* Rotation */ + tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + pContainerObject->Add_Part(strKey, g_iStaticLevel, nullptr, &Desc); + } +#pragma endregion + +#pragma region MAPOBJECT_LOD + else + { + CMapObject_LOD::MAPOBJECT_LOD_DESC Desc = {}; + string strTag = {}; + for (auto* PrototypeTag = PartObject->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag")) + { + strTag = PrototypeTag->GetText(); + + Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag)); + } + + Desc.pParentTransform = pContainerObject->Get_Component(); + const string strKey = strTag; + + /* Position */ + tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + /* Scale */ + tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + /* Rotation */ + tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + pContainerObject->Add_Part(strKey, g_iStaticLevel, nullptr, &Desc); + } +#pragma endregion + + } +#pragma endregion + } + + return S_OK; +} + +HRESULT CMapObject_Manager::Load_ContainerData(const _char* pFileName, const _char* pContainerName) +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Land"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + tinyxml2::XMLElement* TargetContainer = { nullptr }; + + for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container")) + { + const _char* pName = {}; + + Container->QueryStringAttribute("Name", &pName); + + if (!strcmp(pContainerName, pName)) + { + TargetContainer = Container; + break; } } + /* Failed to find Container */ + if (nullptr == TargetContainer) + { + xmlDoc.Clear(); + MSG_BOX("Failed to find Container"); + return S_OK; + } +#pragma region ADD_CONTAINER_OBJECT + + CBuildingContainer* pContainerObject = { nullptr }; + CMapContainer::MAP_CONTAINER_DESC ContainerDesc = {}; + + auto* ContainerPosition = TargetContainer->FirstChildElement("Position"); + ContainerPosition->QueryFloatAttribute("x", &ContainerDesc.vPosition.x); + ContainerPosition->QueryFloatAttribute("y", &ContainerDesc.vPosition.y); + ContainerPosition->QueryFloatAttribute("z", &ContainerDesc.vPosition.z); + + auto* ContainerScale = TargetContainer->FirstChildElement("Scale"); + ContainerScale->QueryFloatAttribute("x", &ContainerDesc.vScale.x); + ContainerScale->QueryFloatAttribute("y", &ContainerDesc.vScale.y); + ContainerScale->QueryFloatAttribute("z", &ContainerDesc.vScale.z); + + auto* ContainerRotation = TargetContainer->FirstChildElement("Rotation"); + ContainerRotation->QueryFloatAttribute("x", &ContainerDesc.vRotation.x); + ContainerRotation->QueryFloatAttribute("y", &ContainerDesc.vRotation.y); + ContainerRotation->QueryFloatAttribute("z", &ContainerDesc.vRotation.z); + + ContainerDesc.strName = string(pContainerName); + + m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building"), &ContainerDesc, nullptr, (CBuildingContainer**)(&pContainerObject)); +#pragma endregion + +#pragma region ADD_PARTOBJECT + for (auto* PartObject = TargetContainer->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject")) + { + _uint iLodLevel = {}; + + PartObject->QueryUnsignedAttribute("Lod_Level", &iLodLevel); + +#pragma region MAPOBJECT_STATIC + if (0 == iLodLevel) /* MapObject_Static */ + { + CMapObject_Static::MAPOBJECT_STATIC_DESC Desc = {}; + string strTag = {}; + auto* PrototypeTag = PartObject->FirstChildElement("PrototypeTag"); + + strTag = PrototypeTag->GetText(); + + Desc.strModelPrototypeTag = CMyTools::ToWstring(strTag); + Desc.iMaxLodLevel = iLodLevel; + Desc.pParentTransform = pContainerObject->Get_Component(); + const string strKey = strTag; + + /* Position */ + tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + /* Scale */ + tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + /* Rotation */ + tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + pContainerObject->Add_Part(strKey, g_iStaticLevel, nullptr, &Desc); + } +#pragma endregion + +#pragma region MAPOBJECT_LOD + else + { + CMapObject_LOD::MAPOBJECT_LOD_DESC Desc = {}; + string strTag = {}; + for (auto* PrototypeTag = PartObject->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(); + const string strKey = strTag; + + /* Position */ + tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + /* Scale */ + tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale"); + Scale->QueryFloatAttribute("x", &Desc.vScale.x); + Scale->QueryFloatAttribute("y", &Desc.vScale.y); + Scale->QueryFloatAttribute("z", &Desc.vScale.z); + + /* Rotation */ + tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + pContainerObject->Add_Part(strKey, g_iStaticLevel, nullptr, &Desc); + } +#pragma endregion + + } +#pragma endregion + + return S_OK; +} + +void CMapObject_Manager::Update_PrototypeList() +{ + GUI::Begin("Model Prototype List"); + for (auto& Tag : m_ModelPrototypeTags) + { + if (_wstring::npos != Tag.find(L"Lod")) + continue; + + if (ImGui::Button(CMyTools::ToString(Tag).c_str())) + { + _uint iNumLodModel = {}; + + if(false == Find_Lod_Prototype(Tag, &iNumLodModel)) + { + CMapObject_Static::MAPOBJECT_STATIC_DESC Desc = {}; + + Desc.strModelPrototypeTag = Tag; + 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); + + CMapObject_Static* pMapObject = { nullptr }; + const string strKey = CMyTools::ToString(Tag); + + pMapObject = m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc); + + /* if(FAILED(m_pContainer->Add_Part(strKey, 0, &pMapObject, &Desc))) + break;*/ + + m_MapObjects.push_back(pMapObject); + } + else + { + CMapObject_LOD::MAPOBJECT_LOD_DESC Desc = {}; + + vector<_wstring> PrototypeTags; + + PrototypeTags.push_back(Tag); + Desc.iMaxLodLevel = 0; + 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); + + CMapObject_LOD* pMapObject = { nullptr }; + const string strKey = CMyTools::ToString(Tag); + + pMapObject = m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc); + + //if (FAILED(m_pContainer->Add_Part(strKey, 0, &pMapObject, &Desc))) + // break; + + m_MapObjects.push_back(pMapObject); + + for (_uint i = 0; i < iNumLodModel; ++i) + { + _wstring strLodTag = Tag + L"_Lod" + to_wstring(i + 1); + + pMapObject->Add_LodModel(strLodTag.c_str()); + } + + + } + } + } GUI::End(); + +} - CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_MapObject")); +void CMapObject_Manager::Update_ObjectList() +{ + //CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_MapObject")); - if (nullptr == pLayer) - return; + //if (nullptr == pLayer) + // return; - m_pMapObjects = pLayer->Get_Objects(); + //m_pMapObjects = pLayer->Get_Objects(); GUI::Begin("MapObject List"); _uint iObjectIndex = {}; string strSrc; - if (nullptr != m_pMapObjects) + if (false == m_MapObjects.empty()) { - for (auto pMapObject : (*m_pMapObjects)) + for (auto pMapObject : m_MapObjects) { CMapObject* pCurrentMapObject = static_cast(pMapObject); @@ -93,7 +749,10 @@ void CMapObject_Manager::Update(_float fTimeDelta) } GUI::End(); +} +void CMapObject_Manager::Update_Edit() +{ GUI::Begin("Edit"); if (nullptr != m_pSelectObject) @@ -101,103 +760,62 @@ void CMapObject_Manager::Update(_float fTimeDelta) m_pSelectObject->Describe_Entity(); if (m_pSelectObject->isDead()) m_pSelectObject = nullptr; + } GUI::End(); - } -void CMapObject_Manager::Late_Update(_float fTimeDelta) +void CMapObject_Manager::Update_ContainerObject() { + GUI::Begin("Edit Container"); -} + CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building")); -HRESULT CMapObject_Manager::Render() -{ - return S_OK; -} - -HRESULT CMapObject_Manager::Ready_Components() -{ - return S_OK; -} - -HRESULT CMapObject_Manager::Bind_ShaderResources() -{ - return S_OK; -} - -HRESULT CMapObject_Manager::Save_MapData(const _char* pFileName) -{ - const list* pObjectList = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_MapObject"))->Get_Objects(); - - if (nullptr == pObjectList) - return E_FAIL; - - tinyxml2::XMLDocument doc; - - doc.InsertFirstChild(doc.NewDeclaration()); - - tinyxml2::XMLElement* land = doc.NewElement("Land"); - doc.InsertEndChild(land); - - for (auto& pObjcet : *pObjectList) + if (nullptr == pLayer) { - CMapObject* pMapObject = dynamic_cast(pObjcet); - - if (nullptr == pMapObject) - continue; - - // - tinyxml2::XMLElement* model = doc.NewElement("Model"); - land->InsertEndChild(model); - - // ÅØ½ºÆ® - tinyxml2::XMLElement* proto = doc.NewElement("PrototypeTag"); - proto->SetText(CMyTools::ToString(pMapObject->Get_PrototypeTag()).c_str()); - model->InsertEndChild(proto); - - // - tinyxml2::XMLElement* PositionElem = doc.NewElement("Position"); - - _float3 vPosition = {}; - XMStoreFloat3(&vPosition, pMapObject->Get_WorldPostion()); - - PositionElem->SetAttribute("x", vPosition.x); - PositionElem->SetAttribute("y", vPosition.y); - PositionElem->SetAttribute("z", vPosition.z); - model->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); - model->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); - model->InsertEndChild(RotationElem); - + GUI::End(); + return; } - string strPath = "../Bin/Resources/Data/" + string(pFileName) + ".xml"; + const list* pList = pLayer->Get_Objects(); - // ÀúÀå - if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) { + _uint iIndex = {}; - return E_FAIL; + if (false == (*pList).empty()) + { + CGameObject* pSelectObject = { nullptr }; + + for (auto& pObject : (*pList)) + { + if (GUI::Button((dynamic_cast(pObject)->Get_Name().c_str()))) + { + m_iContainerObjectIndex = iIndex; + } + + if (iIndex == m_iContainerObjectIndex) + pSelectObject = pObject; + + ++iIndex; + } + + if (nullptr != pSelectObject) + pSelectObject->Describe_Entity(); } - return S_OK; + GUI::End(); +} + +_bool CMapObject_Manager::Find_Lod_Prototype(_wstring strPrototypeTag, _uint* iCount) +{ + for (auto& Tag : m_LODModelPrototypeTags) + { + if (_wstring::npos != Tag.find(strPrototypeTag)) + (*iCount)++; + } + if (0 < *iCount) + return true; + + return false; } @@ -231,6 +849,12 @@ void CMapObject_Manager::Free() { __super::Free(); + for (auto& pObject : m_MapObjects) + { + SAFE_RELEASE(pObject); + } + + SAFE_RELEASE(m_pContainer); } void CMapObject_Manager::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Static.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Static.cpp new file mode 100644 index 000000000..9872827b3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/MapObject_Static.cpp @@ -0,0 +1,239 @@ +#include "pch.h" +#include "MapObject_Static.h" + +#include "GameInstance.h" +#include "DebugCamera.h" +#include "Layer.h" +#include "Terrain.h" +#include "VIBuffer_Terrain.h" + +CMapObject_Static::CMapObject_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMapObject(pDevice, pContext) +{ +} + +CMapObject_Static::CMapObject_Static(const CMapObject_Static& Prototype) + : CMapObject(Prototype) +{ +} + +void CMapObject_Static::Priority_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + m_bSelected = false; +#endif +} + +void CMapObject_Static::Update(_float fTimeDelta) +{ + +} + +void CMapObject_Static::Late_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + if (m_bSelected) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + } +#endif + + 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); +} + +HRESULT CMapObject_Static::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 (m_bSelected) + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) { + return E_FAIL; + } + } + else + { + 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 CMapObject_Static::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMapObject_Static::Initialize(void* pArg) +{ + m_iMaxLodLevel = 0; + + MAPOBJECT_STATIC_DESC* pDesc = static_cast(pArg); + + m_strModelPrototypeTag = pDesc->strModelPrototypeTag; + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components())) + return E_FAIL; + + +#ifdef _DEBUG + m_bSelected = false; + m_vPosition = pDesc->vPosition; + m_vScale = pDesc->vScale; + m_vRotation = pDesc->vRotation; + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); +#endif // _DEBUG + + return S_OK; +} + +_wstring CMapObject_Static::Get_PrototypeTag(_uint iLodIndex) +{ + return m_strModelPrototypeTag; +} + +HRESULT CMapObject_Static::Ready_Components() +{ + __super::Ready_Components(); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + 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 CMapObject_Static::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; + } + + return S_OK; +} + +CMapObject_Static* CMapObject_Static::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMapObject_Static* pInstance = new CMapObject_Static(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMapObject_Static"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMapObject_Static::Clone(void* pArg, CGameObject* pOwner) +{ + CMapObject_Static* pInstance = new CMapObject_Static(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMapObject_Static"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapObject_Static::Free() +{ + __super::Free(); + + Safe_Release(m_pShaderCom); + Safe_Release(m_pModelCom); +} + +void CMapObject_Static::Describe_Entity() +{ + if (m_bDead) + return; + if (nullptr == m_pGameInstance) + return; + + //ImGui::Text(CMyTools::ToString(m_strModelPrototypeTag).c_str()); + 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); + ImGui::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f); + + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); + if (nullptr != pTerrain) + { + pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + } + + } + + ImGui::Text("----- Rotation ----"); + ImGui::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f); + ImGui::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f); + ImGui::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f); + + ImGui::Text("----- Scale ----"); + ImGui::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f); + ImGui::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f); + ImGui::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f); + + m_vScale.x = max(0.01f, m_vScale.x); + m_vScale.y = max(0.01f, m_vScale.y); + m_vScale.z = max(0.01f, m_vScale.z); + + + if (ImGui::Button("Delete")) + m_bDead = true; + + m_bSelected = true; +} \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp index 880404ae4..d356783c0 100644 --- a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp @@ -121,7 +121,7 @@ HRESULT CMission_Panel::Ready_Element(void* pArg) } Add_Element(TEXT("MissionBanner_Key"), m_pMissionBanner_Key); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMission_KeyHold))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_KeyHold)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/ModelParts.cpp b/Jusin154_Team3D/Editor/Private/ModelParts.cpp index cc08eb155..33f174a9a 100644 --- a/Jusin154_Team3D/Editor/Private/ModelParts.cpp +++ b/Jusin154_Team3D/Editor/Private/ModelParts.cpp @@ -2,14 +2,15 @@ #include "Body.h" #include "GameInstance.h" +#include "RootModelPart.h" CModelParts::CModelParts(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CGameObject(pDevice, pContext) + : CPartObject(pDevice, pContext) { } CModelParts::CModelParts(const CModelParts& Prototype) - : CGameObject(Prototype) + : CPartObject(Prototype) { } @@ -20,6 +21,14 @@ HRESULT CModelParts::Initialize_Prototype() HRESULT CModelParts::Initialize(void* pArg) { + PARTS_OBJECT_DESC* pDesc = static_cast(pArg); + + m_pParentTransformCom = pDesc->pParentTransform; + if (pDesc->pModelPrototypeTag) + { + m_strModelPrototypeTag = pDesc->pModelPrototypeTag; + } + if (FAILED(__super::Initialize(pArg))) return E_FAIL; @@ -36,6 +45,11 @@ void CModelParts::Priority_Update(_float fTimeDelta) void CModelParts::Update(_float fTimeDelta) { + XMStoreFloat4x4(&m_CombinedWorldMatrix, + XMLoadFloat4x4(m_pTransformCom->Get_WorldMatrixPtr()) * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); + + Change_Model(); + } void CModelParts::Late_Update(_float fTimeDelta) @@ -44,9 +58,89 @@ void CModelParts::Late_Update(_float fTimeDelta) HRESULT CModelParts::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 (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; } +void CModelParts::Change_Model() +{ + if (dynamic_cast(m_pOwner)->Get_PrototypeModelName()) + { + if (m_strPreModelPrototypeTag != dynamic_cast(m_pOwner)->Get_PrototypeModelName()) + { + Set_Model("Body"); + Set_Model("Hair"); + Set_Model("Head"); + } + } +} + +void CModelParts::Set_Model(const _char* PartType) +{ + const _char* ObjectType = typeid(*this).name(); + const _char* ModelName = dynamic_cast(m_pOwner)->Get_ModelName(); + if (strstr(ObjectType, PartType)) + { + if (strstr(ModelName, PartType)) + { + if (m_pModelCom) + { + m_iAnimIndex = m_pModelCom->Get_AnimIndex(); + m_fTrackPosition = m_pModelCom->Get_CurrentTrackPosition(); + SAFE_RELEASE(m_pModelCom); + Remove_Component(); + } + + m_strModelPrototypeTag = dynamic_cast(m_pOwner)->Get_PrototypeModelName(); + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) + return; + + if (strstr(PartType,"Body")) + { + dynamic_cast(m_pOwner)->Set_MainModel(m_pModelCom); + } + + m_pModelCom->Set_AnimationIndex(m_iAnimIndex); + m_pModelCom->Set_CurrentTrackPosition(m_fTrackPosition); + + m_strPreModelPrototypeTag = m_strModelPrototypeTag; + } + } + +} + HRESULT CModelParts::Ready_Components() { __super::Ready_Components(nullptr); @@ -61,9 +155,10 @@ HRESULT CModelParts::Ready_Components() HRESULT CModelParts::Bind_ShaderResources() { - if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + 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; } diff --git a/Jusin154_Team3D/Editor/Private/Monster.cpp b/Jusin154_Team3D/Editor/Private/Monster.cpp index d8e3d717a..a4f7e1b02 100644 --- a/Jusin154_Team3D/Editor/Private/Monster.cpp +++ b/Jusin154_Team3D/Editor/Private/Monster.cpp @@ -21,7 +21,7 @@ HRESULT CMonster::Initialize_Prototype() HRESULT CMonster::Initialize(void* pArg) { - OBJECT_DESC* pDesc = static_cast(pArg); + PARTS_OBJECT_DESC* pDesc = static_cast(pArg); m_strModelPrototypeTag = pDesc->pModelPrototypeTag; diff --git a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp index 8c94ea2ea..162a74143 100644 --- a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp +++ b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp @@ -4,14 +4,17 @@ #include "GameInstance.h" #include "DebugCamera.h" #include "ModelParts.h" +#include "Body.h" +#include "Head.h" +#include "Hair.h" CRootModelPart::CRootModelPart(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CGameObject(pDevice, pContext) + : CContainerObject(pDevice, pContext) { } CRootModelPart::CRootModelPart(const CRootModelPart& Prototype) - : CGameObject(Prototype) + : CContainerObject(Prototype) { } @@ -25,23 +28,27 @@ HRESULT CRootModelPart::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))) return E_FAIL; + if (FAILED(Ready_PartObjects())) + return E_FAIL; + return S_OK; } void CRootModelPart::Priority_Update(_float fTimeDelta) { + __super::Priority_Update(fTimeDelta); } void CRootModelPart::Update(_float fTimeDelta) { - if (!m_pMainModel) - return; - Update_Anim(fTimeDelta); + + __super::Update(fTimeDelta); } void CRootModelPart::Late_Update(_float fTimeDelta) { + __super::Late_Update(fTimeDelta); } HRESULT CRootModelPart::Render() @@ -51,36 +58,52 @@ HRESULT CRootModelPart::Render() void CRootModelPart::Update_Anim(_float fTimeDelta) { - for (size_t i = 0; i < m_ModelParts.size(); i++) - { - m_ModelParts[i]->Get_Component()->Set_PlayAnim(m_pMainModel->Get_PlayAnim()); - m_ModelParts[i]->Get_Component()->Set_AnimationIndex(m_pMainModel->Get_AnimIndex()); - m_ModelParts[i]->Get_Component()->Play_Animation(fTimeDelta); - } -} - -void CRootModelPart::Push_ModelParts(CModelParts* ModelParts) -{ - m_ModelParts.push_back(ModelParts); - SAFE_ADDREF(ModelParts); for (auto& ModelParts : m_ModelParts) { - ModelParts->Get_Component()->Set_AnimationIndex(0); - ModelParts->Get_Component()->Reset_CurrentTrackPosition(); + CModel* pModel = ModelParts->Get_Component(); + if (pModel) + { + pModel->Set_PlayAnim(m_pMainModel->Get_PlayAnim()); + pModel->Set_AnimationIndex(m_pMainModel->Get_AnimIndex()); + pModel->Set_CurrentTrackPosition(m_pMainModel->Get_CurrentTrackPosition()); + pModel->Play_Animation(fTimeDelta); + } } } -void CRootModelPart::Push_MainModel(CModel* MainModel) -{ - m_pMainModel = MainModel; - SAFE_ADDREF(MainModel); -} HRESULT CRootModelPart::Ready_Components() { return S_OK; } +HRESULT CRootModelPart::Ready_PartObjects() +{ + CModelParts::PARTS_OBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + PartsDesc.pModelPrototypeTag = m_PrototypeModelName; + + CModelParts* pModelPartsObject = { nullptr }; + + if (FAILED(Add_PartObject("Human_Body", ENUM_CLASS(LEVEL::STATIC), reinterpret_cast(&pModelPartsObject), &PartsDesc))) + return E_FAIL; + + m_ModelParts.push_back(pModelPartsObject); + + if (FAILED(Add_PartObject("Human_Head", ENUM_CLASS(LEVEL::STATIC), reinterpret_cast(&pModelPartsObject), &PartsDesc))) + return E_FAIL; + + m_ModelParts.push_back(pModelPartsObject); + + if (FAILED(Add_PartObject("Human_Hair", ENUM_CLASS(LEVEL::STATIC), reinterpret_cast(&pModelPartsObject), &PartsDesc))) + return E_FAIL; + + m_ModelParts.push_back(pModelPartsObject); + + return S_OK; +} + HRESULT CRootModelPart::Bind_ShaderResources() { return S_OK; @@ -126,4 +149,5 @@ void CRootModelPart::Free() void CRootModelPart::Describe_Entity() { + } diff --git a/Jusin154_Team3D/Editor/Public/BuildingContainer.h b/Jusin154_Team3D/Editor/Public/BuildingContainer.h new file mode 100644 index 000000000..3dcd25980 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/BuildingContainer.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Editor_Define.h" +#include "MapContainer.h" + +NS_BEGIN(Editor) + +class CBuildingContainer final : public CMapContainer +{ + + +public: + CBuildingContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBuildingContainer(const CBuildingContainer& rhs); + ~CBuildingContainer() = 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; + +public: + template + HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) { + return Add_PartObject(strPartKey, iPrototypeLevelIndex, ppOut, pArg); + } + +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 CBuildingContainer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner = nullptr)override; + virtual void Free() override; + virtual void Describe_Entity()override; +}; + +NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Public/DummyObject.h b/Jusin154_Team3D/Editor/Public/DummyObject.h new file mode 100644 index 000000000..54de78e53 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/DummyObject.h @@ -0,0 +1,56 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CShader; +class CModel; +NS_END + +NS_BEGIN(Editor) + +class CDummyObject final : public CGameObject +{ +public: + typedef struct tagObjectDesc + { + const _tchar* pModelPrototypeTag; + }PARTS_OBJECT_DESC; +private: + CDummyObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummyObject(const CDummyObject& Prototype); + virtual ~CDummyObject() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +public: + _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } + +private: + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + _wstring m_strModelPrototypeTag; + _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 }; + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CDummyObject* 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 diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h index c667ebe37..bfea43799 100644 --- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h @@ -29,13 +29,9 @@ class CDummy_PhysXMesh final : public CGameObject virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; - private: - CRigidBody* m_pRigidBody = { nullptr }; - const PSX::PxRigidDynamic* m_pActor = { nullptr }; - //CModel* m_pModelCom = { nullptr }; - //CShader* m_pShaderCom = { nullptr }; - + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h new file mode 100644 index 000000000..97fa5d0e3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h @@ -0,0 +1,52 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +class CRigidBody; +NS_END + +NS_BEGIN(Editor) + +class CDummy_PhysXPlayable final : public CGameObject +{ +public: + typedef struct tagBoxStartPos + { + _float3 vPos = {}; + _float3 vRotRPY = {}; + }BOXSTARTPOS_DESC; +private: + CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs); + virtual ~CDummy_PhysXPlayable() = 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: + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + 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_PhysXPlayable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index 9ad739a24..14cf3d69e 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -16,7 +16,7 @@ namespace Editor enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, END }; enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END }; - enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, END }; + enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL ,END }; enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END }; enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END }; diff --git a/Jusin154_Team3D/Editor/Public/Hair.h b/Jusin154_Team3D/Editor/Public/Hair.h index 49f564be5..8f35f5521 100644 --- a/Jusin154_Team3D/Editor/Public/Hair.h +++ b/Jusin154_Team3D/Editor/Public/Hair.h @@ -2,6 +2,9 @@ #include "Editor_Define.h" #include "ModelParts.h" +NS_BEGIN(Engine) +class CTexture; +NS_END NS_BEGIN(Editor) @@ -23,6 +26,9 @@ class CHair final : public CModelParts private: HRESULT Ready_Components(); +private: + CTexture* m_pTextureCom = { nullptr }; + public: static CHair* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; diff --git a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h index 84319b5fe..94a6dfeae 100644 --- a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h @@ -20,7 +20,7 @@ class CLevel_MapViewer final : public CLevel HRESULT Ready_Layer_Light(); HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_Terrain(const _wstring& strLayerTag); - HRESULT Ready_Layer_MapObjects(const _wstring& strLayerTag); + HRESULT Ready_Layer_BuildingContainer(const _wstring& strLayerTag); HRESULT Ready_Layer_MapObjectManager(const _wstring& strLayerTag); diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h index 7e66eef3a..1ee332543 100644 --- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h @@ -27,16 +27,26 @@ class CLevel_ObjectViewer final : public CLevel HRESULT Ready_Layer_Dummy(const _wstring& strLayerTag); void Add_Object(); - void Add_Creature(); void Add_Human(); void Show_ModelFilePath(); + void Category_ModelList(const _char* Category); + void Category_PartsModelList(const _char* Category, const _char* Layer); void Show_AnimList(); void Show_ObjectList(); void Object_Setting(); + void Save_LayerName(const _char* Category); + _wchar* Save_ModelName(const _char* Category); + private: vector m_Objects; + vector m_PartsObjects; CGameObject* m_HumanRoot = { nullptr }; _int m_iObjectIndex = { 0 }; + _int m_iPartsObjectIndex = { 0 }; + _char m_szName[MAX_PATH]; + _wchar m_wszName[MAX_PATH]; + _wchar m_wszLayer[MAX_PATH]; + _wchar m_wszPreLayer[MAX_PATH]; public: diff --git a/Jusin154_Team3D/Editor/Public/MapContainer.h b/Jusin154_Team3D/Editor/Public/MapContainer.h new file mode 100644 index 000000000..57095b7d3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/MapContainer.h @@ -0,0 +1,50 @@ +#pragma once + +#include "Editor_Define.h" +#include "ContainerObject.h" + +NS_BEGIN(Editor) + +class CMapContainer abstract : public CContainerObject +{ +public: + typedef struct tagMapContainerDesc + { + _string strName; + _float3 vPosition; + _float3 vScale; + _float3 vRotation; + }MAP_CONTAINER_DESC; +public: + CMapContainer(ID3D11Device * pDevice, ID3D11DeviceContext * pContext); + CMapContainer(const CMapContainer& rhs); + ~CMapContainer() = default; +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + + virtual _string& Get_Name() { return m_strName; } + virtual HRESULT Save_PartObjects(tinyxml2::XMLDocument& Doc, tinyxml2::XMLElement* Container); + +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + +protected: + _string m_strName = {}; + _bool m_bSelected = {}; + + _uint m_iMaxLodLevel = {}; + + _float3 m_vPosition = {}; + _float3 m_vRotation = {}; + _float3 m_vScale = {}; + +public: + virtual void Free() override; +}; + +NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Public/MapObject.h b/Jusin154_Team3D/Editor/Public/MapObject.h index b830e36ff..cd10f0da4 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject.h +++ b/Jusin154_Team3D/Editor/Public/MapObject.h @@ -1,7 +1,7 @@ #pragma once #include "Editor_Define.h" -#include "GameObject.h" +#include "PartObject.h" NS_BEGIN(Engine) class CShader; @@ -10,50 +10,46 @@ NS_END NS_BEGIN(Editor) -class CMapObject final : public CGameObject +class CMapObject abstract : public CPartObject { -public: - typedef struct tagMapObjectDesc - { - const _tchar* pModelPrototypeTag; - }MAPOBJECT_DESC; - -private: +protected: CMapObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CMapObject(const CMapObject& Prototype); virtual ~CMapObject() = default; public: - virtual HRESULT Initialize_Prototype() override; - virtual HRESULT Initialize(void* pArg) override; virtual void Priority_Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; public: - _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } + virtual _wstring Get_PrototypeTag(_uint iLodIndex = 0); + virtual _uint Get_LodLevel() { return m_iMaxLodLevel; } -private: - CShader* m_pShaderCom = { nullptr }; - CModel* m_pModelCom = { nullptr }; +protected: - _wstring m_strModelPrototypeTag; + +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(); #ifdef _DEBUG - _bool m_bSelected = {}; - _float3 m_vPosition = {}; - _float3 m_vRotation = {}; - _float3 m_vScale = {}; +protected: + _bool m_bSelected = {}; + + _uint m_iMaxLodLevel = {}; + + _float3 m_vPosition = {}; + _float3 m_vRotation = {}; + _float3 m_vScale = {}; #endif // _DEBUG private: - HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); public: - static CMapObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; virtual void Free() override; virtual void Describe_Entity() override; }; diff --git a/Jusin154_Team3D/Editor/Public/MapObject_LOD.h b/Jusin154_Team3D/Editor/Public/MapObject_LOD.h new file mode 100644 index 000000000..ec7acf8c8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/MapObject_LOD.h @@ -0,0 +1,60 @@ +#pragma once + +#include "Editor_Define.h" +#include "MapObject.h" + +NS_BEGIN(Editor) + +class CMapObject_LOD final : public CMapObject +{ +public: + typedef struct tagMapObjectLodDesc : public PARTOBJECT_DESC + { + _uint iMaxLodLevel{}; + vector<_wstring> ModelPrototypeTags; + _float3 vPosition; + _float3 vScale; + _float3 vRotation; + }MAPOBJECT_LOD_DESC; + +private: + CMapObject_LOD(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapObject_LOD(const CMapObject_LOD& Prototype); + virtual ~CMapObject_LOD() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +public: + virtual _wstring Get_PrototypeTag(_uint iLodIndex = 0); + HRESULT Add_LodModel(const _tchar* pModelPrototypeTag); + +private: + CShader* m_pShaderCom = { nullptr }; + vector m_pModelComs; + + _uint m_iMaxLodLevel = {}; + _uint m_iLodIndex = {}; + + vector<_wstring> m_ModelPrototypeTags; + + + + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CMapObject_LOD* 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 diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h index c38516be3..bc8bc4451 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h @@ -26,14 +26,32 @@ class CMapObject_Manager final : public CGameObject virtual HRESULT Render() override; private: - class CMapObject* m_pSelectObject = { nullptr }; - const list* m_pMapObjects = { nullptr }; + class CMapObject* m_pSelectObject = { nullptr }; + list m_MapObjects = {}; vector<_wstring> m_ModelPrototypeTags; + vector<_wstring> m_LODModelPrototypeTags; + _uint m_iContainerObjectIndex = {}; + + class CBuildingContainer* m_pContainer = { nullptr }; + _char m_szSaveContainerName[MAX_PATH] = {}; private: - HRESULT Ready_Components(); - HRESULT Bind_ShaderResources(); - HRESULT Save_MapData(const _char* pFileName); + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +#pragma region SAVE_LOAD + HRESULT Save_MapData(const _char* pFileName); + HRESULT Save_ContainerData(const _char* pFileName, const _char* pContainerName); + HRESULT Load_MapData(const _char* pFileName); + HRESULT Load_ContainerData(const _char* pFileName, const _char* pContainerName); +#pragma endregion + + void Update_PrototypeList(); + void Update_ObjectList(); + void Update_Edit(); + void Update_ContainerObject(); + + _bool Find_Lod_Prototype(_wstring strPrototypeTag, _uint* iCount); public: static CMapObject_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, vector<_wstring>& ModelPrototypeTags); diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Static.h b/Jusin154_Team3D/Editor/Public/MapObject_Static.h new file mode 100644 index 000000000..c2c32d05d --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/MapObject_Static.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Editor_Define.h" +#include "MapObject.h" + +NS_BEGIN(Editor) + +class CMapObject_Static final : public CMapObject +{ +public: + typedef struct tagMapObjectStaticDesc : public PARTOBJECT_DESC + { + _uint iMaxLodLevel{}; + _wstring strModelPrototypeTag; + _float3 vPosition; + _float3 vScale; + _float3 vRotation; + }MAPOBJECT_STATIC_DESC; + +private: + CMapObject_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapObject_Static(const CMapObject_Static& Prototype); + virtual ~CMapObject_Static() = 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; + +public: + virtual _wstring Get_PrototypeTag(_uint iLodIndex = 0); + +private: + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + + _wstring m_strModelPrototypeTag; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CMapObject_Static* 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 diff --git a/Jusin154_Team3D/Editor/Public/ModelParts.h b/Jusin154_Team3D/Editor/Public/ModelParts.h index 6eecd83d4..f0b45833f 100644 --- a/Jusin154_Team3D/Editor/Public/ModelParts.h +++ b/Jusin154_Team3D/Editor/Public/ModelParts.h @@ -1,7 +1,7 @@ #pragma once #include "Editor_Define.h" -#include "GameObject.h" +#include "PartObject.h" NS_BEGIN(Engine) class CShader; @@ -10,8 +10,14 @@ NS_END NS_BEGIN(Editor) -class CModelParts abstract : public CGameObject +class CModelParts abstract : public CPartObject { +public: + typedef struct tagPartsObjectDesc : public CPartObject::PARTOBJECT_DESC + { + const _tchar* pModelPrototypeTag; + }PARTS_OBJECT_DESC; + protected: CModelParts(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CModelParts(const CModelParts& Prototype); @@ -24,15 +30,22 @@ class CModelParts abstract : public CGameObject virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + void Change_Model(); + void Set_Model(const _char*PartType); + _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 }; + _float m_fTrackPosition = {}; + _uint m_iAnimIndex = {}; + _wstring m_strModelPrototypeTag; + _wstring m_strPreModelPrototypeTag; protected: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Editor/Public/Monster.h b/Jusin154_Team3D/Editor/Public/Monster.h index e48946f37..d00b04260 100644 --- a/Jusin154_Team3D/Editor/Public/Monster.h +++ b/Jusin154_Team3D/Editor/Public/Monster.h @@ -16,7 +16,7 @@ class CMonster final : public CGameObject typedef struct tagObjectDesc { const _tchar* pModelPrototypeTag; - }OBJECT_DESC; + }PARTS_OBJECT_DESC; private: CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CMonster(const CMonster& Prototype); diff --git a/Jusin154_Team3D/Editor/Public/RootModelPart.h b/Jusin154_Team3D/Editor/Public/RootModelPart.h index 889b75454..2be0fd1fd 100644 --- a/Jusin154_Team3D/Editor/Public/RootModelPart.h +++ b/Jusin154_Team3D/Editor/Public/RootModelPart.h @@ -1,14 +1,14 @@ #pragma once #include "Editor_Define.h" -#include "GameObject.h" +#include "ContainerObject.h" NS_BEGIN(Engine) class CModel; NS_END NS_BEGIN(Editor) -class CRootModelPart final : public CGameObject +class CRootModelPart final : public CContainerObject { private: CRootModelPart(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -23,17 +23,22 @@ class CRootModelPart final : public CGameObject virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; void Update_Anim(_float fTimeDelta); - void Push_ModelParts(class CModelParts* ModelParts); - void Push_MainModel(CModel* MainModel); void Set_AnimIndex(_uint iIndex) { m_iAnimIndex = iIndex; } - + void Set_PrototypeModelName(const _wchar* PrototypeModelName) { m_PrototypeModelName = PrototypeModelName; } + void Set_ModelName(const _char* Name) { m_ModelName = Name; } + const _wchar* Get_PrototypeModelName() { return m_PrototypeModelName; } + const _char* Get_ModelName() { return m_ModelName; } + class CModelParts* Get_ModelParts(_uint iIndex) { return m_ModelParts[iIndex]; } + void Set_MainModel(class CModel* Model) { m_pMainModel = Model; } private: - CModel* m_pMainModel = { nullptr }; + class CModel* m_pMainModel = { nullptr }; vector m_ModelParts = {}; - _uint m_iAnimIndex = {0}; - + _uint m_iAnimIndex = { 0 }; + const _wchar* m_PrototypeModelName = { 0 }; + const _char* m_ModelName = { 0 }; private: HRESULT Ready_Components(); + HRESULT Ready_PartObjects(); HRESULT Bind_ShaderResources(); public: diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj b/Jusin154_Team3D/Engine/Default/Engine.vcxproj index 8ea9ad4ea..2a1aa5df0 100644 --- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj +++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj @@ -174,8 +174,8 @@ - true - true + false + false @@ -389,8 +389,8 @@ - true - true + false + false diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp index 92a8d482e..7171b26d4 100644 --- a/Jusin154_Team3D/Engine/Private/Animation.cpp +++ b/Jusin154_Team3D/Engine/Private/Animation.cpp @@ -189,7 +189,7 @@ HRESULT CAnimation::Initialize(const CModel* pModel, SaveAnimation* pSaveAnimati { m_pSaveAnim = pSaveAnimation; - strcpy_s(m_szName, pSaveAnimation->Name); + strcpy_s(m_szName, pSaveAnimation->AnimName.c_str()); m_fDuration = pSaveAnimation->mDuration; m_fTickPerSecond = pSaveAnimation->mTicksPerSecond; diff --git a/Jusin154_Team3D/Engine/Private/Bone.cpp b/Jusin154_Team3D/Engine/Private/Bone.cpp index e8be931ca..265f1d410 100644 --- a/Jusin154_Team3D/Engine/Private/Bone.cpp +++ b/Jusin154_Team3D/Engine/Private/Bone.cpp @@ -124,7 +124,7 @@ HRESULT CBone::Initialize(HANDLE hFile, DWORD& dwByte) HRESULT CBone::Initialize(const SaveNode& _SaveNode, _int iParentIndex) { - strcpy_s(m_szName, _SaveNode.Name); + strcpy_s(m_szName, _SaveNode.NodeName.c_str()); m_iParentBoneIndex = iParentIndex; diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index d1a7bbf2f..5bd73a07c 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -185,7 +185,7 @@ HRESULT CChannel::Initialize(HANDLE hFile, DWORD& dwByte) HRESULT CChannel::Initialize(const CModel* pModel, SaveChannel* pSaveChannel) { - strcpy_s(m_szName, pSaveChannel->Name); + strcpy_s(m_szName, pSaveChannel->ChannelName.c_str()); m_iBoneIndex = pModel->Get_BoneIndex(m_szName); m_PreTransformMatrix = pModel->Get_PreTransformMatrix(); diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 769c2cd50..6cc49ee53 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -2,37 +2,261 @@ #include "Character_Controller.h" #include "GameInstance.h" -CCharacter_Controller::CCharacter_Controller(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : - m_pDevice(pDevice), - m_pContext(pContext), - m_pGameInstance(CGameInstance::GetInstance()) +CCharacter_Controller::CCharacter_Controller(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CComponent{ pDevice, pContext } { - SAFE_ADDREF(m_pDevice); - SAFE_ADDREF(m_pContext); - SAFE_ADDREF(m_pGameInstance); + } -CCharacter_Controller* CCharacter_Controller::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, PSX::PxScene* pScene) +CCharacter_Controller::CCharacter_Controller(const CCharacter_Controller& rhs) + : CComponent(rhs) +{ + +} + +void CCharacter_Controller::Modify_Volume(_float3 fVolume) +{ + switch (m_eBodyType) + { + case Engine::ACTOR::BOX: + { + PSX::PxBoxController* pBox = static_cast(m_pController); + if (0 != fVolume.x) { + pBox->setHalfSideExtent(fVolume.x); + } + if (0 != fVolume.y) { + pBox->setHalfHeight(fVolume.y); + } + if (0 != fVolume.z) { + pBox->setHalfForwardExtent(fVolume.z); + } + } + break; + case Engine::ACTOR::CAPSULE: + { + PSX::PxCapsuleController* pCapsule = static_cast(m_pController); + if (0 != fVolume.x) { + pCapsule->setRadius(fVolume.x); + } + if (0 != fVolume.y) { + pCapsule->setHeight(fVolume.y); + } + } + break; + default: + break; + } + // Overlap(); +} + +_float3 CCharacter_Controller::Get_Volume() +{ + switch (m_eBodyType) + { + case Engine::ACTOR::BOX: + { + PSX::PxBoxController* pBox = static_cast(m_pController); + return { + pBox->getHalfSideExtent(), + pBox->getHalfHeight(), + pBox->getHalfForwardExtent() + }; + } + break; + case Engine::ACTOR::CAPSULE: + { + PSX::PxCapsuleController* pCapsule = static_cast(m_pController); + return { + pCapsule->getRadius(), + pCapsule->getHeight(), + 0.f + }; + } + break; + default: + return { -1.f, -1.f, -1.f }; + break; + } +} + +void CCharacter_Controller::Move(_float fTimeDelta) +{ + PSX::PxVec3 pxVecMomentum = {}; // ¼ø°£ À̵¿·® + _float fMinimumDistant = FLT_EPSILON3; // À̵¿·® ¿ÀÂ÷ Çã¿ëÄ¡, ( Å©¸é Ŭ¼ö·Ï À̵¿ÀÌ ´õ ÀÏÂï ³¡³­´Ù, ¼ø°£ À̵¿·®º¸´Ù °°°Å³ª ´õ Å©¸é ¾È¿òÁ÷Àϵí? ) + _vector vMomentum = m_pTransform->Get_CurrentMomentum(); + XMStoreFloat3((_float3*)&pxVecMomentum, vMomentum); + + PSX::PxControllerFilters pxFilter = {}; // Ãæµ¹ ´ë»ó ÇÊÅÍ + const PSX::PxObstacleContext* pPxObstacles = { nullptr }; // ij¸¯ÅͰ¡ Ãæµ¹ÇؾßÇÒ Ãß°¡ÀûÀÎ Àå¾Ö¹° °´Ã¼?, ´êÀº Àå¾Ö¹°Àº ij½ÃµÈ´Ù? + + + // eCOLLISION_SIDES = (1 << 0), //!< Character is colliding to the sides. + // eCOLLISION_UP = (1 << 1), //!< Character has collision above. + // eCOLLISION_DOWN = (1 << 2) //!< Character has collision below. + m_eBeforeCollisionFlags = m_pController->move(pxVecMomentum, fMinimumDistant, fTimeDelta, pxFilter, pPxObstacles); + + + //PSX::PxUserControllerHitReport* pHitCallBack = { nullptr }; + //PSX::PxControllerShapeHit ShapeHit = {}; + //ShapeHit. + //pHitCallBack->onShapeHit(); +} + +void CCharacter_Controller::Set_Position(_fvector vNewPos) +{ + PSX::PxExtendedVec3 pxLVec3NewPos = {}; + pxLVec3NewPos.x = vNewPos.m128_f32[0]; + pxLVec3NewPos.y = vNewPos.m128_f32[1]; + pxLVec3NewPos.z = vNewPos.m128_f32[2]; + m_pController->setPosition(pxLVec3NewPos); +} + +_float3 CCharacter_Controller::Get_FootPosition() +{ + PSX::PxExtendedVec3 pxLVecfootPos = m_pController->getFootPosition(); + return { (_float)pxLVecfootPos.x, (_float)pxLVecfootPos.y, (_float)pxLVecfootPos.z }; +} + +void CCharacter_Controller::Resize_Volume(_float fHeight) +{ + m_pController->resize(fHeight); +} + +HRESULT CCharacter_Controller::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CCharacter_Controller::Initialize(void* pArg) +{ + Character_Controller_DESC* pDesc = static_cast(pArg); + m_eBodyType = pDesc->eBodyType; + m_bAutoStepping = pDesc->bAutoStepping; + m_pTransform = pDesc->pTransform; + + switch (m_eBodyType) + { + case Engine::ACTOR::BOX: + { + PSX::PxBoxControllerDesc Desc{}; + Desc.halfHeight = {}; + Desc.halfSideExtent = {}; + Desc.halfForwardExtent = {}; + Desc.contactOffset = pDesc->fContactOffset; + Desc.material = m_pGameInstance->Get_Material(pDesc->fMaterial); + m_pController = m_pGameInstance->Add_BoxController(Desc); + } break; + case Engine::ACTOR::CAPSULE: + { + PSX::PxCapsuleControllerDesc Desc{}; + Desc.radius = pDesc->tCapsuleInfo.fRadius; + Desc.height = pDesc->tCapsuleInfo.fHeight; + Desc.climbingMode = pDesc->tCapsuleInfo.eClimbingMode; // ±âº» eEASY + Desc.contactOffset = pDesc->fContactOffset; + Desc.material = m_pGameInstance->Get_Material(pDesc->fMaterial); + m_pController = m_pGameInstance->Add_CapsuleController(Desc); + } break; + default: + assert(false); // PhysX¿¡¼­ ºÒ°¡´É + return E_FAIL; + break; + } + if (nullptr == m_pController) { + assert(false); + return E_FAIL; + } + m_pController->setSlopeLimit(m_fSlopeLimit); + + return S_OK; +} + +_bool CCharacter_Controller::Check_Overlap() +{ + return _bool(); +} + +CCharacter_Controller* CCharacter_Controller::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CCharacter_Controller* pInstance = new CCharacter_Controller(pDevice, pContext); - if (FAILED(pInstance->Initialize(pScene))) { + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCharacter_Controller"); SAFE_RELEASE(pInstance); - assert(false); } + return pInstance; } -HRESULT CCharacter_Controller::Initialize(PSX::PxScene* pScene) +CComponent* CCharacter_Controller::Clone(void* pArg, class CGameObject* pOwner) { - m_pScene = pScene; - return S_OK; + CCharacter_Controller* pInstance = new CCharacter_Controller(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCharacter_Controller"); + SAFE_RELEASE(pInstance); + } + + return pInstance; } void CCharacter_Controller::Free() { __super::Free(); +} - SAFE_RELEASE(m_pDevice); - SAFE_RELEASE(m_pContext); - SAFE_RELEASE(m_pGameInstance); -} \ No newline at end of file +void CCharacter_Controller::Describe_Entity() +{ + GUI::Begin("Character_Controller"); + m_pTransform->Describe_Entity(); + GUI::TextLinkOpenURL("More details here", "https://dev-treadmill.tistory.com/158"); + _float fContact = m_pController->getContactOffset(); + PSX::PxVec3 vUpDirection = m_pController->getUpDirection(); + PSX::PxExtendedVec3 vCenterPosition = m_pController->getPosition(); + PSX::PxExtendedVec3 vFootPosition = m_pController->getFootPosition(); + _float3 vVolume = Get_Volume(); + _float fStepOffset = m_pController->getStepOffset(); + + GUI::Text("eBodyType $d", (_uint)m_eBodyType); GUIHelpMarker("Body: only box and capsule available"); + + if (GUI::SliderFloat3("UpDirection", (_float*)&vUpDirection, -1.f, 1.f)) { + m_pController->setUpDirection(vUpDirection.getNormalized()); + } GUIHelpMarker("Up vector in PhysX"); + GUI::Text("vCenterPosition %lf, %lf, %lf", vCenterPosition.x, vCenterPosition.y, vCenterPosition.z); GUIHelpMarker("Exact center of the rigid body owned by the controller"); + GUI::Text("vFootPosition %lf, %lf, %lf", vFootPosition.x, vFootPosition.y, vFootPosition.z); GUIHelpMarker("Foot position including step offset from the body center to the ground"); + + if (GUI::SliderFloat("ContactOffset", &fContact, 0.01f, 10.f, "%.2f")) { + m_pController->setContactOffset(fContact); + } GUIHelpMarker("Actual contact offset in PhysX; increasing it may make the controller appear to hover"); + if (GUI::SliderFloat("StepOffset", &fStepOffset, 0.f, 3.f, "%.2f")) { + m_pController->setStepOffset(fStepOffset); + } GUIHelpMarker("In stepped regions, the tolerance height the controller can climb.\n Capsule behaves slightly differently."); + if (ACTOR::CAPSULE == m_eBodyType) { + PSX::PxCapsuleController* pController = (PSX::PxCapsuleController*)m_pController; + + if (0.f != fStepOffset) { + switch (pController->getClimbingMode()) + { + case PSX::PxCapsuleClimbingMode::eEASY: + if (GUI::Button("ClimbingMode : eEasy")) { + pController->setClimbingMode(PSX::PxCapsuleClimbingMode::eCONSTRAINED); + } + break; + case PSX::PxCapsuleClimbingMode::eCONSTRAINED: + if (GUI::Button("ClimbingMode : eConstrained")) { + pController->setClimbingMode(PSX::PxCapsuleClimbingMode::eEASY); + } + break; + default: + break; + } + GUIHelpMarker("A capsule is affected by its lower sphere and tends to generate an up vector on steps.\nIn eEASY, the up vector is combined with the step offset, allowing easier climbing; in eCONSTRAINED, the up vector is removed during step detection and only the step offset is used."); + } + } + if (GUI::SliderFloat3("Volume", (_float*)&vVolume, 0.1f, 10.f, "%.2f")) { + Modify_Volume(vVolume); + }GUIHelpMarker("Box uses vSize; Capsule uses x->fRadius, y->fHeight.\nThe capsule's fHeight is likely the distance from the lower sphere center to the upper sphere center."); + + GUI::End(); +} diff --git a/Jusin154_Team3D/Engine/Private/ContainerObject.cpp b/Jusin154_Team3D/Engine/Private/ContainerObject.cpp index 1ce5f515a..58fb462d2 100644 --- a/Jusin154_Team3D/Engine/Private/ContainerObject.cpp +++ b/Jusin154_Team3D/Engine/Private/ContainerObject.cpp @@ -22,6 +22,7 @@ HRESULT CContainerObject::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))) { return E_FAIL; } + return S_OK; } diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index 1070a60d9..650addffc 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -104,7 +104,7 @@ void CGameInstance::Update_Engine(_float fTimeDelta) m_pMouse_Manager->Update(); //m_pSound_Manager->Update(); - m_pPicking->Update(); + //m_pPicking->Update(); m_pObject_Manager->Priority_Update(fTimeDelta); @@ -270,7 +270,7 @@ void CGameInstance::Present_TimeCost() const GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x); GUI::Text("Timer_Occupancy %d", int(m_fTimer_Present / fTotal * 100.f)); } - + GUI::Text("GameInstance RefCNT : %d", m_iRefCnt); static float values[60] = {}; static int values_offset = 0; static double refresh_time = 0.0; @@ -541,10 +541,12 @@ PSX::PxMaterial* CGameInstance::Get_Material(_float3& vMatInfo) { return m_pPhysX_Manager->Get_Material(vMatInfo); } -HRESULT CGameInstance::Create_TriangleMesh(const _wstring& wstrMeshKey, CMesh* pMesh) + +void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh) { - return m_pPhysX_Manager->Create_TriangleMesh(wstrMeshKey, pMesh); + return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh); } + PSX::PxShape* CGameInstance::Create_Shape(ACTOR eType, _float3& vhalfGeometryInfo, PSX::PxMaterial& pxMaterial, _bool bExclusive, PSX::PxShapeFlags ePxShapeFlag) { return m_pPhysX_Manager->Create_Shape(eType, vhalfGeometryInfo, pxMaterial, bExclusive, ePxShapeFlag); @@ -557,6 +559,34 @@ const PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody& RigidBody) { return m_pPhysX_Manager->Add_StaticActor(RigidBody); } +PSX::PxController* CGameInstance::Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc) +{ + return m_pPhysX_Manager->Add_CapsuleController(Desc); +} +PSX::PxController* CGameInstance::Add_BoxController(PSX::PxBoxControllerDesc& Desc) +{ + return m_pPhysX_Manager->Add_BoxController(Desc); +} +PSX::PxController* CGameInstance::Get_Controller(_uint iControllerIndex) +{ + return m_pPhysX_Manager->Get_Controller(iControllerIndex); +} +void CGameInstance::ReleaseController(_uint iControllerIndex) +{ + m_pPhysX_Manager->ReleaseController(iControllerIndex); +} +HRESULT CGameInstance::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix) +{ + return m_pPhysX_Manager->ConvertToTriMeshes(Meshes, pxTriMeshes, WorldMatrix); +} +HRESULT CGameInstance::SaveTriMeshes(const _char* pPath, vector& TriMeshes) +{ + return m_pPhysX_Manager->SaveTriMeshes(pPath, TriMeshes); +} +HRESULT CGameInstance::LoadTriMeshes(const _char* pPath, vector& TriMeshes) +{ + return m_pPhysX_Manager->LoadTriMeshes(pPath, TriMeshes); +} #pragma endregion bool CGameInstance::Key_Pressing(int _iKey) diff --git a/Jusin154_Team3D/Engine/Private/Light_Manager.cpp b/Jusin154_Team3D/Engine/Private/Light_Manager.cpp index 46cbed84a..215a6a143 100644 --- a/Jusin154_Team3D/Engine/Private/Light_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Light_Manager.cpp @@ -106,5 +106,5 @@ void CLight_Manager::Free() } Safe_Delete(pairLight.second); } m_pLights[i].clear(); - } + } Safe_Delete_Array(m_pLights); } diff --git a/Jusin154_Team3D/Engine/Private/Material.cpp b/Jusin154_Team3D/Engine/Private/Material.cpp index 7ad016816..8ccb5fe54 100644 --- a/Jusin154_Team3D/Engine/Private/Material.cpp +++ b/Jusin154_Team3D/Engine/Private/Material.cpp @@ -196,11 +196,14 @@ HRESULT CMaterial::Read_MaterialFile(const _char* pMaterialFilePath, const _char /* Texture */ case 1: // value - iBeginIndex = (_uint)strText.find("Environment"); + iBeginIndex = (_uint)strText.find("/"); iEndIndex = (_uint)strText.find('.'); if (256 < iBeginIndex || 256 < iEndIndex) + { Value = "none"; + return S_OK; + } else Value = strText.substr(iBeginIndex, iEndIndex - iBeginIndex); @@ -258,7 +261,7 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType else if (!strcmp(FileType.c_str(), "MROH")) eTexture = aiTextureType::aiTextureType_METALNESS; else if (!strcmp(FileType.c_str(), "MROA")) - eTexture = aiTextureType::aiTextureType_DIFFUSE_ROUGHNESS; + eTexture = aiTextureType::aiTextureType_SPECULAR; else if (!strcmp(FileType.c_str(), "SRO")) eTexture = aiTextureType::aiTextureType_SPECULAR; else if (!strcmp(FileType.c_str(), "SROH")) @@ -268,7 +271,7 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType else if (!strcmp(FileType.c_str(), "HDR")) return S_OK; else if (!strcmp(FileType.c_str(), "MSK")) - eTexture = aiTextureType::aiTextureType_MAYA_BASE; + eTexture = aiTextureType::aiTextureType_AMBIENT_OCCLUSION; else if (!strcmp(FileType.c_str(), "basecolor")) eTexture = aiTextureType::aiTextureType_DIFFUSE; else if (!strcmp(FileType.c_str(), "E")) @@ -312,7 +315,33 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType strTexturePath = CMyTools::ToString(szTextureFilePath); } - m_SaveMaterial.Path[ENUM_CLASS(eTexture)].push_back(strTexturePath); + _string strPrefix = "../Bin/Resources/Models/MapMesh/"; + _string strSearchString = "MeshTable"; + _string strResultPath = {}; + + size_t mapRePos = strTexturePath.find(strSearchString); + + if (mapRePos != std::string::npos) + { + size_t startPos = mapRePos + strSearchString.length(); + + // 'MapRe' µÚ¿¡ ¿À´Â °æ·Î °Ç³Ê¶Ù±â + if (startPos < strTexturePath.length() && + (strTexturePath[startPos] == '\\' || strTexturePath[startPos] == '/')) { + startPos++; + } + + // 'MapRe' ÀÌÈÄÀÇ ³ª¸ÓÁö °æ·Î¸¦ ÃßÃâ + strResultPath = strPrefix + strTexturePath.substr(startPos); + } + else + { + MSG_BOX("FAILED to Find Path"); + } + + replace(strResultPath.begin(), strResultPath.end(), '\\', '/'); + + m_SaveMaterial.Path[ENUM_CLASS(eTexture)].push_back(strResultPath); m_SRVs[ENUM_CLASS(eTexture)].push_back(pSRV); return S_OK; @@ -464,8 +493,8 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _ _splitpath_s(pModelFilePath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0); char szFullPath[MAX_PATH] = {}; - strcpy_s(szFullPath, szDrive); - strcat_s(szFullPath, path.c_str()); + //(szFullPath, szDrive); + strcpy_s(szFullPath, path.c_str()); _tchar szPerfectPath[MAX_PATH] = {}; MultiByteToWideChar(CP_ACP, 0, szFullPath, -1, szPerfectPath, MAX_PATH); diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp index e3b95e636..0e9f70129 100644 --- a/Jusin154_Team3D/Engine/Private/Mesh.cpp +++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp @@ -90,14 +90,16 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, vector& Bones, co _uint* pIndices = new _uint[m_iNumIndices]; ZeroMemory(pIndices, sizeof(_uint) * m_iNumIndices); + m_pIndices = new _uint[m_iNumIndices]; + ZeroMemory(m_pIndices, sizeof(_uint) * m_iNumIndices); + _uint iNumIndices = {}; for (size_t i = 0; i < pAIMesh->mNumFaces; i++) { - - pIndices[iNumIndices++] = pAIMesh->mFaces[i].mIndices[0]; - pIndices[iNumIndices++] = pAIMesh->mFaces[i].mIndices[1]; - pIndices[iNumIndices++] = pAIMesh->mFaces[i].mIndices[2]; + pIndices[iNumIndices++] = m_pIndices[iNumIndices] = pAIMesh->mFaces[i].mIndices[0]; + pIndices[iNumIndices++] = m_pIndices[iNumIndices] = pAIMesh->mFaces[i].mIndices[1]; + pIndices[iNumIndices++] = m_pIndices[iNumIndices] = pAIMesh->mFaces[i].mIndices[2]; } @@ -232,7 +234,7 @@ HRESULT CMesh::Initialize_Prototype(HANDLE hFile, DWORD& dwByte) HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix) { - strcpy_s(m_szName, _SaveMesh->Name); + strcpy_s(m_szName, _SaveMesh->MeshName.c_str()); m_iMaterialIndex = _SaveMesh->MaterialIndex; m_iNumVertexBuffers = 1; @@ -352,7 +354,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_Anim(HANDLE hFile, DWORD& dwByte) return S_OK; } -HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix) +HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTransformMatrix) { m_iVertexStride = sizeof(VTXMESH); D3D11_BUFFER_DESC VBDesc{}; @@ -371,23 +373,23 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* _SaveMesh, _fmatrix PreT for (_uint i = 0; i < m_iNumVertices; ++i) { - memcpy(&pVertices[i].vPosition, &_SaveMesh->Vertices[i].Pos, sizeof(_float3)); + memcpy(&pVertices[i].vPosition, &SaveMesh->Vertices[i].Pos, sizeof(_float3)); XMStoreFloat3(&pVertices[i].vPosition, XMVector3TransformCoord(XMLoadFloat3(&pVertices[i].vPosition), PreTransformMatrix)); - memcpy(&pVertices[i].vNormal, &_SaveMesh->Vertices[i].Normal, sizeof(_float3)); + memcpy(&pVertices[i].vNormal, &SaveMesh->Vertices[i].Normal, sizeof(_float3)); XMStoreFloat3(&pVertices[i].vNormal, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vNormal), PreTransformMatrix))); - memcpy(&pVertices[i].vTangent, &_SaveMesh->Vertices[i].Tan, sizeof(_float3)); + memcpy(&pVertices[i].vTangent, &SaveMesh->Vertices[i].Tan, sizeof(_float3)); XMStoreFloat3(&pVertices[i].vTangent, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vTangent), PreTransformMatrix))); - memcpy(&pVertices[i].vBinormal, &_SaveMesh->Vertices[i].BiNoraml, sizeof(_float3)); + memcpy(&pVertices[i].vBinormal, &SaveMesh->Vertices[i].BiNoraml, sizeof(_float3)); XMStoreFloat3(&pVertices[i].vBinormal, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix))); - pVertices[i].vTexcoord = _SaveMesh->Vertices[i].UV; + pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV; } D3D11_SUBRESOURCE_DATA InitialVBData{}; @@ -420,6 +422,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_Anim(const CModel* pModel, SaveMesh* _Save for (_uint i = 0; i < m_iNumVertices; ++i) { + memcpy(&m_pVertexPositions[i], &_SaveMesh->Vertices[i].Pos, sizeof(_float3)); memcpy(&pVertices[i].vPosition, &_SaveMesh->Vertices[i].Pos, sizeof(_float3)); if (_SaveMesh->Vertices[i].bHasNormal) memcpy(&pVertices[i].vNormal, &_SaveMesh->Vertices[i].Normal, sizeof(_float3)); @@ -451,11 +454,11 @@ HRESULT CMesh::Ready_VertexBuffer_For_Anim(const CModel* pModel, SaveMesh* _Save for (_uint i = 0; i < m_iNumBones; i++) { SaveBone _SaveBone = _SaveMesh->Bones[i]; - strcpy_s(m_szName, _SaveBone.Name); + strcpy_s(m_szName, _SaveBone.BoneName.c_str()); memcpy(&OffsetMatrix, &_SaveBone.OffsetMatrix, sizeof(_float4x4)); - _int iBoneIndex = pModel->Get_BoneIndex(_SaveBone.Name); + _int iBoneIndex = pModel->Get_BoneIndex(_SaveBone.BoneName.c_str()); if (-1 == iBoneIndex) return E_FAIL; @@ -604,26 +607,42 @@ HRESULT CMesh::SaveAsBinary(HANDLE hFile, DWORD& dwByte) return S_OK; } -PSX::PxTriangleMesh* CMesh::ConvertToPxMesh(const PSX::PxCookingParams* pParam) +PSX::PxTriangleMesh* CMesh::ConvertToPxMesh(const PSX::PxCookingParams* pParam, PSX::PxPhysics* pPhysX, _fmatrix WorldMatrix) { - PSX::PxTriangleMeshDesc Desc; - vector Vertices; - vector Triangles; + PSX::PxTriangleMeshDesc tMeshDesc = {}; + vector Vertices = {}; + vector Triangles = {}; { - Desc.points.count = m_iNumVertices; - Desc.points.stride = sizeof(PSX::PxVec3); + tMeshDesc.points.count = m_iNumVertices; + tMeshDesc.points.stride = sizeof(PSX::PxVec3); Vertices.resize(m_iNumVertices); - memcpy_s(Vertices.data(), sizeof(PSX::PxVec3) * m_iNumVertices, m_pVertexPositions, sizeof(_float3) * m_iNumVertices); - Desc.points.data = Vertices.data(); + XMVector3TransformCoordStream(reinterpret_cast<_float3*>(Vertices.data()), sizeof(PSX::PxVec3), (_float3*)m_pVertexPositions, sizeof(_float3), m_iNumVertices, WorldMatrix); + tMeshDesc.points.data = Vertices.data(); } { - Desc.triangles.count = m_iNumIndices / 3; - Desc.triangles.stride = sizeof(PSX::PxU32) * 3; + tMeshDesc.triangles.count = m_iNumIndices / 3; + tMeshDesc.triangles.stride = sizeof(PSX::PxU32) * 3; Triangles.resize(m_iNumIndices); memcpy_s(Triangles.data(), sizeof(PSX::PxU32) * m_iNumIndices, m_pIndices, sizeof(PSX::PxU32) * m_iNumIndices); - Desc.triangles.data = Triangles.data(); + tMeshDesc.triangles.data = Triangles.data(); } - PSX::PxTriangleMesh* pTriangleMesh = PxCreateTriangleMesh(*pParam, Desc); + PSX::PxDefaultMemoryOutputStream streamWriteBuffer = {}; + PSX::PxTriangleMeshCookingResult::Enum eCookResult = {}; + const _bool bCooked = PxCookTriangleMesh(*pParam, tMeshDesc, streamWriteBuffer, &eCookResult); + if (false == bCooked) { + assert(false); + return nullptr; + } + + PSX::PxDefaultMemoryInputData readBuff(streamWriteBuffer.getData(), streamWriteBuffer.getSize()); + PSX::PxTriangleMesh* pTriangleMesh = pPhysX->createTriangleMesh(readBuff); + PX_ASSERT(pTriangleMesh); + PX_ASSERT(pTriangleMesh->getReferenceCount() == 1); + if (nullptr == pTriangleMesh) { + assert(false); + return nullptr; + } + return pTriangleMesh; } @@ -647,6 +666,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix Pr for (_uint i = 0; i < m_iNumVertices; ++i) { memcpy(&pVertices[i].vPosition, &pAIMesh->mVertices[i], sizeof(_float3)); + memcpy(&m_pVertexPositions[i], &pAIMesh->mVertices[i], sizeof(_float3)); XMStoreFloat3(&pVertices[i].vPosition, XMVector3TransformCoord(XMLoadFloat3(&pVertices[i].vPosition), PreTransformMatrix)); memcpy(&pVertices[i].vNormal, &pAIMesh->mNormals[i], sizeof(_float3)); XMStoreFloat3(&pVertices[i].vNormal, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vNormal), PreTransformMatrix))); @@ -688,6 +708,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_Anim(vector& Bones, const ai for (_uint i = 0; i < m_iNumVertices; ++i) { memcpy(&pVertices[i].vPosition, &pAIMesh->mVertices[i], sizeof(_float3)); + memcpy(&m_pVertexPositions[i], &pAIMesh->mVertices[i], sizeof(_float3)); memcpy(&pVertices[i].vNormal, &pAIMesh->mNormals[i], sizeof(_float3)); memcpy(&pVertices[i].vTangent, &pAIMesh->mTangents[i], sizeof(_float3)); memcpy(&pVertices[i].vBinormal, &pAIMesh->mBitangents[i], sizeof(_float3)); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 51a9a79a4..8b23ee988 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Model.h" #include "Bone.h" #include "Mesh.h" @@ -37,7 +37,7 @@ CModel::CModel(const CModel& rhs) } m_Animations.reserve(m_iNumAnimations); for (_uint i = 0; i < m_iNumAnimations; ++i) { - m_Animations.push_back(rhs.m_Animations[i]->Clone()); // ¸â¹ö ÀüºÎ ¾èÀºº¹»ç. + m_Animations.push_back(rhs.m_Animations[i]->Clone()); // 멤버 ì „ë¶€ ì–•ì�€ë³µì‚¬. } } @@ -89,9 +89,9 @@ void CModel::Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float f m_PrevAnimationMatrix = Get_BoneMatrix(m_iRootBoneIndex); - m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); // ¾Ö´Ï¸ÞÀÌ¼Ç Á¾·á À̺¥Æ® ( ·²ÇÁ¾Ö´ÔÀº ÀÚüÀûÀ¸·Î ºÒ¸² ) - vector<_int>* BeforeAnimIndex = m_Animations[m_iCurrentAnimIndex]->Capture_Bones(); // ¿µÇâÀ» ¹Þ´Â º» À妽º ÃßÃâ 1 - vector<_int>* AfterAnimIndex = m_Animations[iAnimationIndex]->Capture_Bones(); // ¿µÇâÀ» ¹Þ´Â º» À妽º ÃßÃâ 2 + m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); // 애니메ì�´ì…˜ 종료 ì�´ë²¤íЏ ( 럴프애님ì�€ ìž�ì²´ì �으로 불림 ) + vector<_int>* BeforeAnimIndex = m_Animations[m_iCurrentAnimIndex]->Capture_Bones(); // ì˜�í–¥ì�„ 받는 본 ì�¸ë�±ìФ 추출 1 + vector<_int>* AfterAnimIndex = m_Animations[iAnimationIndex]->Capture_Bones(); // ì˜�í–¥ì�„ 받는 본 ì�¸ë�±ìФ 추출 2 unordered_set<_int> UnionAnimIndex = {}; vector LerpStartFrames; @@ -101,20 +101,20 @@ void CModel::Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float f for (_int i : *AfterAnimIndex) { UnionAnimIndex.insert(i); } - LerpStartFrames.reserve(UnionAnimIndex.size()); // ¿µÇâÀ» ¹Þ´Â ¸ðµç ÇöÀç º»À» °¡Á®¿È + LerpStartFrames.reserve(UnionAnimIndex.size()); // ì˜�í–¥ì�„ 받는 모든 현재 본ì�„ 가져옴 - // ½ºÅ¸ÆÃ ŰÇÁ·¹ÀÓ Ã¤¿ì±â pair < º» À妽º, ŰÇÁ·¹ÀÓ > + // 스타팅 키프레임 채우기 pair < 본 ì�¸ë�±ìФ, 키프레임 > for (auto iter = UnionAnimIndex.begin(); iter != UnionAnimIndex.end(); ++iter) { LERPDESC desc = {}; desc.iSlot = *iter; - m_Bones[desc.iSlot]->Get_KeyFrame(desc.tagKeyFrame, true); // ½ºÅ¸ÆÃ ŰÇÁ·¹ÀÓ Ã¤¿ì±â + m_Bones[desc.iSlot]->Get_KeyFrame(desc.tagKeyFrame, true); // 스타팅 키프레임 채우기 LerpStartFrames.emplace_back(desc); } - // ¿£µù ŰÇÁ·¹ÀÓ Ã¤¿ì±â pair < º»À妽º, ŰÇÁ·¹ÀÓ > + // 엔딩 키프레임 채우기 pair < 본ì�¸ë�±ìФ, 키프레임 > vector LerpEndFrames = m_Animations[iAnimationIndex]->Get_StartFrameInformations(); - // ·²ÇÁ ¾Ö´Ï¸ÞÀÌ¼Ç ½ÃÀÛ + // 럴프 애니메ì�´ì…˜ 시작 m_pLerpAnim->Begin(m_Bones, LerpStartFrames, LerpEndFrames, fLerpDuration, m_iRootBoneIndex); } @@ -144,41 +144,41 @@ _bool CModel::Play_Animation(_float fTimeDelta) { if (!m_bPlayAnim) return false; - if (-1 == m_iCurrentAnimIndex // Á¤Áö ȤÀº ½ÃÀÛÀ» ¾È½ÃÄÑÁØ ¾Ö´Ô - || m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // ¾Ö´Ô À妽º ÃʰúµÊ + if (-1 == m_iCurrentAnimIndex // ì •ì§€ 혹ì�€ 시작ì�„ 안시켜준 애님 + || m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // 애님 ì�¸ë�±ìФ 초과ë�¨ { - return false; // À߸øµÈ ÃʱâÈ­ + return false; // 잘못ë�œ 초기화 } - if (true == m_pLerpAnim->IsLerping()) { // ·²ÇÁÁßÀ̸é ÀÚµ¿À¸·Î ·²ÇÁ Update¸¦ ºÎ¸§ + if (true == m_pLerpAnim->IsLerping()) { // 럴프중ì�´ë©´ ìž�ë�™ìœ¼ë¡œ 럴프 Update를 부름 m_bIsFinishedLerp = m_pLerpAnim->Update_TransformationMatrices(m_Bones, fTimeDelta); } - else { // ·²ÇÁÁßÀÌÁö ¾Ê´Ù¸é ½ÇÁ¦ ¾Ö´Ï¸ÞÀÌ¼Ç Àç»ýÀ» ½ÃÀÛÇÔ + else { // 럴프중ì�´ì§€ 않다면 실제 애니메ì�´ì…˜ 재ìƒ�ì�„ 시작함 m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta); } - for (int i = 0; i < m_Bones.size(); ++i) + for (_int i = 0; i < m_Bones.size(); ++i) { m_Bones[i]->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix)); - if (i == m_iRootBoneIndex) { // ·çÆ®º»ÀÇ ¸ÅÆ®¸¯½º¸¦ °»½ÅÇß´Ù¸é ¾Ö´Ï¸ÞÀ̼ǿ¡ ¸Â°Ô À̵¿·®À» ·çÆ®º»¿¡¼­ Æ®·£½ºÆûÀ¸·Î º¸Á¤½ÃÅ´ - if (true == m_pLerpAnim->IsLerping()) { // ·²ÇÁÁßÀ̾úÀ¸¸é À̵¿·® ¹Ý¿µ x + if (i == m_iRootBoneIndex) { // 루트본ì�˜ 매트릭스를 갱신했다면 애니메ì�´ì…˜ì—� 맞게 ì�´ë�™ëŸ‰ì�„ 루트본ì—�서 트랜스í�¼ìœ¼ë¡œ 보정시킴 + if (true == m_pLerpAnim->IsLerping()) { // 럴프중ì�´ì—ˆìœ¼ë©´ ì�´ë�™ëŸ‰ ë°˜ì˜� x _matrix currAnimMatrix = Get_BoneMatrix(m_iRootBoneIndex); currAnimMatrix.r[3] = XMVectorSet(0.f, 0.f, 0.f, 1.f); m_Bones[i]->Set_CombinedTransformationMatrixPtr(currAnimMatrix); } else { - _matrix currAnimMatrix = Get_BoneMatrix(m_iRootBoneIndex); // ÇöÀç ·çÆ®º»ÀÇ ÄĹÙÀÎµå Æ®·£½ºÆûÀ» ²¨³»¿À°í - _matrix deltaAnimMatrix = XMMatrixMultiply(XMMatrixInverse(nullptr, m_PrevAnimationMatrix), currAnimMatrix); // ÀÌÀü Æ®·£½ºÆûÀ̶û ºñ±³Çؼ­ µ¨Å¸¸ÅÆ®¸¯½º¸¦ ²¨³¿ + _matrix currAnimMatrix = Get_BoneMatrix(m_iRootBoneIndex); // 현재 루트본ì�˜ ì»´ë°”ì�¸ë“œ 트랜스í�¼ì�„ 꺼내오고 + _matrix deltaAnimMatrix = XMMatrixMultiply(XMMatrixInverse(nullptr, m_PrevAnimationMatrix), currAnimMatrix); // ì�´ì „ 트랜스í�¼ì�´ëž‘ 비êµ�해서 ë�¸íƒ€ë§¤íŠ¸ë¦­ìŠ¤ë¥¼ 꺼냄 _vector momentum = XMMatrixMultiply(deltaAnimMatrix, XMMatrixRotationQuaternion(m_pTransform->Get_QuarternionVector())).r[3]; deltaAnimMatrix.r[3] = XMVectorSetW(momentum, 0.f); - m_pTransform->AccumulateMomentum(deltaAnimMatrix.r[3]); // ¸ðü Æ®·£½ºÆû¿¡ À̵¿·® ¹Ý¿µ + m_pTransform->AccumulateMomentum(deltaAnimMatrix.r[3]); // 모체 트랜스í�¼ì—� ì�´ë�™ëŸ‰ ë°˜ì˜� //m_pTransform->Set_State(STATE::POSITION, m_pTransform->Get_State(STATE::POSITION) + deltaAnimMatrix.r[3]); m_PrevAnimationMatrix = currAnimMatrix; currAnimMatrix.r[3] = XMVectorSet(0.f, 0.f, 0.f, 1.f); - m_Bones[i]->Set_CombinedTransformationMatrixPtr(currAnimMatrix); // ·çÆ®º»ÀÇ À̵¿·® ¼Ò°Å + m_Bones[i]->Set_CombinedTransformationMatrixPtr(currAnimMatrix); // 루트본ì�˜ ì�´ë�™ëŸ‰ 소거 } } } @@ -201,13 +201,13 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop) void CModel::Stop_Animation() { - if (-1 == m_iCurrentAnimIndex // Á¤Áö ȤÀº ½ÃÀÛÀ» ¾È½ÃÄÑÁØ ¾Ö´Ô - || m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // ¾Ö´Ô À妽º ÃʰúµÊ + if (-1 == m_iCurrentAnimIndex // ì •ì§€ 혹ì�€ 시작ì�„ 안시켜준 애님 + || m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // 애님 ì�¸ë�±ìФ 초과ë�¨ { - return; // À߸øµÈ ÃʱâÈ­ + return; // 잘못ë�œ 초기화 } - m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); // ¾Ö´ÔÀÌ Åð±ÙÇÒ ¶§ ºÒ¸®´Â ÇÔ¼ö¸¦ ºÎ¸£¸é¼­ Ãʱâ»óÅ·ΠµÇµ¹¸² + m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); // 애님ì�´ 퇴근할 때 불리는 함수를 부르면서 초기ìƒ�태로 ë�˜ë�Œë¦¼ } void CModel::RefreshAnim() @@ -219,7 +219,7 @@ _float CModel::Get_AnimProgressRatio() { return m_Animations[m_iCurrentAnimIndex]->Get_AnimProgressRatio(); } -_int CModel::Get_AnimProgressPostion(const char* pAnimChannelName) +_int CModel::Get_AnimProgressPostion(const _char* pAnimChannelName) { return m_Animations[m_iCurrentAnimIndex]->Get_AnimProgressPostion(pAnimChannelName); } @@ -262,6 +262,11 @@ const _float4x4* CModel::Get_BoneMatrixPtr(const _char* pBoneName) const return (*iter)->Get_CombinedTransformationMatrixPtr(); } +const _char* CModel::Get_MeshName(_uint iIndex) +{ + return m_Meshes[iIndex]->Get_Name(); +} + _matrix CModel::Get_BoneMatrix(_uint iBoneIndex) { @@ -278,9 +283,9 @@ void CModel::Get_BoneMatrices(_float4x4* pOut) } } -void CModel::Reset_CurrentTrackPosition() +void CModel::Set_CurrentTrackPosition(_float TrackPosition) { - m_Animations[m_iCurrentAnimIndex]->Reset_CurrentTrackPosition(); + m_Animations[m_iCurrentAnimIndex]->Set_CurrentTrackPosition(TrackPosition); } const _char* CModel::Get_AnimList(_uint iIndex) @@ -340,6 +345,28 @@ HRESULT CModel::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& Pre return S_OK; } +HRESULT CModel::Ready_PhysXMeshes() +{ + m_iNumPhysXMeshes = m_iNumMeshes; + + m_TriMeshes.reserve(m_iNumMeshes); + + m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, m_pTransform->Get_XMWorldMatrix()); + + return S_OK; +} + +HRESULT CModel::Save_PhysXTriMeshes(const _char* pModelFilePath) +{ + if (FAILED(Ready_PhysXMeshes())) { + return E_FAIL; + } + for (_uint i = 0; i < m_iNumMeshes; ++i) { + m_pGameInstance->RegistTriMesh(m_Meshes[i]->Get_Name(), m_TriMeshes[i]); + } + return m_pGameInstance->SaveTriMeshes(pModelFilePath, m_TriMeshes); +} + HRESULT CModel::Ready_Materials(const aiScene* pAIScene, const _char* pModelFilePath) { m_iNumMaterials = pAIScene->mNumMaterials; @@ -367,21 +394,15 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p vector<_string> MaterialFilePathes; string strFolderPath = pModelFilePath; - size_t iFolderPos = strFolderPath.find("Environment"); + size_t iFolderPos = strFolderPath.find("MeshTable"); - strFolderPath = strFolderPath.substr(0, iFolderPos); + strFolderPath = strFolderPath.substr(0, iFolderPos) + "MeshTable/"; _splitpath_s(pModelFilePath, szDrive, MAX_PATH, szDir, MAX_PATH, szFileName, MAX_PATH, nullptr, 0); - string FileName = szFileName; - - auto iPos = FileName.find_last_of('.'); - - FileName = FileName.substr(0, iPos); - strcpy_s(szMeshFilePath, szDrive); strcat_s(szMeshFilePath, szDir); - strcat_s(szMeshFilePath, FileName.c_str()); + strcat_s(szMeshFilePath, szFileName); strcat_s(szMeshFilePath, ".props.txt"); ifstream file(szMeshFilePath); @@ -403,17 +424,19 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p { getline(file, strText); - // value - _uint iBeginIndex = (_uint)strText.find("Environment"); - _uint iEndIndex = (_uint)strText.find('.'); - - if ((_uint)strText.size() < iEndIndex - iBeginIndex) + _int iBeginIndex = (_int)strText.find_first_of("/"); + _int iEndIndex = (_int)strText.find('.'); + if (-1 == iBeginIndex || -1 == iEndIndex) { + MSG_BOX("Fail Path _ NotExist"); // Not Exsist + return E_FAIL; + } + if ((_int)strText.size() < iEndIndex - iBeginIndex) { MSG_BOX("Fail Path"); return E_FAIL; } - string strPath = strFolderPath + strText.substr(iBeginIndex, iEndIndex - iBeginIndex); + string strPath = strFolderPath + strText.substr(iBeginIndex + 1, iEndIndex - iBeginIndex - 1); MaterialFilePathes.push_back(strPath); } @@ -462,7 +485,7 @@ HRESULT CModel::Ready_Bones(const aiNode* pAINode, _int iParentIndex) return S_OK; } -bool CModel::SaveAssimpModel(const _char* filename) +_bool CModel::SaveAssimpModel(const _char* filename) { if (!m_pAIScene) return false; @@ -477,17 +500,19 @@ bool CModel::SaveAssimpModel(const _char* filename) modelData.MeshCount = m_pAIScene->mNumMeshes; modelData.MaterialCount = m_pAIScene->mNumMaterials; - for (unsigned int i = 0; i < m_pAIScene->mNumMeshes; i++) + for (_uint i = 0; i < m_pAIScene->mNumMeshes; i++) { aiMesh* mesh = m_pAIScene->mMeshes[i]; SaveMesh saveMesh{}; - strcpy_s(saveMesh.Name, mesh->mName.C_Str()); + + saveMesh.MeshName = mesh->mName.C_Str(); + saveMesh.MeshNameSize = (_int)saveMesh.MeshName.size() + 1; saveMesh.VertexCount = mesh->mNumVertices; saveMesh.IndexCount = mesh->mNumFaces * 3; saveMesh.MaterialIndex = mesh->mMaterialIndex; saveMesh.Vertices.resize(saveMesh.VertexCount); - for (unsigned int i = 0; i < mesh->mNumVertices; i++) + for (_uint i = 0; i < mesh->mNumVertices; i++) { saveMesh.Vertices[i].Pos = XMFLOAT3{ mesh->mVertices[i].x , mesh->mVertices[i].y,mesh->mVertices[i].z }; @@ -547,7 +572,8 @@ bool CModel::SaveAssimpModel(const _char* filename) saveMesh.Bones.resize(mesh->mNumBones); for (size_t j = 0; j < mesh->mNumBones; j++) { - strcpy_s(saveMesh.Bones[j].Name, sizeof(saveMesh.Bones[j].Name), mesh->mBones[j]->mName.C_Str()); + saveMesh.Bones[j].BoneName = mesh->mBones[j]->mName.C_Str(); + saveMesh.Bones[j].BoneNameSize = (_int)saveMesh.Bones[j].BoneName.size(); memcpy(&saveMesh.Bones[j].OffsetMatrix, &mesh->mBones[j]->mOffsetMatrix, sizeof(_float4x4)); XMStoreFloat4x4(&saveMesh.Bones[j].OffsetMatrix, XMMatrixTranspose(XMLoadFloat4x4(&saveMesh.Bones[j].OffsetMatrix))); @@ -561,10 +587,10 @@ bool CModel::SaveAssimpModel(const _char* filename) } saveMesh.Indices.reserve(saveMesh.IndexCount); - for (unsigned int i = 0; i < mesh->mNumFaces; i++) + for (_uint i = 0; i < mesh->mNumFaces; i++) { aiFace& face = mesh->mFaces[i]; - for (unsigned int idx = 0; idx < face.mNumIndices; idx++) + for (_uint idx = 0; idx < face.mNumIndices; idx++) saveMesh.Indices.push_back(face.mIndices[idx]); } @@ -580,11 +606,12 @@ bool CModel::SaveAssimpModel(const _char* filename) SaveNodeRecursive(m_pAIScene->mRootNode, allNodes, -1); modelData.AnimationCount = m_pAIScene->mNumAnimations; - for (unsigned int i = 0; i < modelData.AnimationCount; i++) + for (_uint i = 0; i < modelData.AnimationCount; i++) { aiAnimation* Anim = m_pAIScene->mAnimations[i]; SaveAnimation saveAnim{}; - strcpy_s(saveAnim.Name, Anim->mName.C_Str()); + saveAnim.AnimName = Anim->mName.C_Str(); + saveAnim.AnimNameSize = (_int)saveAnim.AnimName.size() + 1; saveAnim.mDuration = (_float)Anim->mDuration; saveAnim.mTicksPerSecond = (_float)Anim->mTicksPerSecond; saveAnim.ChannelCount = Anim->mNumChannels; @@ -592,8 +619,8 @@ bool CModel::SaveAssimpModel(const _char* filename) saveAnim.Channels.resize(Anim->mNumChannels); for (size_t j = 0; j < saveAnim.ChannelCount; j++) { - strcpy_s(saveAnim.Channels[j].Name, sizeof(saveAnim.Channels[j].Name), - Anim->mChannels[j]->mNodeName.C_Str()); + saveAnim.Channels[j].ChannelName = Anim->mChannels[j]->mNodeName.C_Str(); + saveAnim.Channels[j].ChannelNameSize = (_int)saveAnim.Channels[j].ChannelName.size(); saveAnim.Channels[j].ScalingKeyCount = Anim->mChannels[j]->mNumScalingKeys; saveAnim.Channels[j].RotationKeyCount = Anim->mChannels[j]->mNumRotationKeys; @@ -645,7 +672,8 @@ bool CModel::SaveAssimpModel(const _char* filename) for (auto& mesh : modelData.Meshes) { - fwrite(&mesh.Name, sizeof(mesh.Name), 1, fp); + fwrite(&mesh.MeshNameSize, sizeof(_uint), 1, fp); + fwrite(mesh.MeshName.data(), 1, mesh.MeshNameSize, fp); fwrite(&mesh.VertexCount, sizeof(_uint), 1, fp); fwrite(&mesh.IndexCount, sizeof(_uint), 1, fp); fwrite(&mesh.MaterialIndex, sizeof(_uint), 1, fp); @@ -655,13 +683,14 @@ bool CModel::SaveAssimpModel(const _char* filename) fwrite(mesh.Indices.data(), sizeof(_uint), mesh.IndexCount, fp); for (auto& bone : mesh.Bones) { - fwrite(&bone.Name, sizeof(bone.Name), 1, fp); + fwrite(&bone.BoneNameSize, sizeof(_uint), 1, fp); + fwrite(bone.BoneName.data(), 1, bone.BoneNameSize, fp); fwrite(&bone.OffsetMatrix, sizeof(XMFLOAT4X4), 1, fp); fwrite(&bone.WeightsCount, sizeof(_uint), 1, fp); for (auto& Weights : bone.Weights) { fwrite(&Weights.VertexId, sizeof(_uint), 1, fp); - fwrite(&Weights.Weight, sizeof(float), 1, fp); + fwrite(&Weights.Weight, sizeof(_float), 1, fp); } } } @@ -669,26 +698,29 @@ bool CModel::SaveAssimpModel(const _char* filename) for (auto& node : allNodes) { - fwrite(node.Name, sizeof(node.Name), 1, fp); + fwrite(&node.NodeNameSize, sizeof(_uint), 1, fp); + fwrite(node.NodeName.data(), 1, node.NodeNameSize, fp); fwrite(&node.ParentIndex, sizeof(int), 1, fp); fwrite(&node.Transformation, sizeof(XMFLOAT4X4), 1, fp); fwrite(&node.ChildrenCount, sizeof(_uint), 1, fp); for (auto child : node.ChildrenIndices) { - fwrite(&child, sizeof(int), 1, fp); + fwrite(&child, sizeof(_int), 1, fp); } } for (auto& Anim : modelData.Animations) { - fwrite(Anim.Name, sizeof(Anim.Name), 1, fp); + fwrite(&Anim.AnimNameSize, sizeof(_uint), 1, fp); + fwrite(Anim.AnimName.data(), 1,Anim.AnimNameSize, fp); fwrite(&Anim.mDuration, sizeof(_float), 1, fp); fwrite(&Anim.mTicksPerSecond, sizeof(_float), 1, fp); fwrite(&Anim.ChannelCount, sizeof(_uint), 1, fp); for (size_t i = 0; i < Anim.ChannelCount; i++) { - fwrite(Anim.Channels[i].Name, sizeof(Anim.Channels[i].Name), 1, fp); + fwrite(&Anim.Channels[i].ChannelNameSize, sizeof(_uint), 1, fp); + fwrite(Anim.Channels[i].ChannelName.data(), 1, Anim.Channels[i].ChannelNameSize, fp); fwrite(&Anim.Channels[i].ScalingKeyCount, sizeof(_uint), 1, fp); fwrite(Anim.Channels[i].ScalingKeys.data(), sizeof(SaveKeyFrameVec), Anim.Channels[i].ScalingKeyCount, fp); @@ -711,7 +743,7 @@ bool CModel::SaveAssimpModel(const _char* filename) { _uint len = static_cast<_uint>(path.size()); fwrite(&len, sizeof(_uint), 1, fp); - fwrite(path.c_str(), sizeof(char), len, fp); + fwrite(path.c_str(), sizeof(_char), len, fp); } } } @@ -723,7 +755,8 @@ bool CModel::SaveAssimpModel(const _char* filename) _int CModel::SaveNodeRecursive(const aiNode* pAINode, std::vector& outNodes, _int parentIndex) { SaveNode node{}; - strcpy_s(node.Name, sizeof(node.Name), pAINode->mName.C_Str()); + node.NodeName = pAINode->mName.C_Str(); + node.NodeNameSize =(_uint)node.NodeName.size() + 1; node.ParentIndex = parentIndex; const aiMatrix4x4& m = pAINode->mTransformation; @@ -739,30 +772,17 @@ _int CModel::SaveNodeRecursive(const aiNode* pAINode, std::vector& out node.ChildrenCount = pAINode->mNumChildren; node.ChildrenIndices.resize(node.ChildrenCount); - int currentIndex = static_cast(outNodes.size()); + _int currentIndex = static_cast<_int>(outNodes.size()); outNodes.push_back(node); for (size_t i = 0; i < pAINode->mNumChildren; i++) { - int childIndex = SaveNodeRecursive(pAINode->mChildren[i], outNodes, currentIndex); + _int childIndex = SaveNodeRecursive(pAINode->mChildren[i], outNodes, currentIndex); outNodes[currentIndex].ChildrenIndices[i] = childIndex; } return currentIndex; } -CModel* CModel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) -{ - CModel* pInstance = new CModel(pDevice, pContext); - - if (FAILED(pInstance->Initialize_Prototype(pModelFilePath, eType, PreTransformMatrix, iRootBoneIndex))) - { - MSG_BOX("Failed to Created : CModel"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) { _uint iFlag = {}; @@ -791,9 +811,17 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma #pragma region Material if (MODEL::ENVIROMENT == eType) { +#ifdef 기무리 + if (FAILED(Ready_Materials(m_pAIScene, pModelFilePath))) { + return E_FAIL; + } +#endif // 기무리 +#ifndef 기무리 if (FAILED(Ready_Materials_FromFile(m_pAIScene, pModelFilePath))) { return E_FAIL; } +#endif // !기무리 + } else { @@ -815,19 +843,11 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma return S_OK; } -HRESULT CModel::Initialize_Prototype(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) -{ - return Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, iRootBoneIndex); -} #endif // EDITOR_PROJECT -HRESULT CModel::Initialize_Prototype() -{ - return S_OK; -} - HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix) { + m_eType = eType; _char szTextureFileName[MAX_PATH] = {}; _char szDir[MAX_PATH] = {}; _char szName[MAX_PATH] = {}; @@ -850,29 +870,38 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ return S_OK; } m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath); + - m_eType = eType; XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix); Ready_Bones(m_pSaveModel->Nodes, 0, -1); - if (FAILED(Ready_Meshes())) + if (FAILED(Ready_Meshes())){ return E_FAIL; + } - if (FAILED(Ready_Materials(pModelFilePath))) + if (FAILED(Ready_Materials(pModelFilePath))){ return E_FAIL; + } - if (FAILED(Ready_Animations())) + if (FAILED(Ready_Animations())){ return E_FAIL; + } + if (MODEL::ENVIROMENT == m_eType) { + m_pGameInstance->LoadTriMeshes(pModelFilePath, m_TriMeshes); + for (_uint i = 0; i < m_iNumMeshes; ++i) { + m_pGameInstance->RegistTriMesh(m_Meshes[i]->Get_Name(), m_TriMeshes[i]); + } + } return S_OK; } -bool CModel::LoadData(const _char* filename) +_bool CModel::LoadData(const _char* filename) { FILE* fp = nullptr; fopen_s(&fp, filename, "rb"); @@ -888,7 +917,11 @@ bool CModel::LoadData(const _char* filename) for (_uint i = 0; i < NewModel.MeshCount; i++) { SaveMesh mesh{}; - fread(&mesh.Name, sizeof(mesh.Name), 1, fp); + + fread(&mesh.MeshNameSize, sizeof(_uint), 1, fp); + mesh.MeshName.resize(mesh.MeshNameSize); + fread(mesh.MeshName.data(), 1, mesh.MeshNameSize, fp); + fread(&mesh.VertexCount, sizeof(_uint), 1, fp); fread(&mesh.IndexCount, sizeof(_uint), 1, fp); fread(&mesh.MaterialIndex, sizeof(_uint), 1, fp); @@ -903,7 +936,9 @@ bool CModel::LoadData(const _char* filename) mesh.Bones.resize(mesh.BoneCount); for (size_t i = 0; i < mesh.BoneCount; i++) { - fread(&mesh.Bones[i].Name, sizeof(mesh.Bones[i].Name), 1, fp); + fread(&mesh.Bones[i].BoneNameSize, sizeof(_uint), 1, fp); + mesh.Bones[i].BoneName.resize(mesh.Bones[i].BoneNameSize); + fread(mesh.Bones[i].BoneName.data(), 1, mesh.Bones[i].BoneNameSize, fp); fread(&mesh.Bones[i].OffsetMatrix, sizeof(XMFLOAT4X4), 1, fp); fread(&mesh.Bones[i].WeightsCount, sizeof(_uint), 1, fp); mesh.Bones[i].Weights.resize(mesh.Bones[i].WeightsCount); @@ -919,28 +954,35 @@ bool CModel::LoadData(const _char* filename) NewModel.Nodes.resize(NewModel.NodeCount); for (size_t i = 0; i < NewModel.NodeCount; i++) { - fread(NewModel.Nodes[i].Name, sizeof(NewModel.Nodes[i].Name), 1, fp); + fread(&NewModel.Nodes[i].NodeNameSize, sizeof(_uint), 1, fp); + NewModel.Nodes[i].NodeName.resize(NewModel.Nodes[i].NodeNameSize); + fread(NewModel.Nodes[i].NodeName.data(), 1, NewModel.Nodes[i].NodeNameSize, fp); fread(&NewModel.Nodes[i].ParentIndex, sizeof(int), 1, fp); fread(&NewModel.Nodes[i].Transformation, sizeof(XMFLOAT4X4), 1, fp); fread(&NewModel.Nodes[i].ChildrenCount, sizeof(_uint), 1, fp); NewModel.Nodes[i].ChildrenIndices.resize(NewModel.Nodes[i].ChildrenCount); for (size_t j = 0; j < NewModel.Nodes[i].ChildrenCount; j++) { - fread(&NewModel.Nodes[i].ChildrenIndices[j], sizeof(int), 1, fp); + fread(&NewModel.Nodes[i].ChildrenIndices[j], sizeof(_int), 1, fp); } } for (size_t i = 0; i < NewModel.AnimationCount; i++) { SaveAnimation saveAnim = {}; - fread(&saveAnim.Name, sizeof(saveAnim.Name), 1, fp); + fread(&saveAnim.AnimNameSize, sizeof(_uint), 1, fp); + saveAnim.AnimName.resize(saveAnim.AnimNameSize); + fread(saveAnim.AnimName.data(), 1, saveAnim.AnimNameSize, fp); fread(&saveAnim.mDuration, sizeof(_float), 1, fp); fread(&saveAnim.mTicksPerSecond, sizeof(_float), 1, fp); fread(&saveAnim.ChannelCount, sizeof(_uint), 1, fp); saveAnim.Channels.resize(saveAnim.ChannelCount); for (size_t j = 0; j < saveAnim.ChannelCount; j++) { - fread(&saveAnim.Channels[j].Name, sizeof(saveAnim.Channels[j].Name), 1, fp); + fread(&saveAnim.Channels[j].ChannelNameSize, sizeof(_uint), 1, fp); + + saveAnim.Channels[j].ChannelName.resize(saveAnim.Channels[j].ChannelNameSize); + fread(saveAnim.Channels[j].ChannelName.data(), 1, saveAnim.Channels[j].ChannelNameSize, fp); fread(&saveAnim.Channels[j].ScalingKeyCount, sizeof(_uint), 1, fp); saveAnim.Channels[j].ScalingKeys.resize(saveAnim.Channels[j].ScalingKeyCount); @@ -973,7 +1015,7 @@ bool CModel::LoadData(const _char* filename) fread(&len, sizeof(_uint), 1, fp); std::string temp; temp.resize(len); - fread(&temp[0], sizeof(char), len, fp); + fread(&temp[0], sizeof(_char), len, fp); mat.Path[k][j] = temp; } } @@ -1070,19 +1112,6 @@ HRESULT CModel::Ready_Animations() return S_OK; } -CModel* CModel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) -{ - CModel* pInstance = new CModel(pDevice, pContext); - - if (FAILED(pInstance->Initialize_Prototype())) - { - MSG_BOX("Failed to Created : CModel"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - CModel* CModel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath,_fmatrix PreTransformMatrix) { CModel* pInstance = new CModel(pDevice, pContext); diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 7cb66e0dd..c9dcd5c73 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -79,7 +79,6 @@ const PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody& RigidBody) pPxMeshGeometry = iter->second; } - PSX::PxRigidStatic* pActor = m_pPhysics->createRigidStatic(pxWorldMatrix); PSX::PxShape* pShape = PSX::PxRigidActorExt::createExclusiveShape(*pActor, *pPxMeshGeometry, *RigidBody.Get_PxMaterial()); @@ -122,21 +121,139 @@ PSX::PxShape* CPhysX_Manager::Create_Shape(ACTOR eType, _float3& vhalfGeometryIn return pShape; } -HRESULT CPhysX_Manager::Create_TriangleMesh(const _wstring& wstrMeshKey, CMesh* pMesh) -{ - - PSX::PxTriangleMesh* pTriangleMesh = pMesh->ConvertToPxMesh(m_pCookingParam); - if (nullptr != pTriangleMesh) { - m_TriangleMeshes.emplace(wstrMeshKey, pTriangleMesh); - - PSX::PxTriangleMeshGeometry* pGeometry = new PSX::PxTriangleMeshGeometry(pTriangleMesh); - pGeometry->meshFlags |= PSX::PxMeshGeometryFlag::eDOUBLE_SIDED; - m_TriangleMeshGeometry.emplace(wstrMeshKey, pGeometry); - return S_OK; - } - return E_FAIL; +void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh) { + m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh); + + PSX::PxTriangleMeshGeometry* pGeometry = new PSX::PxTriangleMeshGeometry(pPxTriMesh); + pGeometry->meshFlags |= PSX::PxMeshGeometryFlag::eDOUBLE_SIDED; + m_TriangleMeshGeometry.emplace(CMyTools::ToWstring(pName), pGeometry); } +HRESULT CPhysX_Manager::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix) +{ + for (size_t i = 0; i < Meshes.size(); ++i) + { + PSX::PxTriangleMesh* pTriangleMesh = Meshes[i]->ConvertToPxMesh(m_pCookingParam, m_pPhysics, WorldMatrix); + PX_ASSERT(pTriangleMesh); + PX_ASSERT(pTriangleMesh->getReferenceCount() == 1); + if (nullptr == pTriangleMesh) { + return E_FAIL; + } + pxTriMeshes.push_back(pTriangleMesh); + } + pxTriMeshes.shrink_to_fit(); + + return S_OK; +} + +HRESULT CPhysX_Manager::SaveTriMeshes(const _char* pPath, vector& TriMeshes) +{ + filesystem::path pathPhysX = pPath; + pathPhysX.replace_extension(".Pxml"); + if (TriMeshes.empty()){ + return E_FAIL; + } + + filesystem::create_directories(pathPhysX.parent_path()); + + PSX::PxSerializationRegistry* pSerializationRegistry = PSX::PxSerialization::createSerializationRegistry(*m_pPhysics); + PSX::PxCollection* pCollections = PxCreateCollection(); + if (nullptr == pCollections) { + pSerializationRegistry->release(); + assert(pCollections); + return E_FAIL; + } + + for (PSX::PxTriangleMesh* pTriMesh : TriMeshes) { + pCollections->add(*pTriMesh); + } + + PSX::PxSerialization::complete(*pCollections, *pSerializationRegistry); + PSX::PxDefaultFileOutputStream out(pathPhysX.string().c_str()); + PSX::PxCollection* extRefs = PxCreateCollection(); + const _bool ok = PSX::PxSerialization::serializeCollectionToXml(out, *pCollections, *pSerializationRegistry, m_pCookingParam, extRefs); + + extRefs->release(); + pCollections->release(); + pSerializationRegistry->release(); + assert(ok); + return (ok ? S_OK : E_FAIL); +} + +HRESULT CPhysX_Manager::LoadTriMeshes(const _char* pPath, vector& TriMeshes) +{ + filesystem::path pathPhysX = pPath; + pathPhysX.replace_extension(".Pxml"); + + PSX::PxSerializationRegistry* pSerializationRegistry = PSX::PxSerialization::createSerializationRegistry(*m_pPhysics); + + PSX::PxDefaultFileInputData InputData(pathPhysX.string().c_str()); + PSX::PxCollection* extRefs = PxCreateCollection(); + + PSX::PxCollection* pCollections = PSX::PxSerialization::createCollectionFromXml(InputData, *m_pCookingParam, *pSerializationRegistry, extRefs); + if (nullptr == pCollections) { + extRefs->release(); + pSerializationRegistry->release(); + assert(pCollections); + return E_FAIL; + } + + const PSX::PxU32 iNumTriMeshes = pCollections->getNbObjects(); + TriMeshes.reserve(iNumTriMeshes); + for (PSX::PxU32 i = 0; i < iNumTriMeshes; ++i) { + PSX::PxBase& pObject = pCollections->getObject(i); + + if (pObject.getConcreteType() == PSX::PxConcreteType::eTRIANGLE_MESH_BVH34) { + PSX::PxTriangleMesh* pTriMesh = static_cast(&pObject); + pTriMesh->acquireReference(); + TriMeshes.push_back(pTriMesh); + } + } + + extRefs->release(); + pCollections->release(); + pSerializationRegistry->release(); + return S_OK; +} + +// ¹ÙÀ̳ʸ® ·Îµå¿¡´Â 128B Á¤·ÄµÈ ¸Þ¸ð¸® Æ÷ÀÎÅ͸¦ ³Ñ°Ü¾ß ÇÔ. InputData ±×´ë·Î ³Ñ±â¸é ¾ÈµÊ +// ½ÉÁö¾î ¹ÙÀ̳ʸ®·Î ºÒ·¯¿Â ºí·°Àº ÇÇÁ÷½ºÀÇ ¸ðµç ¸Þ½ÃµéÀ» ¸±¸®Áî ÇÑ µÚ¿¡ ÇØÁ¦ ÇØ¾ß ÇÔ +//_bool CPhysX_Manager::LoadTriMeshes_Binary(const _char* pPath, vector& TriMeshes) +//{ +// filesystem::path pathPhysX = pPath; +// pathPhysX.replace_extension(".bmap"); +// +// PSX::PxSerializationRegistry* pSerializationRegistry = PSX::PxSerialization::createSerializationRegistry(*m_pPhysics); +// +// PSX::PxDefaultFileInputData InputData(pathPhysX.string().c_str()); +// PSX::PxCollection* extRefs = PxCreateCollection(); +// +// PSX::PxCollection* pCollections = PSX::PxSerialization::createCollectionFromBinary(&InputData, *pSerializationRegistry, extRefs); +// if (nullptr == pCollections) { +// extRefs->release(); +// pSerializationRegistry->release(); +// assert(pCollections); +// return false; +// } +// +// const PSX::PxU32 iNumTriMeshes = pCollections->getNbObjects(); +// TriMeshes.reserve(iNumTriMeshes); +// for (PSX::PxU32 i = 0; i < iNumTriMeshes; ++i) { +// PSX::PxBase& pObject = pCollections->getObject(i); +// +// if (pObject.getConcreteType() == PSX::PxConcreteType::eTRIANGLE_MESH_BVH34) { +// PSX::PxTriangleMesh* pTriMesh = static_cast(&pObject); +// pTriMesh->acquireReference(); +// TriMeshes.push_back(pTriMesh); +// } +// } +// +// extRefs->release(); +// pCollections->release(); +// pSerializationRegistry->release(); +// return true; +//} + PSX::PxTriangleMesh* CPhysX_Manager::Find_TriangleMesh(const _wstring& wstrMeshKey) { map<_wstring, PSX::PxTriangleMesh*>::iterator iter = m_TriangleMeshes.find(wstrMeshKey); @@ -279,6 +396,7 @@ HRESULT CPhysX_Manager::Initialize() m_pPhysics = PxCreatePhysics(PX_PHYSICS_VERSION, *m_pFoundation, m_ToleranceScale, true, m_pPvd); m_pCookingParam = new PSX::PxCookingParams(m_pPhysics->getTolerancesScale()); + m_pCookingParam->meshPreprocessParams |= PSX::PxMeshPreprocessingFlag::eWELD_VERTICES; PSX::PxSceneDesc sceneDesc = { m_pPhysics->getTolerancesScale() }; sceneDesc.gravity = PSX::PxVec3(0.f, -GRAVITY, 0.f); @@ -299,7 +417,7 @@ HRESULT CPhysX_Manager::Initialize() } m_pScene = m_pPhysics->createScene(sceneDesc); m_pCCTManager = PxCreateControllerManager(*m_pScene); - + m_pCCTManager->setOverlapRecoveryModule(false); } // µð¹ö±×¼­¹öÀÇ Å¬¶ó ¼¼ÆÃ @@ -310,15 +428,17 @@ HRESULT CPhysX_Manager::Initialize() pPvdClient->setScenePvdFlag(PSX::PxPvdSceneFlag::eTRANSMIT_SCENEQUERIES, true); } - //physx::PxMaterial* pMaterial = m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f); - //physx::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *pMaterial); + // m_pScene->overlap();?????? + +#ifdef ±â¹«¸® + physx::PxMaterial* pMaterial = m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f); + //physx::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 90), *pMaterial); //m_pScene->addActor(*pGroundPlane); //{ - // float halfExtent = .5f; // physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial); - // physx::PxU32 size = 100; + // physx::PxU32 size = 30; // physx::PxTransform pxTransform(physx::PxVec3(0)); // for (physx::PxU32 i = 0; i < size; i++) { @@ -331,6 +451,10 @@ HRESULT CPhysX_Manager::Initialize() // } // } //} + //pMaterial->release(); +#endif // ±â¹«¸® + + return S_OK; } @@ -381,6 +505,10 @@ void CPhysX_Manager::Free() if (nullptr != m_pCookingParam) { Safe_Delete(m_pCookingParam); } + if (nullptr != m_pCCTManager) { + m_pCCTManager->release(); + m_pCCTManager = nullptr; + } if (nullptr != m_pScene) { m_pScene->release(); m_pScene = nullptr; @@ -395,6 +523,7 @@ void CPhysX_Manager::Free() } if (nullptr != m_pPvd) { + m_pPvd->disconnect(); m_pPvd->release(); m_pPvd = nullptr; } diff --git a/Jusin154_Team3D/Engine/Private/RigidBody.cpp b/Jusin154_Team3D/Engine/Private/RigidBody.cpp index 2ac92547e..900beff26 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody.cpp @@ -14,7 +14,7 @@ CRigidBody::CRigidBody(const CRigidBody& rhs): m_eActorType(rhs.m_eActorType), m_vhalfGeometryInfo(rhs.m_vhalfGeometryInfo), m_pShape(rhs.m_pShape), - m_pMeshKey(rhs.m_pMeshKey), + m_wstrMeshKey(rhs.m_wstrMeshKey), m_bExclusive(rhs.m_bExclusive), m_bKinematic(rhs.m_bKinematic) { @@ -44,9 +44,8 @@ HRESULT CRigidBody::Initialize_Prototype(RIGIDBODY_PROTOTYPEDESC& Desc) break; case ACTOR::TRIANGLEMESH: { - m_pGameInstance->Create_TriangleMesh(Desc.tRigidStaticDesc.pMeshKey, Desc.tRigidStaticDesc.pMesh); m_pMaterial = m_pGameInstance->Get_Material(Desc.tRigidDynamicDesc.vMatInfo); - m_pMeshKey = Desc.tRigidStaticDesc.pMeshKey; + m_wstrMeshKey = CMyTools::ToWstring(Desc.tRigidStaticDesc.szMeshName); } break; case ACTOR::HEIGHTFIELD: @@ -54,6 +53,7 @@ HRESULT CRigidBody::Initialize_Prototype(RIGIDBODY_PROTOTYPEDESC& Desc) default: break; } + return S_OK; return S_OK; } diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp index 1e0ad0867..dc7997e81 100644 --- a/Jusin154_Team3D/Engine/Private/Transform.cpp +++ b/Jusin154_Team3D/Engine/Private/Transform.cpp @@ -306,13 +306,13 @@ void CTransform::Free() void CTransform::Describe_Entity() { - //if (GUI::TreeNode("Transform")) { - // GUI::DragFloat4("Right", (_float*)(&m_WorldMatrix._11), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); - // GUI::DragFloat4("Up", (_float*)(&m_WorldMatrix._21), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); - // GUI::DragFloat4("Look", (_float*)(&m_WorldMatrix._31), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); - // GUI::DragFloat4("Pos", (_float*)(&m_WorldMatrix._41), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); + if (GUI::TreeNode("Transform")) { + GUI::DragFloat4("Right", (_float*)(&m_WorldMatrix._11), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); + GUI::DragFloat4("Up", (_float*)(&m_WorldMatrix._21), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); + GUI::DragFloat4("Look", (_float*)(&m_WorldMatrix._31), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); + GUI::DragFloat4("Pos", (_float*)(&m_WorldMatrix._41), 1.f, 0.f, 0.f, "%.3f", ImGuiSliderFlags_NoInput); - // GUI::TreePop(); - // GUI::Spacing(); - //} + GUI::TreePop(); + GUI::Spacing(); + } } diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index 82122802b..a5a26c873 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -23,7 +23,7 @@ class ENGINE_DLL CAnimation : public CBase const _string& Get_Name() const { return m_strName; } const _char* Get_SZName() const { return m_szName; } - void Reset_CurrentTrackPosition() { m_fCurrentTrackPosition = 0.f; } + void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition =TrackPosition; } _float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; } void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; } _float Get_AnimSpeed() { return m_fAnimSpeed; } diff --git a/Jusin154_Team3D/Engine/Public/Base.h b/Jusin154_Team3D/Engine/Public/Base.h index b1eb4626e..141398bf0 100644 --- a/Jusin154_Team3D/Engine/Public/Base.h +++ b/Jusin154_Team3D/Engine/Public/Base.h @@ -15,7 +15,7 @@ class ENGINE_DLL CBase abstract _uint AddRef(); _uint Release(); -private: +protected: _uint m_iRefCnt = {}; public: diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h index b83c36a0f..71382325c 100644 --- a/Jusin154_Team3D/Engine/Public/Character_Controller.h +++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h @@ -1,27 +1,81 @@ #pragma once -#include "Base.h" +#include "Component.h" + NS_BEGIN(Engine) - -class CCharacter_Controller final : public CBase +class CTransform; +class ENGINE_DLL CCharacter_Controller final : + public CComponent { + /* dev-treadmill.tistory.com/158 */ + /* dev-treadmill.tistory.com/159 */ +public: +#pragma region STRUCT + struct CapsuleInfo + { + _float fRadius; + _float fHeight; + PSX::PxCapsuleClimbingMode::Enum eClimbingMode; // ±âº» (eEASY, stepOffset °ªÀÌ ¹«Á¦ÇÑ), (eCONSTRAINED, stepOffset °ªÀÌ Á¦´ë·Î ¸ÔÀ½) + }; + typedef struct tagCharacter_ControllerDesc + { + CTransform* pTransform = { nullptr }; + ACTOR eBodyType = { ACTOR::END }; + _float fContactOffset = { 0.f }; + _float3 fMaterial = { 0.5f, 0.5f, 0.6f }; + _bool bAutoStepping = { false }; // °è´Ü ³ôÀÌ Å¸°Ô ÇÒ°ÇÁö // ¹Ú½º ÄݶóÀÌ´õ´Â »ý°¢ÇÑ´ë·Î µÇ´Âµ¥ ĸ½¶Àº ¹Ù´ÚÀÇ ±¸Ã¼ ¶§¹®¿¡ ¿¹»óº¸´Ù ´õ ³ôÀº °÷±îÁö ¿À¸¦ ¼ö ÀÖÀ½ + _float fStepOffset = { 0.05f }; // Çã¿ë°¡´ÉÇÑ °è´Ü ³ôÀÌ, ÀÛ°Ô À¯ÁöÇÏ´Â°Ô ÁÁÀ½ + function funcHitCallback = { nullptr }; + function funcBehaviorCallback = { nullptr }; + + // Ÿ°í ¿Ã¶ó°¥ ¼ö ¾ø´Â °æ»ç¸éÀÇ °¢µµ¸¦ Á¤ÀÇÇÔ. 0.f ¸é ºñȰ¼ºÈ­ µÊ + // _float fSlopeLimit = { ÄÚ»çÀΰ¢µµ }; + + union + { + _float3 vBoxSize; // ¹Ú½º´Â AABBÀÓ + CapsuleInfo tCapsuleInfo; + }; + }Character_Controller_DESC; +#pragma endregion private: CCharacter_Controller(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCharacter_Controller(const CCharacter_Controller& rhs); virtual ~CCharacter_Controller() = default; +public: + _float Get_ContactOffset() const { return m_pController->getContactOffset(); } + void Set_ContactOffset(_float fValue) const { return m_pController->setContactOffset((PSX::PxF32)fValue); } + + void Move(_float fTimeDelta); // À̵¿ + void Set_Position(_fvector vNewPos); // ¼ø°£À̵¿ + _float3 Get_FootPosition(); // ContactOffsetÀÌ °í·ÁµÈ ¹ß¹Ù´Ú À§Ä¡( ½ÇÁ¦º¸´Ù ´õ ¾Æ·¡¿¡ À§Ä¡ÇÑ´Ù´Â ¶æ ) + + void Resize_Volume(_float fHeight); // ³ôÀ̸¦ ¼öÁ¤ÇÏ°í ¹Ù´Ú¿¡ ºÙÀÓ + void Modify_Volume(_float3 fVolume); + _float3 Get_Volume(); private: - class CGameInstance* m_pGameInstance = { nullptr }; - ID3D11Device* m_pDevice = { nullptr }; - ID3D11DeviceContext* m_pContext = { nullptr }; - - PSX::PxScene* m_pScene = { nullptr }; + ACTOR m_eBodyType = { ACTOR::END }; + PSX::PxController* m_pController = { nullptr }; + CTransform* m_pTransform = { nullptr }; + _bool m_bAutoStepping = { false }; + _float m_fSlopeLimit = { 0.f }; // cosf + + + function m_funcHitCallback = { nullptr }; + function m_funcBehaviorCallback = { nullptr }; + PSX::PxControllerCollisionFlags m_eBeforeCollisionFlags = {};; private: - HRESULT Initialize(PSX::PxScene* pScene); + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + _bool Check_Overlap(); public: - static CCharacter_Controller* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, PSX::PxScene* pScene); + static CCharacter_Controller* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; + virtual void Describe_Entity() override; }; NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index 0ccf0fa01..cee04b82b 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -69,4 +69,12 @@ enum aiTextureType { }; #endif // !EDITOR_PROJECT +enum class PHYSX_KIND { + NOT_DEFINED = 0, + CCTActor = 1, + OBSTACLEActor = 2, + BODY_STATIC = 3, + BODY_DYNAMIC = 4, +}; + NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Engine/Public/Engine_Function.h b/Jusin154_Team3D/Engine/Public/Engine_Function.h index 0b8eb4802..2937e7b56 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Function.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Function.h @@ -47,4 +47,17 @@ unsigned long Safe_Release(T& pInstance) return dwRefCnt; } +static void GUIHelpMarker(const char* desc) +{ + GUI::SameLine(); + GUI::TextDisabled("(?)"); + if (GUI::BeginItemTooltip()) + { + GUI::PushTextWrapPos(GUI::GetFontSize() * 35.0f); + GUI::TextUnformatted((_string("u8") + desc).c_str()); + GUI::PopTextWrapPos(); + GUI::EndTooltip(); + } +} + NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Engine/Public/Engine_Macro.h b/Jusin154_Team3D/Engine/Public/Engine_Macro.h index f25f1d8f5..e6fb9b42c 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Macro.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Macro.h @@ -91,6 +91,7 @@ constexpr unsigned int g_iMaxShadowHeight = 9216; #endif // !AI_TEXTURE_TYPE_MAX #define ENUM_CLASS(ENUM) static_cast(ENUM) +#define KR_CSTR(str) reinterpret_cast(u8##str) #ifndef MSG_BOX #define MSG_BOX(_message) MessageBox(NULL, TEXT(_message), L"System Message", MB_OK) diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h index d10e0e294..7f2c7f48f 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h @@ -4,12 +4,12 @@ NS_BEGIN(Engine) typedef struct tagEngineDesc { - HINSTANCE hInstance; - HWND hWnd; - _uint iNumLevels; - _uint iNumCollidableGroup; - _uint iStaticLevel; - _uint iWinSizeX, iWinSizeY; + HINSTANCE hInstance = {}; + HWND hWnd = {}; + _uint iNumLevels = {}; + _uint iNumCollidableGroup = {}; + _uint iStaticLevel = {}; + _uint iWinSizeX, iWinSizeY = {}; }ENGINE_DESC; typedef struct tagModelDesc { @@ -24,35 +24,35 @@ typedef struct tagModelDesc { typedef struct tagKeyFrame { - XMFLOAT3 vScale; - XMFLOAT4 vRotation; - XMFLOAT3 vTranslation; - float fTrackPosition; + XMFLOAT3 vScale = {}; + XMFLOAT4 vRotation = {}; + XMFLOAT3 vTranslation = {}; + _float fTrackPosition = {}; }KEYFRAME; struct LERPDESC { - _int iSlot; - tagKeyFrame tagKeyFrame; + _int iSlot = {}; + tagKeyFrame tagKeyFrame = {}; }; typedef struct tagLightDesc { - LIGHT eType; - _float4 vDiffuse; - _float4 vAmbient; - _float4 vSpecular; + LIGHT eType = {}; + _float4 vDiffuse = {}; + _float4 vAmbient = {}; + _float4 vSpecular = {}; - _float4 vDirection; - _float4 vPosition; - _float fRange; - _float2 vSpotAngles; + _float4 vDirection = {}; + _float4 vPosition = {}; + _float fRange = {}; + _float2 vSpotAngles = {}; }LIGHT_DESC; typedef struct tagShadowLight { - _float4 vEye, vAt; - _float fWidth, fHeight, fNear, fFar; + _float4 vEye{}, vAt{}; + _float fWidth{}, fHeight{}, fNear{}, fFar{}; }SHADOW_LIGHT_DESC; struct SaveVertex @@ -73,35 +73,41 @@ struct SaveVertex struct SaveBoneWeight { - unsigned int VertexId; - float Weight; + unsigned int VertexId = {}; + float Weight = {}; }; struct SaveBone { - char Name[64]; + string BoneName; + + unsigned int BoneNameSize = {}; XMFLOAT4X4 OffsetMatrix; - int BoneIndex; - unsigned int WeightsCount; + int BoneIndex = {}; + unsigned int WeightsCount = {}; vectorWeights; }; struct SaveNode { - char Name[64]; - int ParentIndex; - unsigned int ChildrenCount; + string NodeName; + + unsigned int NodeNameSize = {}; + int ParentIndex = {}; + unsigned int ChildrenCount = {}; XMFLOAT4X4 Transformation; vector ChildrenIndices; }; struct SaveMesh { - char Name[64]; - unsigned int VertexCount; - unsigned int IndexCount; - unsigned int MaterialIndex; - unsigned int BoneCount; + string MeshName; + + unsigned int MeshNameSize = {}; + unsigned int VertexCount = {}; + unsigned int IndexCount = {}; + unsigned int MaterialIndex = {}; + unsigned int BoneCount = {}; vector Vertices; vector Indices; @@ -129,7 +135,9 @@ struct SaveKeyFrameRotation struct SaveChannel { - char Name[64] = { }; + string ChannelName; + + unsigned int ChannelNameSize = {}; unsigned int ScalingKeyCount = { }; unsigned int RotationKeyCount = { }; unsigned int PositionKeyCount = { }; @@ -141,40 +149,45 @@ struct SaveChannel struct SaveAnimation { - char Name[128]; - float mDuration; - float mTicksPerSecond; - unsigned int ChannelCount; + string AnimName; + + unsigned int AnimNameSize = {}; + float mDuration = {}; + float mTicksPerSecond = {}; + unsigned int ChannelCount = {}; vector Channels; }; struct SaveModel { - unsigned int MeshCount; - unsigned int MaterialCount; - unsigned int AnimationCount; - unsigned int NodeCount; + unsigned int MeshCount = {}; + unsigned int MaterialCount = {}; + unsigned int AnimationCount = {}; + unsigned int NodeCount = {}; vector Meshes; vector Materials; vector Animations; vectorNodes; }; + +#pragma region VTX + typedef struct tagVertexInstance_Particle { - _float4 vRight; - _float4 vUp; - _float4 vLook; - _float4 vTranslation; + _float4 vRight = {}; + _float4 vUp = {}; + _float4 vLook = {}; + _float4 vTranslation = {}; - _float2 vLifeTime; + _float2 vLifeTime = {}; }VTX_INSTANCE_PARTICLE; typedef struct tagVertexBlock { - _float3 vPosition; - _float3 vNormal; - _float3 vTexcoord; + _float3 vPosition = {}; + _float3 vNormal = {}; + _float3 vTexcoord = {}; static constexpr _uint iNumElements = { 3 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { @@ -186,8 +199,8 @@ typedef struct tagVertexBlock }VTXBLOCK; typedef struct tagVertexPosition { - _float3 vPosition; - + _float3 vPosition = {}; + static constexpr _uint iNumElements = { 1 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 }, @@ -196,9 +209,9 @@ typedef struct tagVertexPosition { }VTXPOS; typedef struct tagVertexPositionTexcoord { - _float3 vPosition; - _float2 vTexcoord; - + _float3 vPosition = {}; + _float2 vTexcoord = {}; + static constexpr _uint iNumElements = { 2 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 }, @@ -208,10 +221,10 @@ typedef struct tagVertexPositionTexcoord { }VTXPOSTEX; typedef struct tagVertexPositionNormalTexcoord { - _float3 vPosition; - _float3 vNormal; - _float2 vTexcoord; - + _float3 vPosition = {}; + _float3 vNormal = {}; + _float2 vTexcoord = {}; + static constexpr _uint iNumElements = { 3 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 }, @@ -223,11 +236,11 @@ typedef struct tagVertexPositionNormalTexcoord { typedef struct tagVertexMesh { - _float3 vPosition; - _float3 vNormal; - _float3 vTangent; - _float3 vBinormal; - _float2 vTexcoord; + _float3 vPosition = {}; + _float3 vNormal = {}; + _float3 vTangent = {}; + _float3 vBinormal = {}; + _float2 vTexcoord = {}; static constexpr _uint iNumElements = { 5 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { @@ -241,14 +254,14 @@ typedef struct tagVertexMesh typedef struct tagVertexAnimationMesh { - _float3 vPosition; - _float3 vNormal; - _float3 vTangent; - _float3 vBinormal; - _float2 vTexcoord; + _float3 vPosition = {}; + _float3 vNormal = {}; + _float3 vTangent = {}; + _float3 vBinormal = {}; + _float2 vTexcoord = {}; - XMUINT4 vBlendIndex; - _float4 vBlendWeight; + XMUINT4 vBlendIndex = {}; + _float4 vBlendWeight = {}; static constexpr _uint iNumElements = { 7 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { @@ -264,7 +277,7 @@ typedef struct tagVertexAnimationMesh typedef struct tagVertexPosInstanceParticleDesc { - static constexpr unsigned int iNumElements = { 6 }; + static constexpr _uint iNumElements = { 6 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0}, @@ -279,7 +292,7 @@ typedef struct tagVertexPosInstanceParticleDesc typedef struct tagVertexModelInstanceParticleDesc { - static constexpr unsigned int iNumElements = { 10 }; + static constexpr _uint iNumElements = { 10 }; static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { { "POSITION" , 0 , DXGI_FORMAT_R32G32B32_FLOAT , 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0}, { "NORMAL" , 0 , DXGI_FORMAT_R32G32B32_FLOAT , 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0}, @@ -295,4 +308,18 @@ typedef struct tagVertexModelInstanceParticleDesc }; }VTX_MODEL_INSTANCE_PARTICLE; +#pragma endregion + + +typedef struct tagPhsXUserData { + PHYSX_KIND eKind = PHYSX_KIND::NOT_DEFINED; + class CGameObject* pOwner = { nullptr }; + _float4x4 m_BeforeMatrix = { }; + union { + class CRigidBody* pBody; + class CCharacter_Controller* pCharacter; + class CObstacle_Controller* pObstacle = { nullptr }; + }; +}PhsXUserData; + NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index e156ec191..b84177e4e 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -74,7 +74,7 @@ class ENGINE_DLL CGameInstance final : public CBase #pragma region OBJECT_MANAGER template - HRESULT Add_GameObject_ToLayer(_uint iPrototypeLevelIndex, _uint iLayerLevelIndex, const _wstring& strLayerTag, void* pArg = nullptr, class CGameObject* pOwner = nullptr, class CGameObject** ppOut = nullptr) { + HRESULT Add_GameObject_ToLayer(_uint iPrototypeLevelIndex, _uint iLayerLevelIndex, const _wstring& strLayerTag, void* pArg = nullptr, class CGameObject* pOwner = nullptr, T** ppOut = nullptr) { T* pGameObject = Clone_Prototype(iPrototypeLevelIndex, pArg, pOwner); if (nullptr == pGameObject) { @@ -178,10 +178,20 @@ class ENGINE_DLL CGameInstance final : public CBase #pragma endregion #pragma region PhysX_Manager PSX::PxMaterial* Get_Material(_float3& vMatInfo); - HRESULT Create_TriangleMesh(const _wstring& wstrMeshKey, CMesh* pMesh); + void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh); PSX::PxShape* Create_Shape(ACTOR eType, _float3& vhalfGeometryInfo, PSX::PxMaterial& pxMaterial, _bool bExclusive = false, PSX::PxShapeFlags ePxShapeFlag = PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE); const PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody& RigidBody); const PSX::PxRigidStatic* Add_StaticActor(CRigidBody& RigidBody); + + + PSX::PxController* Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc); + PSX::PxController* Add_BoxController(PSX::PxBoxControllerDesc& Desc); + PSX::PxController* Get_Controller(_uint iControllerIndex); + void ReleaseController(_uint iControllerIndex); + + HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix); + HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes); + HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); #pragma endregion diff --git a/Jusin154_Team3D/Engine/Public/GameObject.h b/Jusin154_Team3D/Engine/Public/GameObject.h index 2748a01d0..d4d1daa8c 100644 --- a/Jusin154_Team3D/Engine/Public/GameObject.h +++ b/Jusin154_Team3D/Engine/Public/GameObject.h @@ -68,6 +68,22 @@ class ENGINE_DLL CGameObject abstract return nullptr; } + + template + void Remove_Component() + { + for (auto it = m_Components.begin(); it != m_Components.end(); ) + { + if (dynamic_cast(*it)) + { + SAFE_RELEASE(*it); + it = m_Components.erase(it); + } + else + ++it; + } + } + protected: virtual HRESULT Initialize_Prototype(); virtual HRESULT Initialize(void* pArg); diff --git a/Jusin154_Team3D/Engine/Public/Mesh.h b/Jusin154_Team3D/Engine/Public/Mesh.h index 0f13d50a2..d821533d6 100644 --- a/Jusin154_Team3D/Engine/Public/Mesh.h +++ b/Jusin154_Team3D/Engine/Public/Mesh.h @@ -16,6 +16,7 @@ class ENGINE_DLL CMesh final : public CVIBuffer return m_iMaterialIndex; } + const _char* Get_Name() const { return m_szName; } HRESULT Bind_BoneMatrices(const vector& Bones, class CShader* pShader, const _char* pConstantName); HRESULT Bind_BoneMatrices(_float4x4* pCombinedMatrices, class CShader* pShader, const _char* pConstantName); HRESULT Render_Indexed(_uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); @@ -27,7 +28,7 @@ class ENGINE_DLL CMesh final : public CVIBuffer public: static CMesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, vector& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix); HRESULT SaveAsBinary(HANDLE hFile, DWORD& dwByte); - PSX::PxTriangleMesh* ConvertToPxMesh(const PSX::PxCookingParams* pParam); + PSX::PxTriangleMesh* ConvertToPxMesh(const PSX::PxCookingParams* pParam, PSX::PxPhysics* pPhysX, _fmatrix WorldMatrix); #endif // EDITOR_PROJECT public: diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 5e4ac2b94..8f724c0d8 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -31,6 +31,7 @@ class ENGINE_DLL CModel final : public CComponent _int Get_RootBoneIndex() const { return m_iRootBoneIndex; } const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; _uint Get_NumMeshes() const { return m_iNumMeshes; } + const _char* Get_MeshName(_uint iIndex); MODEL Get_Type() const { return m_eType; } _matrix Get_BoneMatrix(_uint iBoneIndex); @@ -39,7 +40,7 @@ class ENGINE_DLL CModel final : public CComponent void Get_BoneMatrices(_float4x4* pOut); _uint Get_BonesNum() const { return (_uint)m_Bones.size(); } - void Reset_CurrentTrackPosition(); + void Set_CurrentTrackPosition(_float TrackPosition); const _char* Get_AnimList(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } _float Get_CurrentTrackPosition(); @@ -56,16 +57,16 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #ifdef EDITOR_PROJECT - HRESULT Initialize_Prototype(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); - static CModel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix); + HRESULT Ready_PhysXMeshes(); + HRESULT Save_PhysXTriMeshes(const _char* pModelFilePath); HRESULT Ready_Materials(const aiScene* pAIScene, const _char* pModelFilePath); HRESULT Ready_Materials_FromFile(const aiScene* pAIScene, const _char* pModelFilePath); HRESULT Ready_Animations(const aiScene* pAIScene); HRESULT Ready_Bones(const aiNode* pAINode, _int iParentIndex); // ¹ÙÀ̳ʸ® - bool SaveAssimpModel(const _char* filename); + _bool SaveAssimpModel(const _char* filename); _int SaveNodeRecursive(const aiNode* pAINode, std::vector& outNodes, _int parentIndex); // #endif // EDITOR_PROJECT @@ -83,6 +84,8 @@ class ENGINE_DLL CModel final : public CComponent _uint m_iNumMeshes = {}; // ¸Þ½¬ÀÇ °¹¼ö vector m_Meshes; // ¸Þ½¬ÀÇ º¤ÅÍ + _uint m_iNumPhysXMeshes = {}; // ÇÇÁ÷½º ¸Þ½¬ÀÇ °¹¼ö + vector m_TriMeshes = {}; // ÇÇÁ÷½º ¸Þ½¬ÀÇ °¹¼ö _uint m_iNumMaterials = {}; // ¸ÓÅ׸®¾óÀÇ °¹¼ö vector m_Materials; // ¸ÓÅ׸®¾óÀÇ º¤ÅÍ @@ -111,7 +114,6 @@ class ENGINE_DLL CModel final : public CComponent // private: - virtual HRESULT Initialize_Prototype() override; // ¹ÙÀ̳ʸ® virtual HRESULT Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix); bool LoadData(const _char* filename); @@ -127,7 +129,6 @@ class ENGINE_DLL CModel final : public CComponent // public: - static CModel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); // ¹ÙÀ̳ʸ® static CModel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix = XMMatrixIdentity()); // diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h index 8d6a6eeed..ef2a593ec 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h +++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h @@ -22,11 +22,15 @@ class CPhysX_Manager final : public CBase const PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody& RigidBody); const PSX::PxRigidStatic* Add_StaticActor(CRigidBody& RigidBody); - + + void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh); PSX::PxMaterial* Get_Material(_float3& vMatInfo); PSX::PxShape* Create_Shape(ACTOR eType, _float3& vhalfGeometryInfo, PSX::PxMaterial& pxMaterial, _bool bExclusive, PSX::PxShapeFlags ePxShapeFlag); - HRESULT Create_TriangleMesh(const _wstring& wstrMeshKey, CMesh* pMesh); + HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix); + HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes); + HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); + //HRESULT LoadTriMeshes_Binary(const _char* pPath, vector& TriMeshes); PSX::PxTriangleMesh* Find_TriangleMesh(const _wstring& wstrMeshKey); void Update(_float fTimeDelta); @@ -35,7 +39,7 @@ class CPhysX_Manager final : public CBase #pragma endregion #pragma region CHARACTER_CONTROLLER - /* https://dev-treadmill.tistory.com/158 */ + /* dev-treadmill.tistory.com/158 */ public: PSX::PxController* Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc); diff --git a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h index 5789a7f2a..291c7446c 100644 --- a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h @@ -9,6 +9,7 @@ #include "Texture.h" #include "Cell.h" #include "Model.h" +#include "Character_Controller.h" #include "Instance_Model.h" diff --git a/Jusin154_Team3D/Engine/Public/RigidBody.h b/Jusin154_Team3D/Engine/Public/RigidBody.h index 06178f4b6..ec4ba9b73 100644 --- a/Jusin154_Team3D/Engine/Public/RigidBody.h +++ b/Jusin154_Team3D/Engine/Public/RigidBody.h @@ -16,8 +16,7 @@ class ENGINE_DLL CRigidBody final : public CComponent typedef struct tagRigidStatic_PrototypeDesc { _float3 vMatInfo; - const _tchar* pMeshKey = { nullptr }; - CMesh* pMesh = { nullptr }; + const _char* szMeshName = { } ; }RIGID_STATIC_PROTOTYPEDESC; typedef struct tagRigidDynamic_PrototypeDesc { @@ -37,7 +36,7 @@ class ENGINE_DLL CRigidBody final : public CComponent }; }RIGIDBODY_PROTOTYPEDESC; typedef struct tagRigidStatic_Desc { - const _tchar* pMeshKey = { nullptr }; + const _char* szMeshName = { }; }RIGID_STATIC_DESC; typedef struct tagRigidDynamic_Desc { _float fDensity = { 1000.f }; @@ -68,7 +67,7 @@ class ENGINE_DLL CRigidBody final : public CComponent public: PSX::PxShape* Get_ShapePtr() const { return m_pShape; } CTransform* Get_PxTransformPtr() const { return m_pTransform; } - const _tchar* Get_PxMeshKey() const { return m_pMeshKey; } + const _tchar* Get_PxMeshKey() const { return m_wstrMeshKey.c_str(); } const PSX::PxMaterial* Get_PxMaterial() const { return m_pMaterial; } _float Get_Density() const { return m_fDensity; } @@ -84,7 +83,7 @@ class ENGINE_DLL CRigidBody final : public CComponent _bool m_bKinematic = { false }; _bool m_bExclusive = { false }; _float m_fDensity = { 1000.f }; - const _tchar* m_pMeshKey = { nullptr }; + _wstring m_wstrMeshKey = { }; private: HRESULT Initialize_Prototype(RIGIDBODY_PROTOTYPEDESC& Desc);