Merge pull request #406 from SpicyGangjeong/MapTool

Map tool
This commit is contained in:
JinhoBa
2025-12-10 21:11:40 +09:00
committed by GitHub
38 changed files with 229 additions and 14 deletions
@@ -383,14 +383,51 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
return E_FAIL;
/* OakTree_TallA */
Desc.isShake = true;
Desc.vRadius = _float2(0.f, 0.01f);
Desc.isShake = false;
Desc.vRadius = _float2(0.015f, 0.016f);
Desc.vSpeed = _float2(0.01f, 0.1f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_TallA.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/* Shrub_B */
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Shrub_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Shrub_B.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/* BogMyrtle_A */
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.04f);
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;
/* Dogwood_B */
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Dogwood_B.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
/* ScotsPine_LargeA */
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_ScotsPine_LargeA";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
return S_OK;
}
+24
View File
@@ -1903,6 +1903,30 @@ HRESULT CLoader::Loading_For_GamePlay()
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_Shrub_B*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Shrub_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_GenericShrub_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_BogMyrtle_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_Dogwood_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_ScotsPine_LargeA_Master.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
#pragma endregion
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 MiB

@@ -150,4 +150,64 @@
<Surface>SRO</Surface>
</Mesh>
</SM_OakTree_TallA>
<SM_Reeds_A_Master mesh="1">
<Mesh>
<Material>T_Reeds_D</Material>
<Material>T_Reeds_N</Material>
<Material>T_Reeds_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_Reeds_A_Master>
<SM_Reeds_B_Master mesh="1">
<Mesh>
<Material>T_Reeds_D</Material>
<Material>T_Reeds_N</Material>
<Material>T_Reeds_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_Reeds_B_Master>
<SM_GenericShrub_B mesh="1">
<Mesh>
<Material>T_BogMyrtle_Leaves_D</Material>
<Material>T_BogMyrtle_Leaves_N</Material>
<Material>T_BogMyrtle_Leaves_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_GenericShrub_B>
<SM_BogMyrtle_A mesh="1">
<Mesh>
<Material>T_BogMyrtle_Leaves_D</Material>
<Material>T_BogMyrtle_Leaves_N</Material>
<Material>T_BogMyrtle_Leaves_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_BogMyrtle_A>
<SM_Dogwood_B mesh="2">
<Mesh>
<Material>T_Dogwood_Leaves_02_D</Material>
<Material>T_Dogwood_Leaves_02_N</Material>
<Material>T_Dogwood_Leaves_02_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
<Mesh>
<Material>T_Dogwood_Bark_D</Material>
<Material>T_Dogwood_Bark_N</Material>
<Material>T_Dogwood_Bark_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_Dogwood_B>
<SM_ScotsPine_LargeA_Master mesh="2">
<Mesh>
<Material>T_ScotsPine_Branch_D</Material>
<Material>T_ScotsPine_Branch_D</Material>
<Material>T_ScotsPine_Branch_D</Material>
<Surface>SRO</Surface>
</Mesh>
<Mesh>
<Material>T_ScotsPine_Bark_A_D</Material>
<Material>T_ScotsPine_Bark_A_N</Material>
<Material>T_ScotsPine_Bark_A_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_ScotsPine_LargeA_Master>
</Instance>
@@ -30,7 +30,7 @@ void CInstancedProp::Update(_float fTimeDelta)
m_pVIBufferInstanceCom->Add_Instance(m_pTransformCom->Get_XMWorldMatrix());
m_pVIBufferInstanceCom->Update_Instance();
m_vRotation.y = m_pGameInstance->Random_Float(0.f, 360.f);
m_vRotation.y = m_pGameInstance->Real_Random_Float(-360.f, 360.f);
m_vScale.y = m_pGameInstance->Random_Float(0.8f, 1.2f);
_float3 vPosition = {};
@@ -369,7 +369,7 @@ void CInstancedProp::Describe_Entity()
m_pTransformCom->Set_Scale(m_vScale);
//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_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)))
@@ -231,7 +231,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
/* Oak_Tree */
Desc.bEditMode = false;
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vRadius = _float2(0.015f, 0.03f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin";
@@ -330,14 +330,54 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
/* OakTree_TallA */
Desc.bEditMode = false;
Desc.isShake = true;
Desc.vRadius = _float2(0.f, 0.01f);
Desc.vSpeed = _float2(0.01f, 0.1f);
Desc.isShake = false;
Desc.vRadius = _float2(0.01f, 0.01f);
Desc.vSpeed = _float2(0.01f, 0.021f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_TallA.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* Shrub_B */
Desc.bEditMode = false;
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Shrub_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Shrub_B.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* BogMyrtle_A */
Desc.bEditMode = false;
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.04f);
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;
/* Dogwood_B */
Desc.bEditMode = false;
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Dogwood_B.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* ScotsPine_LargeA */
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_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;
return S_OK;
}
+26 -2
View File
@@ -3246,8 +3246,32 @@ if(isLoad_Map)
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,&InstanceDesc,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_Shrub_B*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Shrub_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_GenericShrub_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_BogMyrtle_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_Dogwood_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_ScotsPine_LargeA_Master.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
#pragma endregion // INSTANCE_MODEL
+4 -1
View File
@@ -45,9 +45,12 @@ HRESULT CTerrain::Initialize(void* pArg)
//m_pVIBufferCom->Set_CullingRadius(0.04f);
if(!m_isEdit)
{
m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin");
if (FAILED(m_pVIBufferCom->Load_HeightMap("Hogsmeade_HeightMap.bin")))
return E_FAIL;
}
// Psx 적용할지 안할지
m_bUsePsx = true;