From a80163eb6c623f2de6725ba62e0b9acefad3efba Mon Sep 17 00:00:00 2001 From: Chanbin Kim <127280695+JinhoBa@users.noreply.github.com> Date: Fri, 9 Jan 2026 12:20:01 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20instanceProp=20Data=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20[add]=20=EC=8B=A4=EB=82=B4=EB=A7=B5=20=EC=A0=84?= =?UTF-8?q?=ED=99=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Client/Private/Level_GamePlay.cpp | 9 +++--- Jusin154_Team3D/Client/Private/Loader.cpp | 4 +-- .../Client/Private/MapObject_Render.cpp | 9 ++++-- Jusin154_Team3D/Client/Private/UI_Manager.cpp | 28 ++++++++++++++++++- .../Client/Public/MapObject_Render.h | 2 ++ Jusin154_Team3D/Client/Public/UI_Manager.h | 3 +- .../Map/Instance/ScotsPine_LargeA_HN_AV.bin | 4 +-- .../Map/Instance/ScotsPine_LargeA_HN_AZ.bin | 4 +-- .../Editor/Private/Level_MapViewer.cpp | 5 ++-- 9 files changed, 51 insertions(+), 17 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 0c58a5931..2d8fd06d8 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -296,7 +296,7 @@ HRESULT CLevel_GamePlay::Ready_Background() #ifdef gimch isReady_Background = true; - isReady_Hogsmeade = false; + isReady_Hogsmeade = true; isReady_Hogwart = false; #endif // gimch #ifdef Bin @@ -708,9 +708,9 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) return E_FAIL; - /*Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin"; + Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) - return E_FAIL;*/ + return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) return E_FAIL; @@ -891,7 +891,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) _bool isLoad_RandomNPC = { true }; #ifdef _DEBUG #ifdef gimch - isLoad_RandomNPC = true; + isLoad_NPC = false; + isLoad_RandomNPC = false; #endif // gimch #ifdef 진우 isLoad_RandomNPC = false; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 5a459fbdf..efdfb76ca 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -410,10 +410,10 @@ HRESULT CLoader::Loading_For_GamePlay() #ifdef _DEBUG #ifdef gimch - isLoad_Background = false; + isLoad_Background = true; isLoad_Hogwart = false; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = true; + isLoad_NPC = false; isLoad_DataClassroom = true; #endif // gimch #ifdef 진우 diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp index a993d244c..6a86d72e8 100644 --- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp +++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp @@ -60,6 +60,10 @@ HRESULT CMapObject_Render::Initialize(void* pArg) _matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix); XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]); + + ReadyForPhysX(); + ConvertToPhysX(); + return S_OK; } @@ -168,6 +172,7 @@ void CMapObject_Render::ReadyForPhysX() void CMapObject_Render::ConvertToPhysX() { + XMStoreFloat4x4(&m_IdentityMatrix, XMMatrixIdentity()); if (true == m_bReadyToCreatePhysX) { return; } @@ -179,7 +184,7 @@ void CMapObject_Render::ConvertToPhysX() CModel* pModel = m_pModelComs[iIndexLOD]; _uint iNumMeshes = pModel->Get_NumMeshes(); - + for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex) { _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex); @@ -187,7 +192,7 @@ void CMapObject_Render::ConvertToPhysX() CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {}; Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); Desc.pMeshName = wstrName.c_str(); - Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr(); + Desc.pWorldMatrix = &m_IdentityMatrix; if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) { assert(false); } diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index aa8eb072f..2df6cb8bc 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -14,6 +14,8 @@ #include "Interaction_Key.h" #include "NPCInteraction.h" #include "Broom_TargetGate.h" +#include "Player.h" +#include "Layer.h" CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CUIObject(pDevice, pContext) @@ -302,6 +304,11 @@ void CUI_Manager::Update(_float fTimeDelta) } } + if (m_pGameInstance->Key_Down(DIK_I)) + { + Change_Map(); + } + __super::Update(fTimeDelta); } @@ -485,6 +492,23 @@ void CUI_Manager::Set_Fade() m_bCgangede = true; } +void CUI_Manager::Change_Map() +{ + m_pInfoInstance->Load_DADA_INT(); + m_pGameInstance->Setting_Volumetirc( + 3.f, + 0.01f, + 0.11f, + 1.0f, + 0.f + ); + CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER); + if (nullptr != pLayer) { + CPlayer* pPlayer = pLayer->Get_Object(); + pPlayer->Get_Component()->Set_Position(XMVectorSet(1003.f, 5.f, 1005.f, 1.f)); + } +} + CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext); @@ -527,7 +551,9 @@ void CUI_Manager::Describe_Entity() GUI::Begin("실내맵 전환"); if (GUI::Button("Load_DADA_INT")) - m_pInfoInstance->Load_DADA_INT(); + { + Change_Map(); + } GUI::End(); } diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h index 05b306542..ace3bd001 100644 --- a/Jusin154_Team3D/Client/Public/MapObject_Render.h +++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h @@ -53,6 +53,8 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject vector<_wstring> m_ModelPrototypeTags; vector<_uint> m_ModelPathIndices = {}; + _float4x4 m_IdentityMatrix = {}; + private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index 17132be9e..c76dbd19f 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -41,6 +41,7 @@ class CUI_Manager final : public CUIObject void Add_Manager_Event(_wstring Name, function Event); void Event_Callback(_wstring Name, void* pArg = nullptr); + private: void Add_Canvas(_wstring Name, class CGameObject* pCanvas); CGameObject* Find_Canvas(const _wstring& Name); @@ -48,7 +49,7 @@ class CUI_Manager final : public CUIObject void NpcInteract(_bool bInteract); void Set_Fade(); - + void Change_Map(); private: CInfoInstance* m_pInfoInstance = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin index 58806eee4..d78de6c3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87f6ff8ebaa9df67531a97ec45c80ca0590a9146ed873ff45ededf8ec264dfb6 -size 4804 +oid sha256:989cecc37ca2a0197597d03f4b81107e4dd774c231de778f3f5bc09938df3c39 +size 4740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin index 1cc811817..6e9a0d4d8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e34d3f8b12cdd94bfe1635ef12025f4253def3c3549182ef2884a8a609844c50 -size 6148 +oid sha256:521f10f4713336476254270a8978f4919976e1c9a422c7321610f28a3e1baacc +size 6084 diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index 3b0fba676..144f517ad 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -537,18 +537,17 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) return E_FAIL; - Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) return E_FAIL; - /*Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin"; + Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin"; if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) - return E_FAIL;*/ + return E_FAIL; /* StratifiedCliff_A1 */