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 deleted file mode 100644 index 957bfa74f..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.bin and /dev/null 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 deleted file mode 100644 index ae09e939b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/DADA.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45ee67110f7435227b45aaeb3afbcfb80fa8f9f2579b76781825371e563d0c5f -size 196167180 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_D.png deleted file mode 100644 index 204b8d7ae..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_N.png deleted file mode 100644 index 9ce13806d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DADA/T_Vendor_DADA_N.png and /dev/null differ 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 deleted file mode 100644 index 907bc54c8..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.bin and /dev/null 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 deleted file mode 100644 index baf5d2ed9..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/DarkWizardGrunt.fbx +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 438de4cba..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_D.png and /dev/null 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 deleted file mode 100644 index dccef21ae..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_HUM_M_CMBH_DarkWizardGrunt_Ashwinder_N.png and /dev/null 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 deleted file mode 100644 index 7226b5070..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardGrunt/T_Old_M_Arms_Ivory02_D.png and /dev/null 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 deleted file mode 100644 index 2c541b691..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/Body2.bin and /dev/null 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 deleted file mode 100644 index 065b3527f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.fbx +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 1f7f28858..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_D.png and /dev/null 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 deleted file mode 100644 index cb19bd8bc..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/T_DarkWizardSoldier_N.png and /dev/null 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 deleted file mode 100644 index 7b4dc24eb..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.bin and /dev/null 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 deleted file mode 100644 index aa53fb0da..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/DarkWizardTank.fbx +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 6f7dc9c4e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_D.png and /dev/null 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 deleted file mode 100644 index 25c0e0e52..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_D.png and /dev/null 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 deleted file mode 100644 index 327b67142..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_Head_shdr_N.png and /dev/null 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 deleted file mode 100644 index 666d09bf3..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_AshwinderA_N.png and /dev/null 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 deleted file mode 100644 index f66dbfc82..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_D.png and /dev/null 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 deleted file mode 100644 index 7cb041ff2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardTank/T_DarkWizardTank_PoacherA_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA2.bin new file mode 100644 index 000000000..34f0be679 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA2.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA2.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA2.fbx new file mode 100644 index 000000000..f287bd6b3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA2.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8471d54a4d79645841961c3ac13eb7e123f96efd0fdf22bdd0d4eee2ec4124e5 +size 1626604 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA3.bin new file mode 100644 index 000000000..5c26aac9a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA3.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA3.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA3.fbx new file mode 100644 index 000000000..05fd57bf1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA3.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bd7a167aa7fb0e5d7519f8f7c57216296c64431f21b5713b27ce644ffcc1ad9 +size 67742828 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/T_HUM_F_Hair_ChunkHair02_GibsonGirl_DAO_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/T_HUM_F_Hair_ChunkHair02_GibsonGirl_DAO_MSK.png new file mode 100644 index 000000000..c3b3560fb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/T_HUM_F_Hair_ChunkHair02_GibsonGirl_DAO_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/T_HUM_F_Hair_ChunkHair02_GibsonGirl_THV_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/T_HUM_F_Hair_ChunkHair02_GibsonGirl_THV_MSK.png new file mode 100644 index 000000000..dfb368d4a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/T_HUM_F_Hair_ChunkHair02_GibsonGirl_THV_MSK.png differ 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 deleted file mode 100644 index 069c7e108..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.bin and /dev/null 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 deleted file mode 100644 index 5bc1fb30a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair1/Hair1.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b007729006283ebeb04abc5a27f7f7be71b22a24c42d3d9a66953cbe7f918fc -size 196498620 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 deleted file mode 100644 index a80846c04..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5bc331e0a4b2bcd2bf7e2da1c106174db1a49a53203374c181db736d3b9184e -size 174652060 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair3/Hair3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair3/Hair3.bin deleted file mode 100644 index 5d9ecad9f..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair3/Hair3.bin and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair3/Hair3.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair3/Hair3.fbx deleted file mode 100644 index 2f0e0486b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair3/Hair3.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e94916d6bcbe4f0a078c3c3e3092adc4138623c43a583d5e2820e7a7f38b555 -size 16765980 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair1/T_GHO_M_Hair_GHOHair01_WigTall_DAO_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair1/T_GHO_M_Hair_GHOHair01_WigTall_DAO_MSK.png new file mode 100644 index 000000000..fda07929b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair1/T_GHO_M_Hair_GHOHair01_WigTall_DAO_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair1/T_GHO_M_Hair_GHOHair01_WigTall_THV_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair1/T_GHO_M_Hair_GHOHair01_WigTall_THV_MSK.png new file mode 100644 index 000000000..0530c32f9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair1/T_GHO_M_Hair_GHOHair01_WigTall_THV_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair2/T_HUM_M_Hair_ChunkHair04_Jasper_DAO_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair2/T_HUM_M_Hair_ChunkHair04_Jasper_DAO_MSK.png new file mode 100644 index 000000000..a55aab6de Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair2/T_HUM_M_Hair_ChunkHair04_Jasper_DAO_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair2/T_HUM_M_Hair_ChunkHair04_Jasper_THV_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair2/T_HUM_M_Hair_ChunkHair04_Jasper_THV_MSK.png new file mode 100644 index 000000000..143a2f798 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair2/T_HUM_M_Hair_ChunkHair04_Jasper_THV_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair3/T_HUM_M_Hair_Afro_Flyaways_THV_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair3/T_HUM_M_Hair_Afro_Flyaways_THV_MSK.png new file mode 100644 index 000000000..d8bb90fdc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair3/T_HUM_M_Hair_Afro_Flyaways_THV_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair3/T_HUM_M_Hair_Flyaways_DAO_MSK.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair3/T_HUM_M_Hair_Flyaways_DAO_MSK.png new file mode 100644 index 000000000..6a6b72c74 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Male/M_Hair3/T_HUM_M_Hair_Flyaways_DAO_MSK.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin new file mode 100644 index 000000000..5fd695787 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.fbx new file mode 100644 index 000000000..df71c1ccc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a6be92f8f40af3f1221bd5e3fc7d411a8ed5d5962b1bd13b53a89233b07bd66 +size 1098796 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Rct.bin similarity index 72% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Rct.bin index 8b0d70009..23ea908f9 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Body/DarkWizardSoldier/DarkWizardSoldier.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Rct.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Rct.fbx new file mode 100644 index 000000000..9c52bf0b6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Rct.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:000309f8d743b119547096724bd51e7e5c3b25d990af12b4c29dccb73c948597 +size 118788972 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Sneak.bin similarity index 51% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Sneak.bin index 52517c590..af452a605 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Hair/Hair2/Hair2.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Sneak.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Sneak.fbx new file mode 100644 index 000000000..235cde60e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Sneak.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbca2a9f663e217a2c8cfd05e21c6ad0005725581887db984f033a4ec728e756 +size 28265372 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spawn.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spawn.bin new file mode 100644 index 000000000..7404aa17f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spawn.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spawn.fbx new file mode 100644 index 000000000..d3d59d292 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spawn.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07c9b6e72b3bac15272250c542fe88be1b707775f9e353fb8b6f4c8ab13d5fd9 +size 7799628 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_HUM_M_DarkWizard14_CMB_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_HUM_M_DarkWizard14_CMB_D.png new file mode 100644 index 000000000..1e5509f18 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_HUM_M_DarkWizard14_CMB_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_HUM_M_DarkWizard14_CMB_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_HUM_M_DarkWizard14_CMB_N.png new file mode 100644 index 000000000..943b82681 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_HUM_M_DarkWizard14_CMB_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_NPC_Adult_M_Head_Ivory_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_NPC_Adult_M_Head_Ivory_D.png new file mode 100644 index 000000000..76d16bd56 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_NPC_Adult_M_Head_Ivory_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_NPC_Adult_M_Head_Ivory_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_NPC_Adult_M_Head_Ivory_N.png new file mode 100644 index 000000000..f3407c5d7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/T_NPC_Adult_M_Head_Ivory_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl index a6d171f8d..bbb47719c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl @@ -16,7 +16,16 @@ vector g_vCamPosition; Texture2D g_DiffuseTexture; Texture2D g_NormalTexture; -Texture2D g_MaskingTexture; +Texture2D g_DAOTexture; +Texture2D g_THVTexture; + +float3 g_RootColor; +float3 g_TipColor; +float3 g_DyeColor; + +float g_DyeOpacity; +float g_HairRoughness; + matrix g_BoneMatrices[512]; @@ -274,31 +283,38 @@ PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In) return Out; } -PS_OUT PS_MAIN_TEST(PS_IN In) +PS_OUT PS_HAIR(PS_IN In) { PS_OUT Out; - float4 vMtrlDiffuse = g_TestColor; - - float4 vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord); - - float fAlpha = vMtrlMask.r; - - if (fAlpha < 0.1f) + float4 DAO = g_DAOTexture.Sample(DefaultSampler, In.vTexcoord); + float alpha = DAO.a; + if (alpha < 0.1f) discard; + float4 THV = g_THVTexture.Sample(DefaultSampler, In.vTexcoord); + float rootMask = THV.r; + float tipMask = THV.g; + float variation = THV.b; + + float3 baseColor = lerp(g_RootColor, g_TipColor, tipMask); + + baseColor *= lerp(0.8, 1.2, variation); + + baseColor = lerp(baseColor, g_DyeColor, g_DyeOpacity); + float4 vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); + float3 normal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); if (g_bRimLight) { - float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength); - vMtrlDiffuse.rgb = lerp(vMtrlDiffuse.rgb, g_vRimColor.rgb, fRimLight); + float fRim = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, normal, g_fRimPower, g_fRimStrength); + baseColor = lerp(baseColor, g_vRimColor.rgb, fRim); } - Out.vDiffuse = float4(vMtrlDiffuse.rgb * vMtrlMask.r, g_TestColor.a); - Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDiffuse = float4(baseColor, alpha); + Out.vNormal = float4(normal * 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; @@ -376,14 +392,14 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_BLUR(); } - pass TestPass + pass HairPass { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); VertexShader = compile vs_5_0 VS_MAIN(); GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN_TEST(); + PixelShader = compile ps_5_0 PS_HAIR(); } pass EyeLashPass diff --git a/Jusin154_Team3D/Editor/Private/Hair.cpp b/Jusin154_Team3D/Editor/Private/Hair.cpp index 9135e271d..c1b41e8fb 100644 --- a/Jusin154_Team3D/Editor/Private/Hair.cpp +++ b/Jusin154_Team3D/Editor/Private/Hair.cpp @@ -49,7 +49,7 @@ void CHair::Late_Update(_float fTimeDelta) HRESULT CHair::Render() { - if (!m_pModelCom ||!m_pTextureCom) + if (!m_pModelCom || !m_pTHV_TextureCom || !m_pDAO_TextureCom) return S_OK; if (FAILED(Bind_ShaderResources())) { @@ -64,7 +64,7 @@ HRESULT CHair::Render() return E_FAIL; } - /*if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + /* 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))) { @@ -94,11 +94,6 @@ HRESULT CHair::Ready_Components() } - - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("MaskTexture"), - reinterpret_cast(&m_pTextureCom)))) - return E_FAIL; - return S_OK; } @@ -119,14 +114,30 @@ HRESULT CHair::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pTextureCom->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", iTextureIndex))) { + if (FAILED(m_pDAO_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DAOTexture", 0))) { + return E_FAIL; + } + if (FAILED(m_pTHV_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_THVTexture", 0))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_TestColor",&m_vColor,sizeof(_float4)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_RootColor", &m_vRootColor, sizeof(_float3)))){ + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_TipColor", &m_vTipColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_DyeColor", &m_vDyeColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_DyeOpacity", &m_fDyeOpacity, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_HairRoughness", &m_fHairRoughness, sizeof(_float)))) { return E_FAIL; } + return S_OK; } CHair* CHair::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -158,8 +169,6 @@ CGameObject* CHair::Clone(void* pArg, CGameObject* pOwner) void CHair::Free() { __super::Free(); - - SAFE_RELEASE(m_pTextureCom); } void CHair::Describe_Entity() @@ -167,7 +176,7 @@ void CHair::Describe_Entity() if (!m_pModelCom ) return; - for (_uint i = 0; i < dynamic_cast(m_pTextureCom)->Get_Size(); i++) + /*for (_uint i = 0; i < dynamic_cast(m_pTextureCom)->Get_Size(); i++) { _char label[128]; @@ -180,8 +189,12 @@ void CHair::Describe_Entity() if (i % dynamic_cast(m_pTextureCom)->Get_Size() != dynamic_cast(m_pTextureCom)->Get_Size()-1) GUI::SameLine(); - } + }*/ - GUI::DragFloat4("COLOR", (_float*)&m_vColor, 0.1f); + GUI::DragFloat3("RootColor", (_float*)&m_vRootColor, 0.1f); + GUI::DragFloat3("TipColor", (_float*)&m_vTipColor, 0.1f); + GUI::DragFloat3("DyeColor", (_float*)&m_vDyeColor, 0.1f); + GUI::DragFloat("DyeOpacity", &m_fDyeOpacity, 0.1f); + GUI::DragFloat("HairRoughness", &m_fHairRoughness, 0.1f); } diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index bedaddf02..3ff0aa3b1 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -248,6 +248,52 @@ void CLevel_ObjectViewer::Category_PartsModelList(const _char* Category, const _ iIndex = ENUM_CLASS(CRootModelPart::PARTSTYPE::HAIR); m_HumanRoot->Change_Model(iIndex); + + filesystem::path fullPath(szCategory); + filesystem::path folder = fullPath.parent_path(); + _string baseName = fullPath.stem().string(); + + _string defaultModel = fullPath.filename().string(); + + for (auto& entry : filesystem::directory_iterator(folder)) + { + if (!entry.is_regular_file()) + continue; + + auto file = entry.path().filename().string(); + auto stem = entry.path().stem().string(); + auto ext = entry.path().extension().string(); + + if (ext != ".png") + continue; + + if (strstr(stem.c_str(),"DAO_MSK")) + { + _string Name = folder.string() +"/" + file; + + const _wchar* Prototype = TEXT("DAO_MSK"); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, Prototype, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, CMyTools::ToWstring(Name).c_str(), 0)))) { + return; + } + + m_HumanRoot->Set_Texture(iIndex, Prototype); + } + if (strstr(stem.c_str(), "THV_MSK")) + { + _string Name = folder.string() + "/" + file; + + const _wchar* Prototype = TEXT("THV_MSK"); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, Prototype, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, CMyTools::ToWstring(Name).c_str(), 0)))) { + return; + } + + m_HumanRoot->Set_Texture(iIndex, Prototype); + } + } } } } @@ -266,7 +312,7 @@ void CLevel_ObjectViewer::Show_AnimList() { pModel->Set_AnimationIndex(i); pModel->Set_CurrentTrackPosition(0.f); - //pModel->Play_Animation(0.f); + pModel->Play_Animation(0.f); } } } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 09227919c..60171ada9 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -818,10 +818,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() return E_FAIL; #pragma endregion - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TestHuman_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/TestHuman.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) - return E_FAIL; - #pragma region MONSTER if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TombProtector_Model"), @@ -838,6 +834,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma endregion + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", 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_Broom_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.001f, 0.001f, 0.001f) * XMMatrixIdentity())))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/ModelParts.cpp b/Jusin154_Team3D/Editor/Private/ModelParts.cpp index 7337f9efe..63d63dbe2 100644 --- a/Jusin154_Team3D/Editor/Private/ModelParts.cpp +++ b/Jusin154_Team3D/Editor/Private/ModelParts.cpp @@ -103,11 +103,40 @@ void CModelParts::Change_Model(const _wchar* Prototype) } else m_HeadIndex = 1; + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, Prototype, reinterpret_cast(&m_pModelCom)))) return; } +void CModelParts::Set_Texture(const _wchar* Texture) +{ + if (strstr(CMyTools::ToString(Texture).c_str(), "THV")) + { + if (m_pTHV_TextureCom) + { + Remove_Component(); + SAFE_RELEASE(m_pTHV_TextureCom); + } + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, Texture, + reinterpret_cast(&m_pTHV_TextureCom)))) + return; + } + else if (strstr(CMyTools::ToString(Texture).c_str(), "DAO")) + { + if (m_pDAO_TextureCom) + { + Remove_Component(); + SAFE_RELEASE(m_pDAO_TextureCom); + } + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, Texture, + reinterpret_cast(&m_pDAO_TextureCom)))) + return; + } + + +} + HRESULT CModelParts::Ready_Components() { __super::Ready_Components(nullptr); @@ -146,6 +175,10 @@ void CModelParts::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); + + SAFE_RELEASE(m_pDAO_TextureCom); + SAFE_RELEASE(m_pTHV_TextureCom); + } void CModelParts::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp index e4e6ddd2d..a9fda49f4 100644 --- a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp +++ b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp @@ -125,6 +125,11 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex) } } +void CRootModelPart::Set_Texture(_uint iIndex, const _wchar* Texture) +{ + m_ModelParts[iIndex]->Set_Texture(Texture); +} + HRESULT CRootModelPart::Ready_Components(void* pArg) { __super::Ready_Components(pArg); diff --git a/Jusin154_Team3D/Editor/Public/Hair.h b/Jusin154_Team3D/Editor/Public/Hair.h index 5b55ab3dc..e4f676361 100644 --- a/Jusin154_Team3D/Editor/Public/Hair.h +++ b/Jusin154_Team3D/Editor/Public/Hair.h @@ -2,9 +2,7 @@ #include "Editor_Define.h" #include "ModelParts.h" -NS_BEGIN(Engine) -class CTexture; -NS_END + NS_BEGIN(Editor) @@ -26,8 +24,14 @@ class CHair final : public CModelParts HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); private: - CTexture* m_pTextureCom = { nullptr }; _uint iTextureIndex = { 0 }; + _float3 m_vRootColor = _float3{ 1.f,1.f,1.f }; + _float3 m_vTipColor = _float3{ 1.f,1.f,1.f }; + _float3 m_vDyeColor = _float3{ 1.f,1.f,1.f }; + + _float m_fDyeOpacity = 0.0f; + _float m_fHairRoughness = 0.4f; + public: static CHair* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/ModelParts.h b/Jusin154_Team3D/Editor/Public/ModelParts.h index 1061d45bf..857fd2819 100644 --- a/Jusin154_Team3D/Editor/Public/ModelParts.h +++ b/Jusin154_Team3D/Editor/Public/ModelParts.h @@ -6,6 +6,7 @@ NS_BEGIN(Engine) class CShader; class CModel; +class CTexture; NS_END NS_BEGIN(Editor) @@ -31,18 +32,22 @@ class CModelParts abstract : public CPartObject virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; virtual void Change_Model(const _wchar* Prototype); + virtual void Set_Texture(const _wchar* Texture); _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } protected: CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; + CTexture* m_pDAO_TextureCom = { nullptr }; + CTexture* m_pTHV_TextureCom = { nullptr }; + _bool m_bRimLight = { true }; _float m_fRimLightPower = { 3.2f }; _float m_fRimLightStrength = { 3.04f }; _float3 m_vRimLightColor = { 69.f / 255.f, 5.f / 255.f, 10.f / 255.f }; _uint m_HeadIndex = {}; _wstring m_strModelPrototypeTag; - _float4 m_vColor = _float4{ 1.f,1.f,1.f,1.f }; + _float3 m_vColor = _float3{ 1.f,1.f,1.f }; protected: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Editor/Public/RootModelPart.h b/Jusin154_Team3D/Editor/Public/RootModelPart.h index cdd168e8c..85ede3d7a 100644 --- a/Jusin154_Team3D/Editor/Public/RootModelPart.h +++ b/Jusin154_Team3D/Editor/Public/RootModelPart.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ContainerObject.h" @@ -38,6 +38,7 @@ class CRootModelPart final : public CContainerObject void Set_MainModel(class CModel* Model); void Change_Model(_uint iIndex); void Set_Animation(_uint iAnimIndex); + void Set_Texture(_uint iIndex, const _wchar* Texture); private: class CModel* m_pMainModel = { nullptr }; @@ -59,4 +60,4 @@ class CRootModelPart final : public CContainerObject virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index db221bf69..967c6438f 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -154,7 +154,7 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, _float f _vector vDeltaAdjusted = {}; XMMATRIX pre = XMLoadFloat4x4(&m_PreTransformMatrix); - vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre); + vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre*20.f); _vector vRight = pTransform->Get_State(STATE::RIGHT); _vector vUp = pTransform->Get_State(STATE::UP); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index e27b64933..c77610dc0 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -315,12 +315,12 @@ void CModel::Set_AnimSpeed(_float fSpeed) void CModel::Set_Anim(CModel* Source) { - m_Animations = Source->m_Animations; + for (auto& Animations : Source->m_Animations) + { + m_Animations.push_back(Animations); + } - for (auto& anim : m_Animations) - anim->Remap_Channels_By_Name(this); - - m_iNumAnimations = (_uint)m_Animations.size(); + m_iNumAnimations += (_uint)Source->m_Animations.size(); } @@ -881,6 +881,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ } m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath); + LoadAdditionalAnimations(pModelFilePath); XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix); @@ -909,6 +910,35 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ return S_OK; } +void CModel::LoadAdditionalAnimations(const char* ModelFilePath) +{ + filesystem::path fullPath(ModelFilePath); + filesystem::path folder = fullPath.parent_path(); + _string baseName = fullPath.stem().string(); + + _string defaultModel = fullPath.filename().string(); + + for (auto& entry : filesystem::directory_iterator(folder)) + { + if (!entry.is_regular_file()) + continue; + + auto file = entry.path().filename().string(); + auto stem = entry.path().stem().string(); + auto ext = entry.path().extension().string(); + + if (ext != ".bin") + continue; + + if (file == defaultModel) + continue; + + if (stem.rfind(baseName, 0) == 0) + { + LoadAnim(entry.path().string().c_str()); + } + } +} _bool CModel::LoadData(const _char* filename) @@ -1043,6 +1073,108 @@ _bool CModel::LoadData(const _char* filename) return true; } +void CModel::LoadAnim(const _char* fileName) +{ + FILE* fp = nullptr; + fopen_s(&fp, fileName, "rb"); + if (!fp) return; + + _uint MeshCount, MaterialCount, AnimationCount, NodeCount; + + fread(&MeshCount, sizeof(_uint), 1, fp); + fread(&MaterialCount, sizeof(_uint), 1, fp); + fread(&AnimationCount, sizeof(_uint), 1, fp); + fread(&NodeCount, sizeof(_uint), 1, fp); + + for (_uint i = 0; i < MeshCount; i++) + { + _uint nameSize, vtxCount, idxCount, matIndex, boneCount; + + fread(&nameSize, sizeof(_uint), 1, fp); + fseek(fp, nameSize, SEEK_CUR); + + fread(&vtxCount, sizeof(_uint), 1, fp); + fread(&idxCount, sizeof(_uint), 1, fp); + fread(&matIndex, sizeof(_uint), 1, fp); + fread(&boneCount, sizeof(_uint), 1, fp); + + fseek(fp, sizeof(SaveVertex) * vtxCount, SEEK_CUR); + + fseek(fp, sizeof(_uint) * idxCount, SEEK_CUR); + + for (_uint b = 0; b < boneCount; b++) + { + _uint boneNameSize = 0; + fread(&boneNameSize, sizeof(_uint), 1, fp); + fseek(fp, boneNameSize, SEEK_CUR); + + fseek(fp, sizeof(_float4x4), SEEK_CUR); + + _uint weightCount = 0; + fread(&weightCount, sizeof(_uint), 1, fp); + fseek(fp, (sizeof(_uint) + sizeof(_float)) * weightCount, SEEK_CUR); + } + } + + for (_uint i = 0; i < NodeCount; i++) + { + _uint nodeNameSize; + fread(&nodeNameSize, sizeof(_uint), 1, fp); + fseek(fp, nodeNameSize, SEEK_CUR); + + fseek(fp, sizeof(int), SEEK_CUR); + fseek(fp, sizeof(XMFLOAT4X4), SEEK_CUR); + + _uint childrenCount; + fread(&childrenCount, sizeof(_uint), 1, fp); + fseek(fp, sizeof(_int) * childrenCount, SEEK_CUR); + } + + for (_uint i = 0; i < AnimationCount; i++) + { + SaveAnimation saveAnim = {}; + + 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].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); + fread(saveAnim.Channels[j].ScalingKeys.data(), + sizeof(SaveKeyFrameVec), saveAnim.Channels[j].ScalingKeyCount, fp); + + fread(&saveAnim.Channels[j].RotationKeyCount, sizeof(_uint), 1, fp); + saveAnim.Channels[j].RotationKeys.resize(saveAnim.Channels[j].RotationKeyCount); + fread(saveAnim.Channels[j].RotationKeys.data(), + sizeof(SaveKeyFrameRotation), saveAnim.Channels[j].RotationKeyCount, fp); + + fread(&saveAnim.Channels[j].PositionKeyCount, sizeof(_uint), 1, fp); + saveAnim.Channels[j].PositionKeys.resize(saveAnim.Channels[j].PositionKeyCount); + fread(saveAnim.Channels[j].PositionKeys.data(), + sizeof(SaveKeyFrameVec), saveAnim.Channels[j].PositionKeyCount, fp); + } + + m_pSaveModel->Animations.push_back(saveAnim); + m_pSaveModel->AnimationCount++; + } + + fclose(fp); +} + + HRESULT CModel::Initialize(void* pArg) { m_pLerpAnim = CLerpAnim::Create((_uint)m_Bones.size(), 1.f, m_Bones); diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index d7cc21eec..dfc9e5d39 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -28,7 +28,6 @@ class ENGINE_DLL CAnimation : public CBase _float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; } void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; } _float Get_AnimSpeed() { return m_fAnimSpeed; } - void Set_Channel(CAnimation* Animation); void Remap_Channels_By_Name(class CModel* TargetModel); #ifdef EDITOR_PROJECT private: diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index e495f8907..ee2cffe81 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -21,7 +21,7 @@ class ENGINE_DLL CModel final : public CComponent #pragma endregion #pragma region Animation void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // 애니메ì�´ì…˜ì�„ 다른 ì�¸ë�±ìŠ¤ë¡œ 변경함 - _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform); // 애니메ì�´ì…˜ì—� ë�¸íƒ€íƒ€ìž„ì�„ 넣어줌 + _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메ì�´ì…˜ì—� ë�¸íƒ€íƒ€ìž„ì�„ 넣어줌 void RefreshAnim(); // 애님ì�„ 현재 애님ì�˜ 초기ìƒ�태로 ë�˜ë�Œë¦¼ void Set_AnimationIndex(_uint iIndex, _bool isLoop = true); void Stop_Animation(); // 애니메ì�´ì…˜ì�„ ì •ì§€ (초기ìƒ�태로) @@ -126,7 +126,9 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / private: // ë°”ì�´ë„ˆë¦¬ virtual HRESULT Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix); + void LoadAdditionalAnimations(const char* ModelFilePath); bool LoadData(const _char* filename); + void LoadAnim(const _char* fileName); // virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Engine/Public/Transform.h b/Jusin154_Team3D/Engine/Public/Transform.h index a14d47ede..06c0f2c43 100644 --- a/Jusin154_Team3D/Engine/Public/Transform.h +++ b/Jusin154_Team3D/Engine/Public/Transform.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" NS_BEGIN(Engine) @@ -30,7 +30,7 @@ class ENGINE_DLL CTransform final : _float Get_RotationSpeed() const { return m_fRotationPerSec; } _float Get_Radius() const { return m_fRadius; } _float3 Get_Scale() const; - _vector Get_QuarternionVector() const; // ÇöÀç ȸÀüÁ¤º¸¸¦ ´ã°í ÀÖ´Â ÄõÅʹϾ𠺤Å͸¦ out + _vector Get_QuarternionVector() const; // 현재 회전정보를 ë‹´ê³  있는 쿼터니언 벡터를 out _vector Get_RollPitchYawVector() const; _vector Get_State(STATE eState) const { return XMLoadFloat4(reinterpret_cast(&m_WorldMatrix.m[ENUM_CLASS(eState)])); } const _float4* Get_StatePtr(STATE eState) { return reinterpret_cast<_float4*>(&m_WorldMatrix.m[ENUM_CLASS(eState)]); } @@ -60,17 +60,17 @@ class ENGINE_DLL CTransform final : void Rotation(_float fRadianX, _float fRadianY, _float fRadianZ); void Rotation(_float3& vRadian); - // Up, Down º¤Å͸¦ ¹Ù¶óº¸°Ô Çϸé ÅÍÁü + // Up, Down 벡터를 ë°”ë�¼ë³´ê²Œ 하면 í„°ì§� void LookAt(_fvector vAt); private: _float m_fSpeedPerSec = {}; _float m_fRotationPerSec = {}; _float4x4 m_WorldMatrix = {}; - _float m_fRadius = {}; + _float m_fRadius = {20.f}; - _float3 m_vMomentum = {}; // ÇöÀç ÇÁ·¹ÀÓ¿¡ °è»êµÈ À̵¿·® - _float3 m_vBackMomentum = {}; // ´ÙÀ½ ÇÁ·¹ÀÓ¿¡ °è»êµÉ À̵¿·® + _float3 m_vMomentum = {}; // 현재 프레임ì—� 계산ë�œ ì�´ë�™ëŸ‰ + _float3 m_vBackMomentum = {}; // 다ì�Œ 프레임ì—� 계산ë�  ì�´ë�™ëŸ‰ private: virtual HRESULT Initialize_Prototype() override; @@ -84,4 +84,4 @@ class ENGINE_DLL CTransform final : virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END