[merge commit]
This commit is contained in:
@@ -151,6 +151,7 @@
|
||||
#include "Broom_Record.h"
|
||||
#include "Broom_Exit.h"
|
||||
#include "Broom_Trophy.h"
|
||||
#include "Broom_TargetGate2D.h"
|
||||
|
||||
#include "Ride_Panel.h"
|
||||
#include "Ride_Info_Key.h"
|
||||
@@ -190,6 +191,7 @@
|
||||
#include "DecendoSide.h"
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "AccioSide.h"
|
||||
#include "TransformationSide.h"
|
||||
#include "AvadakedavraSide.h"
|
||||
|
||||
@@ -244,6 +246,7 @@
|
||||
#include "Barral_Splesh.h"
|
||||
#include "Screen_Wind.h"
|
||||
#include "Stupefy.h"
|
||||
#include "StupefySide.h"
|
||||
#include "Lightning.h"
|
||||
#include "LightningSide.h"
|
||||
#include "Transformation.h"
|
||||
@@ -272,6 +275,7 @@
|
||||
#include "MapElement_Static.h"
|
||||
#include "WorldDecal.h"
|
||||
#include "PointLight.h"
|
||||
#include "MapElement_Balloon.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -373,6 +377,55 @@ HRESULT CLoader::Loading_For_Logo()
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
#if 진우
|
||||
#pragma region SHADER
|
||||
vector<future<pair<_wstring, CShader*>*>> jobMapShaders;
|
||||
|
||||
{
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_UIEDITOR,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_UIINSTANCE,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_INSTANCE_MODEL,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_INSTANCE_PROP_MODEL,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_NPC_PBR_ANIM,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_ANIMMESH,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_POSTEX,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_NORTEX,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_MESH,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements));
|
||||
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
|
||||
FX_VTXPOS,
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
|
||||
}
|
||||
|
||||
for (auto& JobMapShader : jobMapShaders)
|
||||
{
|
||||
pair<_wstring, CShader*>* pOut = JobMapShader.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
@@ -396,6 +449,8 @@ HRESULT CLoader::Loading_For_Logo()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
||||
|
||||
m_isFinished = true;
|
||||
@@ -419,8 +474,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = false;
|
||||
isLoad_DataClassroom = true;
|
||||
isLoad_NPC = true;
|
||||
isLoad_DataClassroom = false;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_Background = false;
|
||||
@@ -1083,6 +1138,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef 진우
|
||||
#pragma region SHADER
|
||||
|
||||
{
|
||||
@@ -1131,6 +1187,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
}
|
||||
#pragma endregion
|
||||
#endif
|
||||
/* LAND_MODEL */
|
||||
{
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
@@ -1764,6 +1821,25 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_Dark_D.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Balloon_Diffuse */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Diffuse"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_%d.dds"), 4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Balloon_Normal */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Normal"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Balloon_MRO */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_MRO"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
#pragma region LAKE_TEXTURE
|
||||
/* For.Prototype_Component_Water_Noise_D */
|
||||
@@ -2173,6 +2249,23 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
|
||||
}
|
||||
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC PotionDesc{};
|
||||
{
|
||||
PotionDesc.eType = ACTOR::SPHERE;
|
||||
PotionDesc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
||||
PotionDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE };
|
||||
PotionDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
||||
PotionDesc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
PotionDesc.fContactOffset = { 0.05f };
|
||||
PotionDesc.vhalfGeometryInfo = { 0.07f, 0.07f, 0.07f };
|
||||
PotionDesc.fDensity = 1.f;
|
||||
PotionDesc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
|
||||
PotionDesc.eLockFlag = {};
|
||||
PotionDesc.vAutoDamping = { 1.f, 1.f };
|
||||
PotionDesc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
PotionDesc.vLocalTranslation = { 0.f, 0.f, 0.f };
|
||||
}
|
||||
|
||||
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC RanrokDesc{};
|
||||
{
|
||||
@@ -2200,6 +2293,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_POTION"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, PotionDesc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, RanrokDesc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -2533,13 +2631,23 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(g_iStaticLevel, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(g_iStaticLevel, CBombardSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(g_iStaticLevel, CDecendoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAccioSide>(g_iStaticLevel, CAccioSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStupefySide>(g_iStaticLevel, CStupefySide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTransformationSide>(g_iStaticLevel, CTransformationSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -3126,6 +3234,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_Broom_TargetGate2D*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBroom_TargetGate2D>(g_iStaticLevel, CBroom_TargetGate2D::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_SpellLearn_Ride_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRide_Panel>(g_iStaticLevel, CRide_Panel::Create(m_pDevice, m_pContext))))
|
||||
@@ -3509,9 +3622,20 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
/* For.Prototype_Component_FloatingBalloon */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_Lake"),
|
||||
@@ -3726,6 +3850,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRaceRing>(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapElement_Balloon */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Balloon>(g_iStaticLevel, CMapElement_Balloon::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Troll_Weapon */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Weapon>(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -3768,9 +3896,22 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
|
||||
#pragma region RECEIVE_THREAD
|
||||
{
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapShader : jobMapShaders)
|
||||
{
|
||||
pair<_wstring, CShader*>* pOut = JobMapShader.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
}
|
||||
|
||||
/* 쉐이더 로딩 종료 이후 로딩*/
|
||||
|
||||
#pragma region RECEIVE_THREAD
|
||||
|
||||
{ // MapModels
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
@@ -3795,7 +3936,23 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapShader : jobMapShaders)
|
||||
{
|
||||
pair<_wstring, CShader*>* pOut = JobMapShader.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
||||
|
||||
m_strMessage = TEXT("모델을 다시 불러오는 중입니다. ");
|
||||
|
||||
Reference in New Issue
Block a user