diff --git a/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp b/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp index 4067e0a07..1ee99e584 100644 --- a/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp +++ b/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp @@ -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()->Get_WorldPostion()); + m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_CAMERA)->Get_Object()->Get_WorldPostion()); } void CDummySkyBox::Late_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp index 4e5f9e1ec..589c479d3 100644 --- a/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp @@ -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(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + { CDummy_Globe::GLOBE_DESC Desc{}; Desc.wstrKey = TEXT("Desc_Globe2"); diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 91d36ac98..1cca3dfba 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -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 ModelPrototypePath = {}; @@ -1044,6 +1045,10 @@ HRESULT CLoader::Loading_For_Bloom() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(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*> 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; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Struct.h b/Jusin154_Team3D/Editor/Public/Editor_Struct.h index 0e82f879d..a852a7670 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Struct.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Struct.h @@ -35,7 +35,8 @@ typedef struct tagFolderLoad { CModel* pLoadedModel; filesystem::path pathModel; - vector pRigidBodyTags; + _bool bLoadTags; + vector<_wstring> pRigidBodyTags; vector LoadedRigidBody; }FOLDER_LOAD;