[fix] 문 컬링 버그 수정

[add] 문 추가 배치
[add] Npc 추가 배치
This commit is contained in:
Chanbin Kim
2026-01-13 14:48:02 +09:00
parent 8ec65e09af
commit 1bb62d04af
28 changed files with 117 additions and 104 deletions
@@ -524,70 +524,6 @@ HRESULT CBroomRaceManager::Load_RaceRing()
HRESULT CBroomRaceManager::Load_Balloons()
{
//tinyxml2::XMLDocument xmlDoc;
//string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
//if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
// return E_FAIL;
// Desc.pBroomRaceManager = this;
// /* Transform */
// auto* Rotation = Object->FirstChildElement("Scale");
// Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
// Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
// Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
// auto* Scale = Object->FirstChildElement("Rotation");
// Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
// Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
// Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
// auto* Position = Object->FirstChildElement("Position");
// Position->QueryFloatAttribute("x", &Desc.vPosition.x);
// Position->QueryFloatAttribute("y", &Desc.vPosition.y);
// Position->QueryFloatAttribute("z", &Desc.vPosition.z);
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
// return E_FAIL;
//}
//tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon");
//if (nullptr == root)
//{
// MSG_BOX("Failed to Find root");
// return S_OK;
//}
//for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
//{
// CMapElement_Balloon::BALLOON_DESC Desc = {};
// auto* Value = Object->FirstChildElement("Value");
// Value->QueryBoolAttribute("isFloating", &Desc.isFloating);
// Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex);
// /* Transform */
// auto* Rotation = Object->FirstChildElement("Scale");
// Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
// Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
// Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
// auto* Scale = Object->FirstChildElement("Rotation");
// Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
// Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
// Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
// auto* Position = Object->FirstChildElement("Position");
// Position->QueryFloatAttribute("x", &Desc.vPosition.x);
// Position->QueryFloatAttribute("y", &Desc.vPosition.y);
// Position->QueryFloatAttribute("z", &Desc.vPosition.z);
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Balloon>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
// return E_FAIL;
//}
tinyxml2::XMLDocument xmlDoc;
string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
@@ -370,8 +370,6 @@ HRESULT CLevel_GamePlay::Ready_Background()
#endif //
#endif // _DEBUG
/* Map Containters */
if (false == isReady_Background)
{
@@ -716,6 +714,14 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
return E_FAIL;
/* TeaShop_Door_A */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Teashop_Door.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
return E_FAIL;
/* OakTree_TallA */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
+22
View File
@@ -566,6 +566,15 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_UI_SEQUANTIAL = false;
#endif // Bin
#endif // _DEBUG
#ifndef _DEBUG
#ifdef gimch
isLoad_Background = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = true;
isLoad_DataClassroom = false;
#endif // gimch
#endif //
#pragma region MAP_MODELS
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
@@ -3563,6 +3572,19 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A*/
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
@@ -62,6 +62,7 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
ReadyForPhysX();
ConvertToPhysX();
return S_OK;
}
+1 -1
View File
@@ -32,7 +32,7 @@ HRESULT CTerrain::Initialize(void* pArg)
return E_FAIL;
}
m_fUsingSurfaceParams = 15.f / 27.f;
m_fUsingSurfaceParams = SRO_PARAMETER;
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
{
@@ -65,7 +65,6 @@ HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
_float3 vScale = { Desc.fRadius, Desc.fRadius, Desc.fRadius };
m_pTransformCom->Set_Scale(vScale);
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
return S_OK;
}
@@ -86,8 +86,10 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(false);
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(true);
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(true);
//static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
break;
case UI_STATE::SPELL:
@@ -39,9 +39,7 @@ class CTroll_Rush final : public CEffect_Container
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -3828,9 +3828,9 @@
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<MapContainerType type="0"/>
<BoundingBox_Min x="20.465057" y="1.3057871" z="30.564905"/>
<BoundingBox_Max x="134.30069" y="18.276127" z="138.82135"/>
<MapContainerType type="1"/>
<BoundingBox_Min x="-999" y="-999" z="-999"/>
<BoundingBox_Max x="999" y="999" z="999"/>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door_Lod1</PrototypeTag>
@@ -312,4 +312,24 @@
<Surface>MRO</Surface>
</Mesh>
</SK_BRR_RouteMarker>
<SM_HM_BLDG_TeaShop_Door_A mesh="3">
<Mesh>
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_D</Material>
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_N</Material>
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_MRO</Material>
<Surface>MRO</Surface>
</Mesh>
<Mesh>
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_D</Material>
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_N</Material>
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_MRO</Material>
<Surface>MRO</Surface>
</Mesh>
<Mesh>
<Material>T_HM_BLDG_TeaShop_Door_A_D</Material>
<Material>T_HM_BLDG_TeaShop_Door_A_N</Material>
<Material>T_HM_BLDG_TeaShop_Door_A_MRO</Material>
<Surface>MRO</Surface>
</Mesh>
</SM_HM_BLDG_TeaShop_Door_A>
</Instance>
@@ -31,7 +31,7 @@
<Rotation x="0" y="315" z="0"/>
</Object>
<Object ID="9" Index="6">
<Position x="35.15633" y="1.5198594" z="50.624886"/>
<Position x="35.15633" y="1.598594" z="50.624886"/>
<Scale x="0.99999732" y="1" z="0.99999732"/>
<Rotation x="0" y="120" z="0"/>
</Object>
@@ -50,4 +50,14 @@
<Scale x="0.99980307" y="1" z="0.99980307"/>
<Rotation x="0" y="210" z="0"/>
</Object>
<Object ID="14" Index="10">
<Position x="113.73" y="13.5" z="96.3"/>
<Scale x="0.99980307" y="1" z="0.99980307"/>
<Rotation x="0" y="-74" z="0"/>
</Object>
<Object ID="15" Index="11">
<Position x="123.5" y="16.4" z="117.7"/>
<Scale x="0.99980307" y="1" z="0.99980307"/>
<Rotation x="0" y="-27" z="0"/>
</Object>
</NPC>
@@ -67,12 +67,12 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
for (auto& pCollisiton : m_ColiisonPartObjects)
pCollisiton->Late_Update(fTimeDelta);
if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldExtentPosition), 1.f), m_fMaxRadius)) {
// if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldExtentPosition), 1.f), m_fMaxRadius)) {
if (m_bOcclusionPassed)
{
if (m_fCamDepth > 100.f)
{
if (m_pOcclusionQueryCom->isDraw())
// if (m_pOcclusionQueryCom->isDraw())
__super::Late_Update(fTimeDelta);
}
else
@@ -85,7 +85,7 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
// }
}
@@ -340,9 +340,9 @@ void CInstancedProp::Describe_Entity()
m_iInstanceIndex = min(m_iInstanceIndex, m_iNumInstanceIndex);
GUI::Text("----- Transfrom ----");
GUI::InputFloat("Right", &vMove.x, 0.1f, 5.f);
GUI::InputFloat("Up", &vMove.y, 0.1f, 5.f);
GUI::InputFloat("Look", &vMove.z, 0.1f, 5.f);
GUI::InputFloat("Right", &vMove.x, 0.01f, 1.f);
GUI::InputFloat("Up", &vMove.y, 0.01f, 1.f);
GUI::InputFloat("Look", &vMove.z, 0.01f, 1.f);
m_pTransformCom->Move_Right(vMove.x);
m_pTransformCom->Move_Up(vMove.y);
@@ -139,8 +139,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
return E_FAIL;
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
// return E_FAIL;
return S_OK;
}
@@ -479,6 +479,14 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* TeaShop_Door_A */
Desc.bEditMode = false;
Desc.isShake = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* OakTree_TallA */
Desc.bEditMode = false;
Desc.isShake = false;
+10 -3
View File
@@ -4193,7 +4193,7 @@ if(isLoad_Map)
#pragma region INSTANCE_MODEL
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
InstanceDesc.iNum = 50;
InstanceDesc.iNum = 5;
///* For.Prototype_Component_VIBuffer_Model_Instancel */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"),
@@ -4354,9 +4354,16 @@ if(isLoad_Map)
/* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, &InstanceDesc,
"../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
#pragma endregion // INSTANCE_MODEL
/* For.Prototype_Component_VIBuffer_Box */
@@ -57,6 +57,10 @@ HRESULT CMapElement_Door::Initialize(void* pArg)
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);*/
_float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
_matrix OffsetMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * m_pTransformCom->Get_XMWorldMatrix();
XMStoreFloat4(&m_vExtentPosition, OffsetMatrix.r[3]);
return S_OK;
}
@@ -84,7 +88,7 @@ void CMapElement_Door::Late_Update(_float fTimeDelta)
Describe_Entity();
#endif
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
if (m_pGameInstance->IsIn_WorldFrustum(XMLoadFloat4(&m_vExtentPosition), m_pModelComs[0]->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
}
@@ -75,17 +75,17 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
/*if (FAILED(Load_LightObject("LightElement")))
return E_FAIL;*/
//
//if (FAILED(Load_InteractObject("E_INTER_Barrel")))
// return E_FAIL;
//if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
// return E_FAIL;
//if (FAILED(Load_InteractObject("E_INTER_PostPackage_F")))
// return E_FAIL;
//if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
// return E_FAIL;
//if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
// return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_Barrel")))
return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_PostPackage_F")))
return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
return E_FAIL;
#pragma region HOGSMEADE
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
@@ -40,7 +40,7 @@ class CMapElement_Door final : public CMapElement
_float m_fMass = {};
_float3 m_vBoxSize = {};
#endif // _DEBUG
_float4 m_vExtentPosition = {};
private:
virtual HRESULT Initialize_Prototype() override;