[add] Hogwart Instance Porps

This commit is contained in:
Chanbin Kim
2026-01-08 23:04:47 +09:00
parent d0ff687b74
commit 13f1aad68b
40 changed files with 334 additions and 13 deletions
@@ -554,6 +554,11 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) {
return E_FAIL;
}
Desc.isShake = false;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) {
return E_FAIL;
}
/* BearBerry */
Desc.isShake = true;
@@ -673,6 +678,10 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.isShake = false;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
@@ -696,6 +705,74 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/*Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;*/
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/* StratifiedCliff_A1 */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.f, 0.f);
Desc.vSpeed = _float2(0.f, 0.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BC.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AZ.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AV.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AW.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/* StratifiedRock_B */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.f, 0.f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AZ.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AW.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/* StratifiedRock_D_B */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.f, 0.f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
+39
View File
@@ -3388,6 +3388,45 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1*/
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedCliff_A1_Lod1.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B*/
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedRock_B.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B*/
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedRock_D_B.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_LightPost */
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
@@ -252,4 +252,34 @@
<Surface>MRO</Surface>
</Mesh>
</SM_HW_LightFixture_Base_D>
<SM_OL_StratifiedCliff_A1_Lod1 mesh="2">
<Mesh>
<Material>T_OL_StratifiedCliff_A1_01_D</Material>
<Material>T_OL_StratifiedCliff_A1_01_N</Material>
<Material>T_OL_StratifiedCliff_A1_01_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
<Mesh>
<Material>T_OL_StratifiedCliff_A1_02_D</Material>
<Material>T_OL_StratifiedCliff_A1_02_N</Material>
<Material>T_OL_StratifiedCliff_A1_02_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_OL_StratifiedCliff_A1_Lod1>
<SM_OL_StratifiedRock_B mesh="1">
<Mesh>
<Material>T_OL_StratifiedRock_B1_D</Material>
<Material>T_OL_StratifiedRock_B1_N</Material>
<Material>T_OL_StratifiedRock_B1_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_OL_StratifiedRock_B>
<SM_OL_StratifiedRock_D_B mesh="1">
<Mesh>
<Material>T_OL_StratifiedRock_D1_D</Material>
<Material>T_OL_StratifiedRock_D1_N</Material>
<Material>T_OL_StratifiedRock_D1_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_OL_StratifiedRock_D_B>
</Instance>
@@ -23,6 +23,8 @@ void CInstancedProp::Update(_float fTimeDelta)
{
if (m_pGameInstance->Mouse_Down(DIM_MBUTTON))
{
++m_iInstanceIndex;
++m_iNumInstanceIndex;
_float4x4 WorldMatrix = {};
XMStoreFloat4x4(&WorldMatrix, m_pTransformCom->Get_XMWorldMatrix());
m_WorldMatrices.push_back(WorldMatrix);
@@ -93,6 +95,8 @@ HRESULT CInstancedProp::Initialize(void* pArg)
m_isShake = pDesc->isShake;
m_strPrototypeTag = pDesc->strPrototypeTag;
m_iInstanceIndex = 0;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
@@ -331,10 +335,14 @@ void CInstancedProp::Describe_Entity()
#endif // _DEBUG
_float3 vMove = {};
GUI::InputInt("Index", (_int*) (&m_iInstanceIndex));
m_iInstanceIndex = min(m_iInstanceIndex, m_iNumInstanceIndex);
GUI::Text("----- Transfrom ----");
GUI::InputFloat("Right", &vMove.x, 0.05f, 0.1f);
GUI::InputFloat("Up", &vMove.y, 0.05f, 0.1f);
GUI::InputFloat("Look", &vMove.z, 0.05f, 0.1f);
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);
m_pTransformCom->Move_Right(vMove.x);
m_pTransformCom->Move_Up(vMove.y);
@@ -369,7 +377,9 @@ void CInstancedProp::Describe_Entity()
//m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
m_pVIBufferInstanceCom->Fix_Instance(m_pTransformCom->Get_XMWorldMatrix());
if (GUI::Button("Delete", ImVec2(150.f, 30.f)))
{
if(0 != m_WorldMatrices.size())
@@ -68,9 +68,9 @@ HRESULT CLevel_MapViewer::Initialize()
return E_FAIL;
}
//if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
// return E_FAIL;
//}
if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
return E_FAIL;
}
//if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) {
// return E_FAIL;
@@ -382,6 +382,11 @@ 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;
Desc.isShake = false;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* BearBerry */
Desc.bEditMode = false;
Desc.isShake = true;
@@ -499,6 +504,12 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.isShake = false;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
@@ -515,14 +526,88 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
/* ScotsPine_LargeA */
Desc.bEditMode = false;
Desc.isShake = false;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.vRadius = _float2(0.f, 0.f);
Desc.vSpeed = _float2(0.f, 0.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(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<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/*Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(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<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;*/
/* StratifiedCliff_A1 */
Desc.bEditMode = false;
Desc.isShake = false;
Desc.vRadius = _float2(0.f, 0.f);
Desc.vSpeed = _float2(0.f, 0.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BC.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AZ.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AV.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AW.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* StratifiedRock_B */
Desc.bEditMode = false;
Desc.isShake = false;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AZ.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AW.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* StratifiedRock_D_B */
Desc.bEditMode = false;
Desc.isShake = false;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_HN_BB.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
/* LightPost */
LightDesc.bEditMode = false;
@@ -557,6 +642,8 @@ CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
// return E_FAIL;
return S_OK;
}
+19 -1
View File
@@ -3901,7 +3901,7 @@ if(isLoad_Map)
#pragma region INSTANCE_MODEL
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
InstanceDesc.iNum = 20;
InstanceDesc.iNum = 200;
///* For.Prototype_Component_VIBuffer_Model_Instancel */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"),
@@ -4029,6 +4029,24 @@ if(isLoad_Map)
"../Bin/Resources/Models/InstanceProp/SM_HW_LightFixture_Base_D.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1 */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedCliff_A1_Lod1.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedRock_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedRock_D_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
#pragma endregion // INSTANCE_MODEL
/* For.Prototype_Component_VIBuffer_Box */
@@ -98,10 +98,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
#pragma endregion
#pragma region HOGWART
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
/*if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
return E_FAIL;
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
return E_FAIL;
return E_FAIL;*/
#pragma endregion
@@ -38,6 +38,10 @@ class CInstancedProp final : public CGameObject
private:
_bool m_bEditMode = {};
_bool m_isShake = {};
_uint m_iInstanceIndex = {};
_uint m_iNumInstanceIndex = {};
CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
@@ -59,6 +59,8 @@ class CInstancedProp_Light final : public CGameObject
CTexture* m_pMaskTextureCom = { nullptr };
CTexture* m_pEmissiveTextureCom = { nullptr };
#ifdef _DEBUG
_uint m_iInstanceIndex = {};
_uint m_iNumInstanceIndex = {};
_char m_szFileName[MAX_PATH] = {};
#endif // _DEBUG
@@ -250,7 +250,7 @@ HRESULT CVIBuffer_Model_Instance::Load_InstanceData(ifstream& in)
VTX_INSTANCE_MODEL* pData = static_cast<VTX_INSTANCE_MODEL*>(SubResource.pData);
for (_uint i = 0; i < m_iNumInstance; ++i)
for (_uint i = 0; i < m_iNumInstance - 1; ++i)
{
in.read(reinterpret_cast<_char*>(&pData[i]), sizeof(VTX_INSTANCE_MODEL));
}