diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index b0de40811..c9acb1d7f 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -44,9 +44,11 @@ HRESULT CEffectPool::Initialize(void* pArg) return E_FAIL; } - if (FAILED(Ready_Effect())) { - return E_FAIL; - } + //if (FAILED(Ready_Effect())) { + // return E_FAIL; + //} + + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 370cccf53..cb225c1a6 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -791,6 +791,8 @@ HRESULT CLoader::Loading_For_GamePlay() { return E_FAIL; } + + //#pragma region UI_ANI // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"), // CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349)))) @@ -1660,83 +1662,83 @@ HRESULT CLoader::Loading_For_GamePlay() } } - -#pragma region MAP_INSTANCE - /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin", - "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin", - "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_OwlPost_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Rectangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Retangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Square_Double_C.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_Quid_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_Ollivanders_Box_Window.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_L_Double_Single_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Round_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; - - /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"), - CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, - "../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) - return E_FAIL; -#pragma endregion - +// +//#pragma region MAP_INSTANCE +// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin", +// "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin", +// "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_OwlPost_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Rectangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Retangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Square_Double_C.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_Quid_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_Ollivanders_Box_Window.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_L_Double_Single_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Round_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +// +// /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/ +// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"), +// CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, +// "../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) +// return E_FAIL; +//#pragma endregion +// /* For.Prototype_Component_VIBuffer_Box */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"), diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 5eaafdb12..97ea4331f 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -174,16 +174,16 @@ HRESULT CTroll::Render() } #ifdef _DEBUG - if (true == m_pCharacter_Controller->IsActive()) { - if (FAILED(m_pCharacter_Controller->Render())) { - return E_FAIL; - } - } - else { - if (FAILED(m_pRigidBody->Render())) { - return E_FAIL; - } - } + //if (true == m_pCharacter_Controller->IsActive()) { + // if (FAILED(m_pCharacter_Controller->Render())) { + // return E_FAIL; + // } + //} + //else { + // if (FAILED(m_pRigidBody->Render())) { + // return E_FAIL; + // } + //} #endif return S_OK; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin index 40d7aa507..34a8f8fe4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:095202f43eb3cb685e4232432b23281a820807754eabad1074ca3ebdcca05e92 +oid sha256:22ba13040b9bd24959b0fd0b1d9f1af6932c5b802964199d6482264fd2cd7a63 size 1027 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle.bin new file mode 100644 index 000000000..b845844bf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:930799fefb3bca8cd3001418a2342fcdc74e35b1975ef54dbd0a129a5551abca +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2.bin new file mode 100644 index 000000000..befeb53ad --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8f9f0d8399e20f3811226000130a5dc004b351195afea93185d568e95bf645a +size 1182 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke.bin new file mode 100644 index 000000000..ea061c68e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6485f8ea045d881466f2da3b6b77b0827dea289c5fe71244f12f5ef9bb41b11 +size 1121 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin new file mode 100644 index 000000000..bea2feaa6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:984611013def232f63103bd6208057f74170eca7e958cd3f9531bca920186992 +size 1125 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke.bin index 80002660d..1a916f96b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:521e487a4a2cf8cbc9738f03b0c7fd6f2a818571fed5da02739fcdeddbae4cbf -size 1071 +oid sha256:fdac73008a58068ff482eb3361bc7a044fff87c43ad129628d0fe4e47c976c10 +size 1121 diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index f26f7d07d..5656290eb 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -420,7 +420,6 @@ void CEditEffect::Describe_Entity() { //여기서 모델, 텍스쳐, 선택할 수 있도록 함 - const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" }; const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" , "PRESHADOW"}; const char* pEffectType[] = { "EFFECT" , "TRAIL" }; @@ -432,6 +431,22 @@ void CEditEffect::Describe_Entity() _int iCurrentBloomType = static_cast<_int>(m_EffectInfo.eBloomType); _int iCurrentPass = static_cast<_int>(m_EffectInfo.eShaderPass); + + GUI::InputTextMultiline("BONE NAME", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25)); + + m_strBoneName = m_szBuffer; + + if(GUI::Button("Stick Bone")) + { + CModel* pModel = m_pOwner->Get_Component(); + + if (pModel != nullptr) + { + FollowParants(pModel->Get_BoneMatrixPtr(m_strBoneName.c_str())); + } + + } + if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END))) { m_EffectInfo.eRenderOrder = static_cast(iCurrentItem); diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index e28214b90..eede58fa7 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -715,9 +715,34 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } #endif // _DEBUG +void CEffectObject::FollowParants(const _float4x4* pParantsMat) +{ + if (pParantsMat == nullptr) + return; + + + m_pPerentMatrix = pParantsMat; + m_bVisible = true; +} + + HRESULT CEffectObject::Bind_ShaderResources() { + if (m_pPerentMatrix != nullptr) + { + + _matrix socketMatrix = XMLoadFloat4x4(m_pPerentMatrix); + + for (int i = 0; i < 3; ++i) { + socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]); + } + socketMatrix = socketMatrix * m_pParentTransformCom->Get_XMWorldMatrix(); + + m_pTransformCom->Set_State(STATE::POSITION, socketMatrix.r[3]); + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Goblin.cpp b/Jusin154_Team3D/Editor/Private/Goblin.cpp index e3cba447f..773e4fe8c 100644 --- a/Jusin154_Team3D/Editor/Private/Goblin.cpp +++ b/Jusin154_Team3D/Editor/Private/Goblin.cpp @@ -2,6 +2,7 @@ #include "Goblin.h" #include "GameInstance.h" +#include "EditEffect.h" #pragma region STATE #include "State_Idle.h" @@ -36,6 +37,9 @@ HRESULT CGoblin::Initialize(void* pArg) if (FAILED(Ready_Components())) return E_FAIL; + if (FAILED(Ready_Parts())) + return E_FAIL; + Add_FSM(); Set_Anim(); @@ -61,11 +65,15 @@ HRESULT CGoblin::Initialize(void* pArg) void CGoblin::Priority_Update(_float fTimeDelta) { + __super::Priority_Update(fTimeDelta); + m_pTransformCom->RewindMomentum(); } void CGoblin::Update(_float fTimeDelta) { + __super::Update(fTimeDelta); + m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); @@ -169,6 +177,50 @@ HRESULT CGoblin::Ready_Components() return S_OK; } +HRESULT CGoblin::Ready_Parts() +{ +#pragma region EFFECT + /* EFFECT */ + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + + if (FAILED(Add_PartObject("Goblin_Particle", ENUM_CLASS(LEVEL::EFFECT), &m_pTroll_Particle, &PartsDesc))) + { + return E_FAIL; + } + + m_pTroll_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast(NEXT_LEVEL)); + m_pTroll_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder")); + + + + if (FAILED(Add_PartObject("Goblin_Particle2", ENUM_CLASS(LEVEL::EFFECT), &m_pTroll_Particle2, &PartsDesc))) + { + return E_FAIL; + } + + m_pTroll_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast(NEXT_LEVEL)); + m_pTroll_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder")); + + + if (FAILED(Add_PartObject("Goblin_Smoke", ENUM_CLASS(LEVEL::EFFECT), &m_pRight_Smoke, &PartsDesc))) + { + return E_FAIL; + } + + m_pRight_Smoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast(NEXT_LEVEL)); + m_pRight_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2")); + + +#pragma endregion + return S_OK; +} + + HRESULT CGoblin::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -226,8 +278,37 @@ void CGoblin::Free() SAFE_RELEASE(m_pRigidBody); Safe_Delete(m_pCallBack_Behavior); Safe_Delete(m_pCallBack_HitReport); + + SAFE_RELEASE(m_pTroll_Particle); + SAFE_RELEASE(m_pTroll_Particle2); + SAFE_RELEASE(m_pRight_Smoke); + SAFE_RELEASE(m_pLeft_Smoke); } void CGoblin::Describe_Entity() { + for (auto& pComponent : m_Components) + { + if (GUI::TreeNode(typeid(*pComponent).name())) + { + pComponent->Describe_Entity(); + + GUI::TreePop(); + } + } + + _uint iIndex = {}; + + for (auto& pParts : m_PartObjects) + { + _string strName = to_string(iIndex++) + " : " + typeid(*pParts.second).name(); + + if (GUI::TreeNode(strName.c_str())) + { + pParts.second->Describe_Entity(); + + GUI::TreePop(); + } + } + } diff --git a/Jusin154_Team3D/Editor/Private/Monster.cpp b/Jusin154_Team3D/Editor/Private/Monster.cpp index 0c427ed3f..298c7410b 100644 --- a/Jusin154_Team3D/Editor/Private/Monster.cpp +++ b/Jusin154_Team3D/Editor/Private/Monster.cpp @@ -32,16 +32,17 @@ HRESULT CMonster::Initialize(void* pArg) void CMonster::Priority_Update(_float fTimeDelta) { - + __super::Priority_Update(fTimeDelta); } void CMonster::Update(_float fTimeDelta) { - + __super::Update(fTimeDelta); } void CMonster::Late_Update(_float fTimeDelta) { + __super::Late_Update(fTimeDelta); //m_fTargetDistance = m_pTransformCom->TargetDis(m_pPlayerTransform->Get_State(STATE::POSITION)); } diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index 80f3c608d..bfe1a3dc6 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -34,6 +34,8 @@ class CEditEffect final : public CEffectObject virtual HRESULT Ready_Components(void* pArg) override; private: + _char m_szBuffer[MAX_PATH] = {}; + _string m_strBoneName = {}; _int m_iSelectTextureNum = {}; vector<_float> m_ValueVector = {}; _float m_fInputValue = {}; diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 797585188..95212d7bc 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -249,6 +249,7 @@ class CEffectObject abstract : public CPartObject public: HRESULT Load(const _char* pFilePath, LEVEL eLevel); HRESULT Load(); + void FollowParants(const _float4x4* pParantsMat); public: #ifdef _DEBUG HRESULT LoadPre(const _char* pFilePath, LEVEL eLevel); @@ -274,7 +275,7 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; - + const _float4x4* m_pPerentMatrix = { nullptr }; protected: EFFECT_INFO m_EffectInfo = {}; _string m_strDiffuseName = {}; diff --git a/Jusin154_Team3D/Editor/Public/Goblin.h b/Jusin154_Team3D/Editor/Public/Goblin.h index db5bf848d..82b101400 100644 --- a/Jusin154_Team3D/Editor/Public/Goblin.h +++ b/Jusin154_Team3D/Editor/Public/Goblin.h @@ -29,10 +29,15 @@ class CGoblin final : public CMonster CCharacter_Controller* m_pCharacter_Controller = { nullptr }; CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + class CEditEffect* m_pRight_Smoke = { nullptr }; + class CEditEffect* m_pLeft_Smoke = { nullptr }; + class CEditEffect* m_pTroll_Particle = { nullptr }; + class CEditEffect* m_pTroll_Particle2 = { nullptr }; + private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); - + HRESULT Ready_Parts(); public: static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; diff --git a/Jusin154_Team3D/Engine/Private/Layer.cpp b/Jusin154_Team3D/Engine/Private/Layer.cpp index d86f8b659..482688e38 100644 --- a/Jusin154_Team3D/Engine/Private/Layer.cpp +++ b/Jusin154_Team3D/Engine/Private/Layer.cpp @@ -118,9 +118,24 @@ void CLayer::Describe_Entity() GUI::PushID(iter); if (GUI::SmallButton((to_string(iIndex) + " : " + typeid(*iter).name()).c_str())) { m_pGameInstance->Force_CamPosition(iter->Get_WorldPostion() - XMVectorSet(0.f, -1.f, 1.f, 0.f) * 10.f); + + /* 클릭시 타겟으로 설정함 */ + m_pTargetObject = iter; + } iIndex++; GUI::PopID(); } + + /* 클릭한 객체의 컴포넌트 디스크립션을 부른다.*/ + if (m_pTargetObject != nullptr) + { + if(GUI::TreeNode(typeid(*m_pTargetObject).name())) + { + m_pTargetObject->Describe_Entity(); + + GUI::TreePop(); + } + } } #endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Public/Layer.h b/Jusin154_Team3D/Engine/Public/Layer.h index cb6ea67c4..9d77aeb29 100644 --- a/Jusin154_Team3D/Engine/Public/Layer.h +++ b/Jusin154_Team3D/Engine/Public/Layer.h @@ -36,6 +36,11 @@ class ENGINE_DLL CLayer final : public CBase private: class CGameInstance* m_pGameInstance = { nullptr }; list m_ObjectList; + +#ifdef _DEBUG +private: + class CGameObject* m_pTargetObject = { nullptr }; +#endif private: HRESULT Initialize();