[add] 창문, 문 인스턴스 객체로 추가

This commit is contained in:
Chanbin Kim
2025-12-03 20:25:26 +09:00
parent c19756be39
commit 0b9f6d2794
90 changed files with 720 additions and 99 deletions
@@ -3608,4 +3608,82 @@
<Rotation x="0" y="0" z="0"/>
</Collision>
</Container>
<Container Name="HM_Doors">
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_Front_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_Front_Door_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_Front_Door_Lod2</PrototypeTag>
<Position x="41.663696" y="7.0730577" z="100.48561"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="15.000003" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_Door_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_Door_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_Door_A_Lod2</PrototypeTag>
<Position x="48.913731" y="3.8535721" z="64.313408"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="99.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A</PrototypeTag>
<Position x="133.73683" y="14.746075" z="112.0887"/>
<Scale x="1.1999999" y="1.4000001" z="0.99999988"/>
<Rotation x="0" y="99.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Front_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Front_Door_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Front_Door_Lod2</PrototypeTag>
<Position x="131.20894" y="16.3316" z="122.24038"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="80" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod2</PrototypeTag>
<Position x="128.47737" y="16.183664" z="138.78999"/>
<Scale x="1.1" y="1.1" z="1"/>
<Rotation x="0" y="79.999992" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="1" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod2</PrototypeTag>
<Position x="131.47073" y="16.271976" z="133.02818"/>
<Scale x="1.1999999" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="1" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A</PrototypeTag>
<Position x="106.87299" y="15.227801" z="115.30975"/>
<Scale x="1.0999995" y="1" z="0.99999952"/>
<Rotation x="-0" y="-179.99998" z="-0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="1" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A_Frame</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A_Frame_Lod1</PrototypeTag>
<Position x="89.315582" y="15.272012" z="130.85849"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="-0" y="-99.999985" z="-0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="2" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A</PrototypeTag>
<Position x="89.399864" y="15.278326" z="130.8558"/>
<Scale x="0.99999994" y="1" z="0.99999994"/>
<Rotation x="-0" y="-109.99998" z="-0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door_Lod2</PrototypeTag>
<Position x="21.315018" y="0.84228206" z="31.657463"/>
<Scale x="0.99999994" y="1" z="0.99999994"/>
<Rotation x="0" y="109.99998" z="0"/>
</PartObject>
</Container>
</Land>
@@ -30,7 +30,7 @@
<Surface>SRO</Surface>
</Mesh>
</SM_BogMyrtle_A>
<SM_BogCotton_A_Master mesh="1">
<SM_BogCotton_A_Master mesh="1">
<Mesh>
<Material>T_BogCotton_D</Material>
<Material>T_BogCotton_N</Material>
@@ -38,4 +38,102 @@
<Surface>SRO</Surface>
</Mesh>
</SM_BogCotton_A_Master>
<SM_HM_OwlPost_Window_A mesh="3">
<Mesh>
<Material>T_Windows_A_D</Material>
<Material>T_Windows_A_N</Material>
<Material>T_Windows_A_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
<Mesh>
<Material>T_HM_WoodTrimTile_Gray_D</Material>
<Material>T_HM_WoodTrimTile_Edgy_N</Material>
<Material>T_HM_WoodTrimTile_Edgy_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
<Mesh>
<Material>T_HM_Potions_Windows_D</Material>
<Material>T_HM_Potions_Windows_N</Material>
<Material>T_HM_Potions_Windows_MRO</Material>
<Surface>MRO</Surface>
</Mesh>
</SM_HM_OwlPost_Window_A>
<SM_HM_WindowsStyleA_L_Rectangle_Double_A mesh="1">
<Mesh>
<Material>T_Windows_A_D</Material>
<Material>T_Windows_A_N</Material>
<Material>T_Windows_A_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_WindowsStyleA_L_Rectangle_Double_A>
<SM_HM_WindowsStyleC_Retangle_Double_A mesh="1">
<Mesh>
<Material>T_HM_WindowStyleC_D</Material>
<Material>T_HM_WindowStyleC_N</Material>
<Material>T_HM_WindowStyleC_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_WindowsStyleC_Retangle_Double_A>
<SM_HM_Quid_Window_A mesh="1">
<Mesh>
<Material>T_BLDG_QUID_Window_D</Material>
<Material>T_BLDG_QUID_Window_N</Material>
<Material>T_BLDG_QUID_Window_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_Quid_Window_A>
<SM_HM_Ollivanders_Box_Window mesh="1">
<Mesh>
<Material>T_CampA_WoodBeam_Trim_A_D</Material>
<Material>T_CampA_WoodBeam_Trim_A_N</Material>
<Material>T_CampA_WoodBeam_Trim_A_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_Ollivanders_Box_Window>
<SM_HM_WindowsStyleA_L_Square_Double_C mesh="1">
<Mesh>
<Material>T_Windows_A_D</Material>
<Material>T_Windows_A_D</Material>
<Material>T_Windows_A_D</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_WindowsStyleA_L_Square_Double_C>
<SM_HM_WindowsStyleC_L_Double_Single_A mesh="1">
<Mesh>
<Material>T_HM_WindowStyleC_D</Material>
<Material>T_HM_WindowStyleC_N</Material>
<Material>T_HM_WindowStyleC_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_WindowsStyleC_L_Double_Single_A>
<SM_HM_WindowsStyleC_Round_Double_A mesh="2">
<Mesh>
<Material>T_HM_WindowStyleC_D</Material>
<Material>T_HM_WindowStyleC_N</Material>
<Material>T_HM_WindowStyleC_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
<Mesh>
<Material>T_HM_WoodTrimTile_Edgy_D</Material>
<Material>T_HM_WoodTrimTile_Edgy_N</Material>
<Material>T_HM_WoodTrimTile_Edgy_SRO</Material>
<Surface>SRO</Surface>
</Mesh>
</SM_HM_WindowsStyleC_Round_Double_A>
<SM_HM_Door1a mesh="1">
<Mesh>
<Material>T_HM_Door1a_D</Material>
<Material>T_HM_Door1a_N</Material>
<Material>T_HM_Door1a_MRO</Material>
<Surface>MRO</Surface>
</Mesh>
</SM_HM_Door1a>
<SM_HM_Door2b mesh="1">
<Mesh>
<Material>T_HM_Door2b_D</Material>
<Material>T_HM_Door2b_N</Material>
<Material>T_HM_Door2b_MRO</Material>
<Surface>MRO</Surface>
</Mesh>
</SM_HM_Door2b>
</Instance>
@@ -4882,4 +4882,85 @@
<Rotation x="0" y="0" z="0"/>
</Collision>
</Container>
<Container Name="HM_Doors">
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<MapContainerType type="1"/>
<BoundingBox_Min x="-4.7134042" y="-0.049025059" z="-1.398217"/>
<BoundingBox_Max x="6.3309155" y="13.058901" z="9.4858494"/>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_Front_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_Front_Door_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_Front_Door_Lod2</PrototypeTag>
<Position x="41.663696" y="7.0730577" z="100.48561"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="15.000003" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_Door_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_Door_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_Door_A_Lod2</PrototypeTag>
<Position x="48.913731" y="3.8535721" z="64.313408"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="99.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A</PrototypeTag>
<Position x="133.73683" y="14.746075" z="112.0887"/>
<Scale x="1.1999999" y="1.4000001" z="0.99999988"/>
<Rotation x="0" y="99.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Front_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Front_Door_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Front_Door_Lod2</PrototypeTag>
<Position x="131.20894" y="16.3316" z="122.24038"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="80" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod2</PrototypeTag>
<Position x="128.47737" y="16.183664" z="138.78999"/>
<Scale x="1.1" y="1.1" z="1"/>
<Rotation x="0" y="79.999992" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="1" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_DoorB_Lod2</PrototypeTag>
<Position x="131.47073" y="16.271976" z="133.02818"/>
<Scale x="1.1999999" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="1" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A</PrototypeTag>
<Position x="106.87299" y="15.227801" z="115.30975"/>
<Scale x="1.0999995" y="1" z="0.99999952"/>
<Rotation x="-0" y="-179.99998" z="-0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="1" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A_Frame</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A_Frame_Lod1</PrototypeTag>
<Position x="89.315582" y="15.272012" z="130.85849"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="-0" y="-99.999985" z="-0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="2" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_Door_A</PrototypeTag>
<Position x="89.399864" y="15.278326" z="130.8558"/>
<Scale x="0.99999994" y="1" z="0.99999994"/>
<Rotation x="-0" y="-109.99998" z="-0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door_Lod2</PrototypeTag>
<Position x="21.315018" y="0.84228206" z="31.657463"/>
<Scale x="0.99999994" y="1" z="0.99999994"/>
<Rotation x="0" y="109.99998" z="0"/>
</PartObject>
</Container>
</Land>
@@ -66,10 +66,15 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
if (m_bOcclusionPassed)
{
if (m_pOcclusionQueryCom->isDraw())
__super::Late_Update(fTimeDelta);
if(m_fCamDepth > 80.f)
{
if (m_pOcclusionQueryCom->isDraw())
__super::Late_Update(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
}
else
__super::Late_Update(fTimeDelta);
}
else
{
+103 -15
View File
@@ -22,17 +22,19 @@ void CInstancedProp::Update(_float fTimeDelta)
{
if (m_pGameInstance->Mouse_Down(DIM_MBUTTON))
{
m_pVIBufferInstanceCom->Add_Instance(m_pTransformCom->Get_XMWorldMatrix());
_float4x4 WorldMatrix = {};
XMStoreFloat4x4(&WorldMatrix, m_pTransformCom->Get_XMWorldMatrix());
m_WorldMatrices.push_back(WorldMatrix);
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->Random_Float(0.f, 360.f);
_float3 vPosition = {};
if (m_pGameInstance->isPicking(&vPosition))
{
memcpy(&m_vPosition, &vPosition, sizeof(_float3));
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
}
}
#ifdef _DEBUG
@@ -93,6 +95,11 @@ HRESULT CInstancedProp::Initialize(void* pArg)
if(!m_bEditMode)
Load_InstancedProp(pDesc->strInstanceDataPath.c_str());
else
{
m_pVIBufferInstanceCom->Add_Instance(m_pTransformCom->Get_XMWorldMatrix());
m_pVIBufferInstanceCom->Update_Instance();
}
return S_OK;
}
@@ -145,6 +152,8 @@ void CInstancedProp::Add_WorldMatrix()
void CInstancedProp::Load_InstancedProp(const _char* pFilePath)
{
m_pVIBufferInstanceCom->Delete_Instance();
ifstream FileIn(pFilePath, ios::binary);
if (!FileIn.is_open())
@@ -161,9 +170,9 @@ void CInstancedProp::Load_InstancedProp(const _char* pFilePath)
m_WorldMatrices.reserve(iNumWorldMatrix);
_float4x4 WorldMatrix = {};
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
//FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
for (_uint i = 1; i < iNumWorldMatrix; ++i)
for (_uint i = 0; i < iNumWorldMatrix; ++i)
{
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
@@ -178,9 +187,68 @@ void CInstancedProp::Load_InstancedProp(const _char* pFilePath)
return;
}
void CInstancedProp::Patch_Data(const _char* pFilePath)
{
vector<_float4x4> TempWorldMatrices;
ifstream FileIn(pFilePath, ios::binary);
if (!FileIn.is_open())
{
MSG_BOX("Failed to Load InstancedProp File");
return;
}
_uint iNumWorldMatrix = 0;
_uint iNumAdd = 0;
FileIn.read(reinterpret_cast<char*>(&iNumWorldMatrix), sizeof(_uint));
_float4x4 WorldMatrix = {};
for (_uint i = 0; i < iNumWorldMatrix; ++i)
{
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
if (0 == WorldMatrix._41 && 0 == WorldMatrix._42 && 0 == WorldMatrix._43)
continue;
else
{
++iNumAdd;
TempWorldMatrices.push_back(WorldMatrix);
}
}
FileIn.close();
/* Re */
ofstream FileOut(pFilePath, ios::binary);
if (!FileOut.is_open())
{
MSG_BOX("Failed to Save InstancedProp File");
return;
}
else
MSG_BOX("Successed to Save InstancedProp File");
FileOut.write(reinterpret_cast<const char*>(&iNumAdd), sizeof(_uint));
for (_uint i = 0; i < iNumAdd; ++i)
{
FileOut.write(reinterpret_cast<const char*>(&TempWorldMatrices[i]), sizeof(_float4x4));
}
FileOut.close();
}
#ifdef _DEBUG
void CInstancedProp::Save_InstancedProp(const _char* pFilePath)
{
_float4x4 WorldMatrix = {};
XMStoreFloat4x4(&WorldMatrix, m_pTransformCom->Get_XMWorldMatrix());
m_WorldMatrices.push_back(WorldMatrix);
ofstream FileOut(pFilePath, ios::binary);
if (!FileOut.is_open())
@@ -236,6 +304,8 @@ void CInstancedProp::Free()
{
__super::Free();
m_WorldMatrices.clear();
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferInstanceCom);
}
@@ -246,10 +316,17 @@ void CInstancedProp::Describe_Entity()
#ifdef _DEBUG
m_pVIBufferInstanceCom->Describe_Entity();
#endif // _DEBUG
GUI::Text("----- Transfrom ----");
GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f);
GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f);
GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f);
_float3 vMove = {};
ImGui::Text("----- Transfrom ----");
ImGui::InputFloat("Right", &vMove.x, 0.05f, 0.1f);
ImGui::InputFloat("Up", &vMove.y, 0.05f, 0.1f);
ImGui::InputFloat("Look", &vMove.z, 0.05f, 0.1f);
m_pTransformCom->Move_Right(vMove.x);
m_pTransformCom->Move_Up(vMove.y);
m_pTransformCom->Move_Look(vMove.z);
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
{
@@ -257,13 +334,14 @@ void CInstancedProp::Describe_Entity()
if (m_pGameInstance->isPicking(&vPosition))
{
memcpy(&m_vPosition, &vPosition, sizeof(_float3));
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
}
}
GUI::Text("----- Rotation ----");
GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f);
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f);
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f);
GUI::InputFloat("X##Rotation", &m_vRotation.x, 5.f, 45.f);
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 5.f, 45.f);
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 5.f, 45.f);
GUI::Text("----- Scale ----");
GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f);
@@ -275,13 +353,17 @@ void CInstancedProp::Describe_Entity()
m_vScale.z = max(0.01f, m_vScale.z);
m_pTransformCom->Set_Scale(m_vScale);
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
//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)))
{
m_pVIBufferInstanceCom->Delete_Instance();
if(0 != m_WorldMatrices.size())
{
m_pVIBufferInstanceCom->Delete_Instance();
m_WorldMatrices.pop_back();
}
}
GUI::InputText("File Name", m_szFileName, sizeof(m_szFileName));
@@ -295,7 +377,13 @@ void CInstancedProp::Describe_Entity()
{
Load_InstancedProp(("../Bin/Resources/Data/Map/Instance/" + string(m_szFileName) + ".bin").c_str());
}
GUI::Spacing();
GUI::Spacing();
GUI::Spacing();
if(GUI::Button(" !!! Patch !!!"))
{
Patch_Data(("../Bin/Resources/Data/Map/Instance/" + string(m_szFileName) + ".bin").c_str());
}
GUI::End();
}
@@ -129,9 +129,79 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
return E_FAIL;
/* BearBerry */
Desc.bEditMode = true;
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/SM_BearBerry_A.bin";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BearBerry_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* SM_HM_OwlPost_Window_A */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OwlPost_Window.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
///* WA_Rectangle_Double_A */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Rectangle_Double_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
///* WC_Retangle_Double_A */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Retangle_Double_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
///* WA_Square_Double_C */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WA_Square_Double_C.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* Quid_Window_A */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Quid_Window_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* Ollivanders_Box_Window */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Ollivanders_Box.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* WC_L_DoubleS_A */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_L_DoubleS_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* WC_Round_Double_A */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Round_Double_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* SM_HM_Door1a */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door1a.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
/* SM_HM_Door1a */
Desc.bEditMode = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b";
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;
+83 -20
View File
@@ -2254,19 +2254,19 @@ HRESULT CLoader::Loading_For_MapViewer()
// return E_FAIL;
///* BLDG_TeaShop */
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
/*if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes",
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision",
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;*/
///* BLDG_Zonkos */
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_DB_GR */
@@ -2286,12 +2286,12 @@ HRESULT CLoader::Loading_For_MapViewer()
// return E_FAIL;
///* BLDG_Salon */
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
/*if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;*/
///* Hengist_Tree */
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
@@ -2367,12 +2367,15 @@ HRESULT CLoader::Loading_For_MapViewer()
/* Light */
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightPosts",
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;
/* Doors */
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Doors",
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightFixtures",
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
return E_FAIL;
#pragma endregion
@@ -2723,7 +2726,7 @@ vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
InstanceDesc.iNum = 200;
InstanceDesc.iNum = 20;
///* For.Prototype_Component_VIBuffer_Model_Instancel */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"),
@@ -2739,8 +2742,68 @@ vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
/* 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, &InstanceDesc,
"../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
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;
/* For.Prototype_Component_VIBuffer_Box */
@@ -311,32 +311,27 @@ void CMapObject_LOD::Describe_Entity()
if (nullptr == m_pGameInstance)
return;
GUI::Text(CMyTools::ToString(m_ModelPrototypeTags[m_iLodIndex]).c_str());
GUI::InputInt("Lod Level", (_int*)(&m_iLodIndex));
m_iLodIndex = max(0, m_iLodIndex);
m_iLodIndex = min(m_iMaxLodLevel, m_iLodIndex);
GUI::Text("----- Transfrom ----");
GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f);
GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f);
GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f);
_float3 vMove = {};
ImGui::Text("----- Transfrom ----");
ImGui::InputFloat("Right", &vMove.x, 0.05f, 0.1f);
ImGui::InputFloat("Up", &vMove.y, 0.05f, 0.1f);
ImGui::InputFloat("Look", &vMove.z, 0.05f, 0.1f);
m_pTransformCom->Move_Right(vMove.x);
m_pTransformCom->Move_Up(vMove.y);
m_pTransformCom->Move_Look(vMove.z);
XMStoreFloat3(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
{
CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object<CTerrain>();
if (nullptr != pTerrain)
{
pTerrain->Get_Component<CVIBuffer_Terrain>()->Picking(pTerrain->Get_Component<CTransform>()->Get_XMWorldMatrix(), &m_vPosition);
}
}
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LCONTROL))
{
_float3 vPosition = {};
if (m_pGameInstance->isPicking(&vPosition))
{
memcpy(&m_vPosition, &vPosition, sizeof(_float3));
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat3(&m_vPosition));
}
}
GUI::Text("----- Rotation ----");
@@ -57,6 +57,7 @@ class CInstancedProp final : public CGameObject
void Add_WorldMatrix();
void Load_InstancedProp(const _char* pFilePath);
void Patch_Data(const _char* pFilePath);
#ifdef _DEBUG
void Save_InstancedProp(const _char* pFilePath);
+3 -3
View File
@@ -514,7 +514,7 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _
{
for (size_t type = 0; type < 27; type++)
{
for (const auto& path : _SaveMaterial.Path[type])
if(!_SaveMaterial.Path[type].empty())
{
char szDrive[MAX_PATH] = {};
char szDir[MAX_PATH] = {};
@@ -522,7 +522,7 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _
char szFullPath[MAX_PATH] = {};
//(szFullPath, szDrive);
strcpy_s(szFullPath, path.c_str());
strcpy_s(szFullPath, _SaveMaterial.Path[type].front().c_str());
_tchar szPerfectPath[MAX_PATH] = {};
MultiByteToWideChar(CP_ACP, 0, szFullPath, -1, szPerfectPath, MAX_PATH);
@@ -544,7 +544,7 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _
hr = CreateWICTextureFromFile(m_pDevice, szPerfectPath, nullptr, &pSRV);
}
if (FAILED(hr)){
if (FAILED(hr)) {
return E_FAIL;
}
m_SRVs[type].push_back(pSRV);
@@ -7,60 +7,55 @@ COcclusionQuery::COcclusionQuery(ID3D11Device* pDevice, ID3D11DeviceContext* pCo
}
COcclusionQuery::COcclusionQuery(const COcclusionQuery& rhs)
:CComponent(rhs)
:CComponent(rhs), m_iCheckFrame{0}
{
}
void COcclusionQuery::Begin_Query()
{
m_pContext->Begin(m_pQuery[m_iCountFrame]);
if(0 == m_iCheckFrame)
m_pContext->Begin(m_pQuery[0]);
}
_bool COcclusionQuery::isDraw()
{
static int sCheckFrame = 0;
bool bVisible = m_bPreFrameDraw;
if (++sCheckFrame >= 5)
if (++m_iCheckFrame >= 5)
{
sCheckFrame = 0;
UINT64 sampleCount = 0;
UINT64 iSampleCount = 0;
HRESULT hr = m_pContext->GetData(
m_pQuery[m_iGetFrameIndex],
&sampleCount,
m_pQuery[0],
&iSampleCount,
sizeof(UINT64),
D3D11_ASYNC_GETDATA_DONOTFLUSH
);
m_iCheckFrame = 0;
if (hr == S_OK)
{
bVisible = (sampleCount > 0);
bVisible = (iSampleCount > 0);
}
}
if (bVisible)
{
m_iNumCullFrame = 0;
else
return m_bPreFrameDraw;
}
else
{
if (m_iNumCullFrame < 2)
++m_iNumCullFrame;
}
return m_bPreFrameDraw;
m_bPreFrameDraw = bVisible;
return (m_iNumCullFrame < 2);
return bVisible;
}
void COcclusionQuery::End_Query()
{
m_pContext->End(m_pQuery[m_iCountFrame]);
if (0 == m_iCheckFrame)
m_pContext->End(m_pQuery[0]);
m_iGetFrameIndex = (m_iCountFrame + 5 - 1) % 5;
m_iCountFrame = (m_iCountFrame + 1) % 5;
}
HRESULT COcclusionQuery::Initialize_Prototype()
@@ -175,6 +175,33 @@ _vector CTransform::Go_Down(_float fTimeDelta)
return -vMomentum;
}
void CTransform::Move_Look(_float fScala)
{
_vector vPos = Get_State(STATE::POSITION);
_vector vLook = Get_State(STATE::LOOK);
_vector vMomentum = XMVector3Normalize(vLook) * fScala;
vPos += vMomentum;
Set_State(STATE::POSITION, vPos);
}
void CTransform::Move_Up(_float fScala)
{
_vector vPos = Get_State(STATE::POSITION);
_vector vUp = Get_State(STATE::UP);
_vector vMomentum = XMVector3Normalize(vUp) * fScala;
vPos += vMomentum;
Set_State(STATE::POSITION, vPos);
}
void CTransform::Move_Right(_float fScala)
{
_vector vPos = Get_State(STATE::POSITION);
_vector vRight = Get_State(STATE::RIGHT);
_vector vMomentum = XMVector3Normalize(vRight) * fScala;
vPos += vMomentum;
Set_State(STATE::POSITION, vPos);
}
_vector CTransform::Go_LerpStraight(_float fSpeed, _float fTimeDelta)
{
_vector vPos = Get_State(STATE::POSITION);
@@ -460,6 +460,8 @@ void CVIBuffer_Model_Instance::Delete_Instance()
if (0 != m_iCurrentNumInstance)
m_iCurrentNumInstance--;
m_iNumInstance = m_iCurrentNumInstance;
return;
}
@@ -19,11 +19,12 @@ class ENGINE_DLL COcclusionQuery final : public CComponent
private:
ID3D11Query* m_pQuery[5] = {};
_bool m_bPreFrameDraw = {};
_bool m_bPreFrameDraw = { true };
_bool m_bThisFrameDraw = {};
_uint m_iNumCullFrame = {};
_uint m_iCountFrame = {};
_uint m_iGetFrameIndex = {};
_uint m_iCheckFrame = {};
private:
virtual HRESULT Initialize_Prototype() override;
@@ -47,6 +47,9 @@ class ENGINE_DLL CTransform final :
_vector Go_Right(_float fTimeDelta);
_vector Go_Up(_float fTimeDelta);
_vector Go_Down(_float fTimeDelta);
void Move_Look(_float fScala);
void Move_Up(_float fScala);
void Move_Right(_float fScala);
///////////////////////////////////
_vector Go_LerpStraight(_float fSpeed, _float fTimeDelta);
_vector Go_LerpUp(_float fSpeed, _float fTimeDelta);