Merge pull request #184 from SpicyGangjeong/Develope

follow
This commit is contained in:
JinhoBa
2025-11-21 16:43:16 +09:00
committed by GitHub
4 changed files with 33 additions and 11 deletions
@@ -40,7 +40,7 @@ void CDummySkyBox::Priority_Update(_float fTimeDelta)
void CDummySkyBox::Update(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_CAMERA)->Get_Object<CCamera_Gaze>()->Get_WorldPostion());
m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_CAMERA)->Get_Object<CDebugCamera>()->Get_WorldPostion());
}
void CDummySkyBox::Late_Update(_float fTimeDelta)
@@ -47,6 +47,15 @@ HRESULT CLevel_BloomViewer::Initialize()
}
}
{
CDummy_Globe::GLOBE_DESC Desc{};
Desc.wstrKey = TEXT("Desc_Globe2");
Desc.vPos = { 6.f, 0.f, 0.f };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_Globe>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
return E_FAIL;
}
}
{
CDummy_Globe::GLOBE_DESC Desc{};
Desc.wstrKey = TEXT("Desc_Globe2");
+21 -9
View File
@@ -1025,16 +1025,17 @@ HRESULT CLoader::Loading_For_Bloom()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe"),
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe"), // RG DDS NormalMap
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe2"),
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe2"), // RGB DDS NormalMap
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){
return E_FAIL;
}
vector<_wstring> ModelPrototypeTags = {};
vector<filesystem::path> ModelPrototypePath = {};
@@ -1044,6 +1045,10 @@ HRESULT CLoader::Loading_For_Bloom()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CHair>(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext)))){
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_Globe>(g_iStaticLevel, CDummy_Globe::Create(m_pDevice, m_pContext)))){
return E_FAIL;
}
@@ -1155,6 +1160,7 @@ void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContex
if (strcmp(file.path().extension().string().c_str(), pFileExt)) { continue; }
FOLDER_LOAD* pContents = new FOLDER_LOAD;
pContents->bLoadTags = bUseTag;
{ // FOLDER_LOAD
_char szFilePath[MAX_PATH] = {};
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
@@ -1166,8 +1172,12 @@ void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContex
_uint iNumMesh = pModel->Get_NumMeshes();
{
pContents->pModelTag = wstrFileName;
pContents->pathModel = file.path();
if (true == bUseTag)
{
pContents->pModelTag = wstrFileName;
pContents->pathModel = file.path();
}
pContents->pLoadedModel = pModel;
pContents->pRigidBodyTags.reserve(iNumMesh);
@@ -1631,19 +1641,19 @@ vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
{ /* Terrain */
jobFutures.emplace_back(Deferred_FolderLoad(
"C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
".fbx", false,
".bin", false,
&Contents[jobFutures.size()]
));
jobFutures.emplace_back(Deferred_FolderLoad(
"C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain",
".fbx", false,
".bin", false,
&Contents[jobFutures.size()]
));
}
{ /* TScrolls */
jobFutures.emplace_back(Deferred_FolderLoad(
"C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes",
".fbx", false,
".bin", false,
&Contents[jobFutures.size()]
));
jobFutures.emplace_back(Deferred_FolderLoad(
@@ -1914,8 +1924,10 @@ for (auto& jobFuture : jobFutures)
for (_uint i = 0; i < Contents.size(); ++i) {
for (_uint j = 0; j < (Contents[i])->size(); ++j) {
FOLDER_LOAD* pContents = (*Contents[i])[j];
ModelPrototypeTags.push_back(pContents->pModelTag);
ModelPrototypePath.push_back(pContents->pathModel);
if (true == pContents->bLoadTags) {
ModelPrototypeTags.push_back(pContents->pModelTag);
ModelPrototypePath.push_back(pContents->pathModel);
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
return E_FAIL;
@@ -35,7 +35,8 @@ typedef struct tagFolderLoad {
CModel* pLoadedModel;
filesystem::path pathModel;
vector<const _tchar*> pRigidBodyTags;
_bool bLoadTags;
vector<_wstring> pRigidBodyTags;
vector<CRigidBody_Static*> LoadedRigidBody;
}FOLDER_LOAD;