From 780876b845732b69bd2ea3e6d5d8c34ea3ea990d Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Thu, 25 Dec 2025 14:12:31 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=ED=94=8C=EB=A0=88=EC=9D=B4=EC=96=B4=20?= =?UTF-8?q?=EB=AA=A8=EB=8D=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Private/Loader.cpp | 4 +- Jusin154_Team3D/Client/Private/Player.cpp | 73 +++- Jusin154_Team3D/Client/Public/Player.h | 1 + .../Human/PlayableCharacter/Playable.bin | 4 +- .../Playable_AvadaKedavran.bin | 3 + .../Playable_AvadaKedavran.fbx | 3 + .../Human/PlayableCharacter/Playable_Bm.bin | 3 + .../Human/PlayableCharacter/Playable_Bm.fbx | 3 + .../PlayableCharacter/Playable_Broom.bin | 3 + .../PlayableCharacter/Playable_Broom.fbx | 3 + .../Human/PlayableCharacter/Playable_Cmbt.bin | 3 + .../Human/PlayableCharacter/Playable_Cmbt.fbx | 3 + .../Human/PlayableCharacter/Playable_Cmbt.xml | 379 ++++++++++++++++++ .../PlayableCharacter/Playable_Lightning.bin | 3 + .../PlayableCharacter/Playable_Lightning.fbx | 3 + .../PlayableCharacter/Playable_Protego.bin | 3 + .../PlayableCharacter/Playable_Protego.fbx | 3 + .../Human/PlayableCharacter/Playable_Rct.bin | 3 + .../Human/PlayableCharacter/Playable_Rct.fbx | 3 + .../PlayableCharacter/Playable_Sneak.bin | 3 + .../PlayableCharacter/Playable_Sneak.fbx | 3 + .../PlayableCharacter/Playable_Spawn.bin | 3 + .../PlayableCharacter/Playable_Spawn.fbx | 3 + .../Playable_Spell_Learning.bin | 3 + .../Playable_Spell_Learning.fbx | 3 + Jusin154_Team3D/Editor/Private/Loader.cpp | 80 ++-- Jusin154_Team3D/Engine/Private/Model.cpp | 3 +- Jusin154_Team3D/Engine/Public/Model.h | 2 + 28 files changed, 557 insertions(+), 49 deletions(-) create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.xml create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 29d0c8948..7a96fd8fa 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -1856,8 +1856,8 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region ACTOR - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index a526e4bbf..6039270b7 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -121,6 +121,8 @@ HRESULT CPlayer::Initialize(void* pArg) XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket")); + m_pModelCom->Set_Temp(true); + return S_OK; } @@ -272,13 +274,16 @@ HRESULT CPlayer::Render() { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, false))) { return E_FAIL; } - m_pModelCom->Bind_OutPut_SRV_VS(31, 0); - m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0); + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + if (FAILED(Bind_ShaderParameters(i))) { + return E_FAIL; + } if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; @@ -320,7 +325,7 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType) return E_FAIL; } - m_pModelCom->Bind_OutPut_SRV_VS(31, 0); + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); if (FAILED(m_pModelCom->Render(i))) { @@ -433,7 +438,7 @@ HRESULT CPlayer::Ready_Components() return E_FAIL; } - m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model"); + m_strModelPrototypeTag = TEXT("Prototype_Component_Playable_Model"); /* Com_Model */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, @@ -442,7 +447,7 @@ HRESULT CPlayer::Ready_Components() } /* Com_Shader */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, reinterpret_cast(&m_pShaderCom)))) { return E_FAIL; } @@ -562,6 +567,62 @@ HRESULT CPlayer::Bind_ShaderResources() } return S_OK; } + +HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder) +{ + _bool bUseColorMixer = false; + + _uint iColorParam = { UINT_MAX }; + _float fMixerFactor = { FLT_MAX }; + _uint iColorMixerMethod = { 0 }; + + switch (PLAYER_MESH_ORDER(iMeshOrder)) + { + case PLAYER_MESH_ORDER::HAIR_MAIN: + case PLAYER_MESH_ORDER::HEAD_EYELASH: + case PLAYER_MESH_ORDER::HAIR_SUB: + bUseColorMixer = true; + iColorParam = 0x2E2E2E; + fMixerFactor = 0.9f; + iColorMixerMethod = 1; + break; + case PLAYER_MESH_ORDER::LOWER: + bUseColorMixer = true; + iColorParam = 0x292557; + fMixerFactor = 0.5f; + iColorMixerMethod = 1; + break; + case PLAYER_MESH_ORDER::SHOES: + bUseColorMixer = true; + iColorParam = 0x614242; + fMixerFactor = 0.5f; + iColorMixerMethod = 1; + break; + case PLAYER_MESH_ORDER::UPPER: + bUseColorMixer = true; + iColorParam = 0xBFAC29; + fMixerFactor = 0.658333f; + iColorMixerMethod = 1; + break; + default: + break; + } + if (true == bUseColorMixer) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) { + return E_FAIL; + } + } + return S_OK; +} + void CPlayer::ReLockOnTarget() { m_pInfoInstance->Get_LockOnInfo(m_LockOnInfo); diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 76ba46f3b..1b11bdb83 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -96,6 +96,7 @@ class CPlayer final : public CUnit HRESULT Ready_Components(); HRESULT Ready_Parts(); HRESULT Bind_ShaderResources(); + HRESULT Bind_ShaderParameters(_uint iMeshOrder); void ReLockOnTarget(); void SetGravity(); void Add_SpellEvent(_uint AnimIndex, _float fRatio); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin index 2eebf97fe..403e0054c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ef613dbd6fbb38b9510db9bba84b654c056b37386d2df367ba4b2455d7ea5eeb -size 10432063 +oid sha256:e6ecd489ba85df6cb5c61fba767fdff0bc202c8b36b0459b5195c1bd8322a43f +size 10290646 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.bin new file mode 100644 index 000000000..6d491ba80 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:552a7e673dd5b90f308bc17e429ce5871b8b69c407800fba7c01deee8a4d0fd1 +size 10570937 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.fbx new file mode 100644 index 000000000..ac69afac8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e2e58a126c01b12f8a6e7f16fd1bff734f2cfac8a2a781c27616db44d07e6be +size 6158620 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin new file mode 100644 index 000000000..82d20f449 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45d37a80efc01abf16883a6386324f9180775c227c6ac3be54351330d43c56d1 +size 170896473 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx new file mode 100644 index 000000000..b89f32cd1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f471396193ee00ab3f6e5cfb05671521ce2ec5f2f7658ad01034d075fcbf25d +size 457150268 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin new file mode 100644 index 000000000..dcf9cec67 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65bd1b7aba444dad6e52c4189b668a5b3ac388f2c92d8dbacde6f79552581f90 +size 22917444 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx new file mode 100644 index 000000000..6ba2d37e2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d68ebc089dc66df34e3258a490420e26257a78ea22c4938eb77460e390c2560c +size 53888796 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin new file mode 100644 index 000000000..1e4b15edd --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99855947403e10ea088248ca45a3dab3933b22678cc20ca09d1352c6a4bd0df4 +size 68983780 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx new file mode 100644 index 000000000..a918a2c86 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efe0d8710e5d25ebe687b5d0d5f341757da9ec7e2fc2b3202c6316bbeee1b367 +size 172856076 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.xml new file mode 100644 index 000000000..837220a11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.xml @@ -0,0 +1,379 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin new file mode 100644 index 000000000..e076bc073 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce6c582a267476b868bdb2d2ab121ee8fc66de14c193d61816b9fd7e026f6fc0 +size 10730733 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx new file mode 100644 index 000000000..b7d866ccc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00bf25ba5abdcce10d0ab1afd50f62b5667300a499850c133499e8563e4b3d91 +size 6247020 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin new file mode 100644 index 000000000..a5f036d71 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0596ec615a1f3ab2dc03e0875e7b6a2840c8df3e75326893afaf220b73eb1d00 +size 11478642 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx new file mode 100644 index 000000000..7c1a1471b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e14fce3cf9cdcdc0fab741dc5417ce453057cf19594d4ad56fc5461ba825164b +size 10536764 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin new file mode 100644 index 000000000..1b3fa3e3a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c69e1ec83a75f80f797e8a2970c912ed8c54b7c7e484afe7d6bbcb97c44010c +size 60341885 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx new file mode 100644 index 000000000..eff18e350 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7bf8861475ec0eff44cdf88ae9795e5b13b7dc6c341e057e80feceb3ea384e1 +size 149327452 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin new file mode 100644 index 000000000..400887a4c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cef8d8458de71ab0bd5cd4344879ab5402d36074bab926262cd496a7939f9304 +size 19356151 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx new file mode 100644 index 000000000..211971f2d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c041565fa7b147ce6fdfb89cd3d34e410f5bb971e2f569b91ebdd2972bfea380 +size 38994124 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin new file mode 100644 index 000000000..a96583e9c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13f56a745a91c3c7054387613b0aed0fe7299e157b8570ba3ae9b0844923b3a0 +size 15410052 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx new file mode 100644 index 000000000..316f5b897 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b4a14778bc770f934c888c6dae7377228f1032d584ca318795577557d6a0e66 +size 12808700 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin new file mode 100644 index 000000000..d2949a371 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab8b4150a5940dccab76789aa47f07401e0e0ae4f93d0fc3447faa421d5e563f +size 12127590 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx new file mode 100644 index 000000000..be2dc4bac --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27f8e609b42eb9ad7c32c8d59d67d538f64eac901bc1852b15893ffcf9e37ad9 +size 9075324 diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 9b020a4d4..e298b2b72 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -2632,50 +2632,54 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_GerboldOlivander_Model") )); futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin",XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Playable_Model") )); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_AvadaKedavra_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Bm_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Broom_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Lightning_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Protego_Model") - //)); + //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Rct_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Sneak_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Spawn_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Spell_Learning_Model") + // TEXT("Prototype_Component_Student_Cmbt_Model") //)); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavran.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") + //)); for (auto& job : futures) { pair<_wstring, CModel*>* pResult = job.get(); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 50fb252d2..783dc145d 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -443,7 +443,8 @@ void CModel::Update_RootBone(_float Amount) _vector vDeltaWorld = vRight * dx + (vUp * dz) + (-vLook * dy); - vDeltaWorld *= 0.01f; + if(!m_bTemp) + vDeltaWorld *= 0.01f; vDeltaWorld *= Amount; vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f); diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index fd86ef248..f35f45a51 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -42,6 +42,7 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render(_uint iMeshIndex); virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); MODEL Get_Type() { return m_eType; } + void Set_Temp(_bool Temp) { m_bTemp = Temp; } #pragma endregion #pragma region Animation _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌 @@ -193,6 +194,7 @@ class ENGINE_DLL CModel final : public CComponent _bool m_bRatio = { false }; _bool m_bRootBone = {}; _float4x4 m_RootMatrix = {}; + _bool m_bTemp = {false}; private: