Merge branch 'Develope' of https://github.com/SpicyGangjeong/Team3D into Develope
@@ -113,6 +113,10 @@ HRESULT CInfoInstance::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
return m_pMapInfo->Load_InteractableElements(pFileName);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_WaterElemet(const _char* pFileName)
|
||||
{
|
||||
return m_pMapInfo->Load_WaterElemet(pFileName);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
|
||||
@@ -223,20 +223,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUnified>(g_iStaticLevel, NEXT_LEVEL, LAYER_UNIFIED)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
|
||||
|
||||
vector<_wstring> ModelPrototypeTags;
|
||||
ModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_Lake"));
|
||||
Lake_Desc.iMaxLodLevel = 0;
|
||||
Lake_Desc.iRenderType = 4;
|
||||
Lake_Desc.vPosition = _float3(-144.f, -61.9f, -115.f);
|
||||
Lake_Desc.vRotation = _float3(0.f, 0.f, 0.f);
|
||||
Lake_Desc.vScale = _float3(3.f, 3.f, 3.f);
|
||||
Lake_Desc.ModelPrototypeTags = ModelPrototypeTags;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Lake_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
// ---------------------------------
|
||||
// >> M A P Configuration <<
|
||||
// 맵 로드할지 안할지 bool 설정
|
||||
@@ -268,9 +255,13 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
}
|
||||
else
|
||||
{
|
||||
///* 전체 맵 */
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
|
||||
|
||||
/* 물 오브젝트 */
|
||||
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info")))
|
||||
return E_FAIL;
|
||||
|
||||
/* 조명 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
|
||||
|
||||
@@ -1940,27 +1940,27 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
@@ -1973,6 +1973,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Deep.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLakeShallow */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Shallow.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Box */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
|
||||
CVIBuffer_Box::Create(m_pDevice, m_pContext))))
|
||||
@@ -2276,7 +2286,7 @@ vector<FOLDER_LOAD*>* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, I
|
||||
|
||||
_wstring wstrFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
|
||||
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIROMENT, szFilePath);
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIRONMENT, szFilePath);
|
||||
|
||||
_uint iNumMesh = pModel->Get_NumMeshes();
|
||||
|
||||
|
||||
@@ -42,9 +42,24 @@ HRESULT CMapElement_Lake::Initialize(void* pArg)
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_vRefractionColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_fUVValue = 0.01f;
|
||||
|
||||
m_fRadius = pDesc->fRadius;
|
||||
m_fTimeSpeed = pDesc->fTimeSpeed;
|
||||
|
||||
m_fRefractionStrength = pDesc->fRefractionStrength;
|
||||
m_fRefractionPow = pDesc->fRefractionPow;
|
||||
|
||||
m_fUVValue1 = pDesc->fUVValue1;
|
||||
m_fUVValue2 = pDesc->fUVValue2;
|
||||
m_fUVValue3 = pDesc->fUVValue3;
|
||||
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vLargeUVSpeed = pDesc->vLargeUVSpeed;
|
||||
m_vSubUVSpeed3 = pDesc->vSubUVSpeed3;
|
||||
|
||||
memcpy(&m_vRefractionColor, &pDesc->vRefractionColor, sizeof(_float4));
|
||||
memcpy(&m_vSurfaceColor, &pDesc->vSurfaceColor, sizeof(_float4));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -54,13 +69,17 @@ void CMapElement_Lake::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMapElement_Lake::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc += fTimeDelta * m_fUVValue;
|
||||
m_fTimeAcc += fTimeDelta * m_fTimeSpeed;
|
||||
|
||||
if (3600.f <= m_fTimeAcc)
|
||||
m_fTimeAcc = 0.f;
|
||||
//Describe_Entity();
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
if(m_pGameInstance->isIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius))
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Render()
|
||||
@@ -85,6 +104,8 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
MAPOBJECT_LAKE_DESC* pDesc = static_cast<MAPOBJECT_LAKE_DESC*>(pArg);
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
@@ -95,6 +116,13 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->ShallowModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pShallowModels.push_back(pModel);
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
@@ -150,7 +178,6 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTimeAcc, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -164,13 +191,13 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed1", &m_fUVSpeed1, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed1", &m_vUVSpeed, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed2", &m_fUVSpeed2, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed2", &m_vLargeUVSpeed, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed3", &m_fUVSpeed3, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed3", &m_vSubUVSpeed3, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -180,10 +207,6 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionPow", &m_fRefractionPow, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fSpecularIntensity", &m_fSpecularIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3)))) {
|
||||
@@ -204,9 +227,10 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalLargeTexture", m_pNormalLargeTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalSubTexture", m_pNormalSubTextureCom->Get_SRV(0)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_CausticsTexture", m_pCausticsTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -215,6 +239,7 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -256,8 +281,11 @@ void CMapElement_Lake::Free()
|
||||
SAFE_RELEASE(m_pCausticsTextureCom);
|
||||
SAFE_RELEASE(m_pNoiseTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
for (auto& pModel : m_pShallowModels)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "MapObject_Collision.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "MapElement_Lake.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -312,7 +313,7 @@ HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Light/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
@@ -390,7 +391,7 @@ HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifndef 기무리
|
||||
MSG_BOX("Successed to Load File");
|
||||
//MSG_BOX("Successed to Load File");
|
||||
#endif
|
||||
|
||||
return S_OK;
|
||||
@@ -400,7 +401,7 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Interactable/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
@@ -463,6 +464,115 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_WaterElemet(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Water/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapObjects_Water");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Desc = {};
|
||||
|
||||
/* Model Prototypes */
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
|
||||
|
||||
string strTag = {};
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("ShollowPrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("ShollowPrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ShallowModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
auto* Scale = Object->FirstChildElement("Scale");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
auto* Rotation = Object->FirstChildElement("Rotation");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
|
||||
auto* Radius = Object->FirstChildElement("Radius");
|
||||
Radius->QueryFloatAttribute("value", &Desc.fRadius);
|
||||
|
||||
auto* TimeSpeed = Object->FirstChildElement("TimeSpeed");
|
||||
TimeSpeed->QueryFloatAttribute("value", &Desc.fTimeSpeed);
|
||||
|
||||
auto* RefractionStrength = Object->FirstChildElement("RefractionStrength");
|
||||
RefractionStrength->QueryFloatAttribute("value", &Desc.fRefractionStrength);
|
||||
|
||||
auto* RefractionPow = Object->FirstChildElement("RefractionPow");
|
||||
RefractionPow->QueryFloatAttribute("value", &Desc.fRefractionPow);
|
||||
|
||||
auto* UVValue1 = Object->FirstChildElement("UVValue1");
|
||||
UVValue1->QueryFloatAttribute("value", &Desc.fUVValue1);
|
||||
|
||||
auto* UVValue2 = Object->FirstChildElement("UVValue2");
|
||||
UVValue2->QueryFloatAttribute("value", &Desc.fUVValue2);
|
||||
|
||||
auto* UVValue3 = Object->FirstChildElement("UVValue3");
|
||||
UVValue3->QueryFloatAttribute("value", &Desc.fUVValue3);
|
||||
|
||||
// float2 값들
|
||||
auto* UVSpeed = Object->FirstChildElement("UVSpeed");
|
||||
UVSpeed->QueryFloatAttribute("x", &Desc.vUVSpeed.x);
|
||||
UVSpeed->QueryFloatAttribute("y", &Desc.vUVSpeed.y);
|
||||
|
||||
auto* LargeUVSpeed = Object->FirstChildElement("LargeUVSpeed");
|
||||
LargeUVSpeed->QueryFloatAttribute("x", &Desc.vLargeUVSpeed.x);
|
||||
LargeUVSpeed->QueryFloatAttribute("y", &Desc.vLargeUVSpeed.y);
|
||||
|
||||
auto* SubUVSpeed3 = Object->FirstChildElement("SubUVSpeed3");
|
||||
SubUVSpeed3->QueryFloatAttribute("x", &Desc.vSubUVSpeed3.x);
|
||||
SubUVSpeed3->QueryFloatAttribute("y", &Desc.vSubUVSpeed3.y);
|
||||
|
||||
// float4 값들
|
||||
auto* RefractionColor = Object->FirstChildElement("RefractionColor");
|
||||
RefractionColor->QueryFloatAttribute("x", &Desc.vRefractionColor.x);
|
||||
RefractionColor->QueryFloatAttribute("y", &Desc.vRefractionColor.y);
|
||||
RefractionColor->QueryFloatAttribute("z", &Desc.vRefractionColor.z);
|
||||
RefractionColor->QueryFloatAttribute("w", &Desc.vRefractionColor.w);
|
||||
|
||||
auto* SurfaceColor = Object->FirstChildElement("SurfaceColor");
|
||||
SurfaceColor->QueryFloatAttribute("x", &Desc.vSurfaceColor.x);
|
||||
SurfaceColor->QueryFloatAttribute("y", &Desc.vSurfaceColor.y);
|
||||
SurfaceColor->QueryFloatAttribute("z", &Desc.vSurfaceColor.z);
|
||||
SurfaceColor->QueryFloatAttribute("w", &Desc.vSurfaceColor.w);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Lake"), &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Client
|
||||
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
|
||||
|
||||
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ,SPECTOR, END };
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO,SPECTOR_WEAPON, END };
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO,SPECTOR_WEAPON, GLASS_CUBE,END };
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
|
||||
@@ -46,6 +46,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
HRESULT Load_MapObjects(const _char* pFilePath);
|
||||
HRESULT Load_LightElements(const _char* pFilePath);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -14,7 +14,19 @@ class CMapElement_Lake final : public CMapElement
|
||||
public:
|
||||
typedef struct tagMapObejct_Lake_Desc : public MAPELEMENT_DESC
|
||||
{
|
||||
vector<_wstring> SurfaceModelPrototypeTags;
|
||||
_float fRadius;
|
||||
_float fTimeSpeed;
|
||||
_float fRefractionStrength;
|
||||
_float fRefractionPow;
|
||||
_float fUVValue1;
|
||||
_float fUVValue2;
|
||||
_float fUVValue3;
|
||||
_float2 vUVSpeed;
|
||||
_float2 vLargeUVSpeed;
|
||||
_float2 vSubUVSpeed3;
|
||||
_float4 vRefractionColor;
|
||||
_float4 vSurfaceColor;
|
||||
vector<_wstring> ShallowModelPrototypeTags;
|
||||
}MAPOBJECT_LAKE_DESC;
|
||||
|
||||
private:
|
||||
@@ -37,23 +49,25 @@ class CMapElement_Lake final : public CMapElement
|
||||
CTexture* m_pCubeMapTextureCom = { nullptr };
|
||||
CTexture* m_pRefractionTextureCom = { nullptr };
|
||||
|
||||
_float m_fRadius = {};
|
||||
|
||||
_float m_fRefractionStrength = { 0.18f };
|
||||
_float m_fRefractionPow = { 10.f };
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fUVValue = { 0.01f };
|
||||
_float m_fTimeSpeed = { 0.01f };
|
||||
|
||||
_float m_fUVValue1 = { 30.f };
|
||||
_float m_fUVValue2 = { 20.f };
|
||||
_float m_fUVValue3 = { 10.f };
|
||||
|
||||
_float m_fSpecularIntensity = { 0.6f };
|
||||
|
||||
_float m_fUVSpeed1 = { -0.1f };
|
||||
_float m_fUVSpeed2 = { 0.05f };
|
||||
_float m_fUVSpeed3 = { 0.01f };
|
||||
_float2 m_vUVSpeed = {};
|
||||
_float2 m_vLargeUVSpeed = {};
|
||||
_float2 m_vSubUVSpeed3 = {};
|
||||
|
||||
_float4 m_vRefractionColor = {};
|
||||
_float4 m_vSurfaceColor = {};
|
||||
|
||||
vector<CModel*> m_pShallowModels = {};
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -24,6 +24,7 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_MapCollisionObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
HRESULT Load_LightElements(const _char* pFileName);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
@@ -2106,14 +2106,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
@@ -3692,14 +3684,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
@@ -3800,14 +3784,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
@@ -4805,14 +4781,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
|
||||
@@ -2106,14 +2106,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
@@ -3692,14 +3684,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
@@ -3800,14 +3784,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
@@ -4805,14 +4781,6 @@
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1</PrototypeTag>
|
||||
|
||||
|
Before Width: | Height: | Size: 518 KiB After Width: | Height: | Size: 518 KiB |
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 369 KiB After Width: | Height: | Size: 369 KiB |
|
Before Width: | Height: | Size: 518 KiB After Width: | Height: | Size: 518 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@@ -1,320 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Land>
|
||||
<Container Name="3Broom_Ext">
|
||||
<Position x="44.396912" y="-9.5367432e-07" z="30.934399"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_decals</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrels</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_Decals_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_Decals_A_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_DoorFrame</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_Dormer_Wood_Slats</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_fireplace</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_fireplace_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_fireplace_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_fireplace_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_decals</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_decals_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_stone</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_walls</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_R</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_R_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_R_Lod2</PrototypeTag>
|
||||
<Position x="1.05" y="0" z="0"/>
|
||||
<Scale x="0.99999958" y="1" z="0.99999958"/>
|
||||
<Rotation x="0" y="2.2123847" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_L</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_L_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_L_Lod2</PrototypeTag>
|
||||
<Position x="-1.05" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Window_Glass</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Window_Glass_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_A_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Roof_Debris_B_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_DSkull</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_DSkull_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_DSkull_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_DSkull_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
</Container>
|
||||
<Container Name="3Broom_Int">
|
||||
<Position x="22.056229" y="0" z="38.276192"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_A_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_Bar</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_Bar_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_Bar_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_floors</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_floors_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_floors_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_B_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_windows</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_windows_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_D</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_stairs_D_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_Stairs_Upper_Floors_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_walls</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_walls_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_walls_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_walls_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_A_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_B_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_C</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_C_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_int_wood_Stairs_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Broom_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Broom_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Broom_01_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
</Container>
|
||||
</Land>
|
||||
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<MapLightObjects>
|
||||
<Object Type="3" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_LightPost</PrototypeTag>
|
||||
<Position x="26.366684" y="0.44646791" z="36.957825"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="0.81999999" y="0.52999997" z="0.25"/>
|
||||
<Ambient x="0.82999998" y="0.52999997" z="0.25"/>
|
||||
<Specular x="0" y="0" z="0"/>
|
||||
<PosOffset x="0" y="3.3" z="0"/>
|
||||
<Info GlassIndex="0" BloomStrength="3.7000022" Range="5"/>
|
||||
</Object>
|
||||
<Object Type="3" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_LightPost</PrototypeTag>
|
||||
<Position x="17.501596" y="-4.5276604" z="-14.468103"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0.60000002" z="0.30000001"/>
|
||||
<Ambient x="1" y="0.60000002" z="0.30000001"/>
|
||||
<Specular x="0" y="0" z="0"/>
|
||||
<PosOffset x="0" y="3.3" z="0"/>
|
||||
<Info GlassIndex="0" BloomStrength="3.5" Range="7"/>
|
||||
</Object>
|
||||
<Object Type="3" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_LightPost</PrototypeTag>
|
||||
<Position x="22.643427" y="-3.9982495" z="-15.436444"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0.60000002" z="0.30000001"/>
|
||||
<Ambient x="1" y="0.60000002" z="0.30000001"/>
|
||||
<Specular x="0" y="0" z="0"/>
|
||||
<PosOffset x="0" y="3.5" z="0"/>
|
||||
<Info GlassIndex="0" BloomStrength="3.5" Range="6"/>
|
||||
</Object>
|
||||
</MapLightObjects>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<MapObjects_Water>
|
||||
<Object Type="4" Name="Hogsmead_North_Lake" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_Component_Hogsmead_NorthLake</PrototypeTag>
|
||||
<ShollowPrototypeTag>Prototype_Component_Hogsmead_NorthLakeShallow</ShollowPrototypeTag>
|
||||
<Position x="129.5" y="16.299999" z="175.60001"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Radius value="31.2"/>
|
||||
<TimeSpeed value="0.017999999"/>
|
||||
<RefractionStrength value="0.02"/>
|
||||
<RefractionPow value="2"/>
|
||||
<UVValue1 value="20"/>
|
||||
<UVValue2 value="20"/>
|
||||
<UVValue3 value="20"/>
|
||||
<UVSpeed x="-0.1" y="0.1"/>
|
||||
<LargeUVSpeed x="0.1" y="0.80000001"/>
|
||||
<SubUVSpeed3 x="5" y="5"/>
|
||||
<RefractionColor x="0.85292602" y="0.9433403" z="0.99578059" w="1"/>
|
||||
<SurfaceColor x="0.78823531" y="0" z="1" w="1"/>
|
||||
</Object>
|
||||
<Object Type="4" Name="HN_LakeA" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_Component_Hogwart_Lake</PrototypeTag>
|
||||
<ShollowPrototypeTag>Prototype_Component_Hogwart_LakeSurFace</ShollowPrototypeTag>
|
||||
<Position x="-92" y="-77.900002" z="-611"/>
|
||||
<Scale x="1.1" y="1.1" z="1.1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Radius value="472.7"/>
|
||||
<TimeSpeed value="0.0099999998"/>
|
||||
<RefractionStrength value="0.029999999"/>
|
||||
<RefractionPow value="1.5"/>
|
||||
<UVValue1 value="10"/>
|
||||
<UVValue2 value="20"/>
|
||||
<UVValue3 value="20"/>
|
||||
<UVSpeed x="0.1" y="0"/>
|
||||
<LargeUVSpeed x="0.30000001" y="0.1"/>
|
||||
<SubUVSpeed3 x="100" y="1"/>
|
||||
<RefractionColor x="0.80590719" y="0.89926827" z="1" w="1"/>
|
||||
<SurfaceColor x="1" y="0" z="1" w="1"/>
|
||||
</Object>
|
||||
</MapObjects_Water>
|
||||
@@ -40,6 +40,7 @@ Texture2D g_AmbientTexture;
|
||||
Texture2D g_AmbientOcclusionTexture;
|
||||
Texture2D g_UnknownTexture;
|
||||
Texture2D g_NoiseTexture;
|
||||
Texture2D g_CausticsTexture;
|
||||
|
||||
int g_iBinded_Texture[AI_TEXTURE_TYPE_MAX];
|
||||
|
||||
@@ -58,9 +59,9 @@ float g_fNormalValue1;
|
||||
float g_fNormalValue2;
|
||||
float g_fNormalValue3;
|
||||
|
||||
float g_fUVSpeed1;
|
||||
float g_fUVSpeed2;
|
||||
float g_fUVSpeed3;
|
||||
float2 g_vUVSpeed1;
|
||||
float2 g_vUVSpeed2;
|
||||
float2 g_vUVSpeed3;
|
||||
|
||||
float g_fBloomStrength;
|
||||
float g_fGlassRatio;
|
||||
@@ -341,7 +342,32 @@ PS_OUT PS_GLASS(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_GLASS_CUBE(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
vector vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
float3 vNormalMap = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
|
||||
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
|
||||
|
||||
float3 vNormal = normalize(mul(normalize(vNormalMap), WorldMatrix));
|
||||
|
||||
float3 vReflaction = reflect(normalize(In.vWorldPos.xyz - g_vCamPosition.xyz), vNormal);
|
||||
|
||||
float4 vReflactionDiffuse = g_CubeTexture.Sample(DefaultSampler, vReflaction);
|
||||
|
||||
float fFresnelScala = 0.02f + (1.f - 0.02f) * pow(1.f - max(0.f, dot(normalize(g_vCamPosition.xyz - In.vWorldPos.xyz), vNormal)), 5.f);
|
||||
|
||||
Out.vAlbedo = float4(vMtrlDiffuse.xyz, 1.f) * fFresnelScala + vReflactionDiffuse * (1.f - fFresnelScala);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 0.f);
|
||||
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
|
||||
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
struct PS_IN_SHADOW
|
||||
{
|
||||
@@ -531,30 +557,36 @@ PS_OUT PS_LAKE(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float4 vMtrlReflaction = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f);
|
||||
float2 vUV = float2(In.vTexcoord.x + cos(g_fTime * g_vUVSpeed1.x), In.vTexcoord.y + cos(g_fTime * g_vUVSpeed1.y)) * g_fNormalValue1;
|
||||
float2 vUVLarge = float2(In.vTexcoord.x + cos(g_fTime * g_vUVSpeed2.x), In.vTexcoord.y + cos(g_fTime * g_vUVSpeed2.y)) * g_fNormalValue2;
|
||||
float2 vUVSub = float2(In.vTexcoord.x + cos(g_fTime * g_vUVSpeed3.x), In.vTexcoord.y + cos(g_fTime * g_vUVSpeed3.y)) * g_fNormalValue3;
|
||||
|
||||
float2 vUV = float2(In.vTexcoord.x, In.vTexcoord.y + sin(g_fTime * g_fUVSpeed1)) * g_fNormalValue1;
|
||||
float2 vUVLarge = float2(In.vTexcoord.x, In.vTexcoord.y - (g_fTime * g_fUVSpeed2)) * g_fNormalValue2;
|
||||
float2 vUVSub = float2(In.vTexcoord.x - g_fTime * g_fUVSpeed3, In.vTexcoord.y - g_fTime * g_fUVSpeed3) * g_fNormalValue3;
|
||||
float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f);
|
||||
float3 vNoise = (g_NoiseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord + g_fTime * 0.1f).rgb - 0.5f) * 0.3f;
|
||||
float4 vCaustics = g_CausticsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f + vNoise.g);
|
||||
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, vUV);
|
||||
float3 vNormalLarge = DecodeNormalFromRG(g_NormalLargeTexture, AnisoTropy_BLUR_Sampler, vUVLarge);
|
||||
float3 vNormalSub = DecodeNormalFromRG(g_NormalSubTexture, AnisoTropy_BLUR_Sampler, vUVSub);
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, vUV + vNoise.g);
|
||||
float3 vNormalLarge = DecodeNormalFromRG(g_NormalLargeTexture, AnisoTropy_BLUR_Sampler, vUVLarge + vNoise.r);
|
||||
float3 vNormalSub = DecodeNormalFromRG(g_NormalSubTexture, AnisoTropy_BLUR_Sampler, vUVSub + vNoise.b);
|
||||
|
||||
vMtrlDiffuse = (vMtrlDiffuse + vCaustics * 0.3f) * g_vDiffuseColor;
|
||||
|
||||
vector vDiffuse = g_vDiffuseColor;
|
||||
vector vSurface = g_vSurfaceColor;
|
||||
|
||||
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
|
||||
float3 vNormal = normalize(mul(float3(normalize(vNormalDecoded * 0.5f + vNormalLarge * 0.2f + vNormalSub * 0.3f).xy, 1.f), WorldMatrix));
|
||||
|
||||
float3 vNormal = normalize(mul(normalize(vNormalDecoded + vNormalLarge + vNormalSub), WorldMatrix));
|
||||
|
||||
float3 vReflaction = reflect(normalize(In.vWorldPos.xyz - g_vCamPosition.xyz), vNormal);
|
||||
float3 vViewDir = normalize(g_vCamPosition.xyz - In.vWorldPos.xyz);
|
||||
|
||||
float4 vMtrlDiffuse = g_CubeTexture.Sample(DefaultSampler, vReflaction);
|
||||
float3 vReflaction = reflect(-1.f * vViewDir, vNormal);
|
||||
|
||||
float fFresnelScala = g_fRefractionStrength + (1.f - g_fRefractionStrength) * pow(1.f - max(0.f, dot(normalize(g_vCamPosition.xyz - In.vWorldPos.xyz), vNormal)), g_fRefractionPow);
|
||||
float4 vCubeDiffuse = g_CubeTexture.Sample(AnisoTropy_BLUR_Sampler, vReflaction);
|
||||
|
||||
Out.vAlbedo = float4(vMtrlDiffuse.xyz, 1.f) * fFresnelScala * g_fSpecularIntensity + vMtrlReflaction * g_vDiffuseColor * (1.f - fFresnelScala);
|
||||
float fFresnelScala = g_fRefractionStrength + (1.f - g_fRefractionStrength) * pow(1.f - saturate(dot(vViewDir, vNormal)), g_fRefractionPow);
|
||||
fFresnelScala = saturate(fFresnelScala * 0.7f);
|
||||
|
||||
Out.vAlbedo = lerp(vMtrlDiffuse, vCubeDiffuse, fFresnelScala);
|
||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
||||
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
@@ -866,4 +898,14 @@ technique11 MeshTechnique11
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_SPECTOR_WEAPON_MAIN();
|
||||
}
|
||||
|
||||
pass GlassCubePass // 20
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_GLASS_CUBE();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ void CAlphaMap::Update(_float3& vPosition, _uint iColorIndex, _float fValue, _ui
|
||||
|
||||
void CAlphaMap::Save_ToFile(const _char* pFilePath)
|
||||
{
|
||||
string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath);
|
||||
string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath);
|
||||
|
||||
ofstream out(strFilePath, ios::binary);
|
||||
|
||||
@@ -93,7 +93,7 @@ void CAlphaMap::Save_ToFile(const _char* pFilePath)
|
||||
|
||||
void CAlphaMap::Load_ToFile(const _char* pFilePath)
|
||||
{
|
||||
string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath);
|
||||
string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath);
|
||||
|
||||
ifstream in(strFilePath, ios::binary);
|
||||
|
||||
@@ -121,8 +121,8 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
|
||||
|
||||
m_pContext->Unmap(m_pTexture2D, 0);
|
||||
|
||||
if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Hogwart_AlphaMap.dds")))
|
||||
return;
|
||||
//if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogwart_AlphaMap.dds")))
|
||||
// return;
|
||||
}
|
||||
|
||||
HRESULT CAlphaMap::Initialize(_uint iSizeX, _uint iSizeY)
|
||||
|
||||
@@ -124,6 +124,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
Desc.iAlphaSizeX = 2048;
|
||||
Desc.iAlphaSizeY = 2048;
|
||||
Desc.vPosition = _float3(-194, 18.5f, -153.f);
|
||||
Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin";
|
||||
Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin";
|
||||
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
@@ -132,6 +134,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
Desc.isEdit = false;
|
||||
Desc.iAlphaSizeX = 2048;
|
||||
Desc.iAlphaSizeY = 2560;
|
||||
Desc.strAlphaMapTag = "Hogwart_AlphaMap.bin";
|
||||
Desc.strHeightMapTag = "Hogwart_HeightMap.bin";
|
||||
Desc.vPosition = _float3(-451.f, 18.5f, -791.f);
|
||||
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
@@ -157,16 +161,31 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
|
||||
|
||||
vector<_wstring> ModelPrototypeTags;
|
||||
/*vector<_wstring> ModelPrototypeTags;
|
||||
vector<_wstring> ShallowModelPrototypeTags;
|
||||
ModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_Lake"));
|
||||
ShallowModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_LakeSurFace"));
|
||||
Lake_Desc.bEdit = true;
|
||||
Lake_Desc.iMaxLodLevel = 0;
|
||||
Lake_Desc.iRenderType = 4;
|
||||
Lake_Desc.vPosition = _float3(-144.f, -61.9f, -115.f);
|
||||
Lake_Desc.vRotation = _float3(0.f, 0.f, 0.f);
|
||||
Lake_Desc.vScale = _float3(3.f, 3.f, 3.f);
|
||||
Lake_Desc.vScale = _float3(1.f, 1.f, 1.f);
|
||||
Lake_Desc.fTimeSpeed = _float(0.02f);
|
||||
Lake_Desc.fRefractionStrength = _float();
|
||||
Lake_Desc.fRefractionPow = _float();
|
||||
Lake_Desc.fUVValue1 = _float();
|
||||
Lake_Desc.fUVValue2 = _float();
|
||||
Lake_Desc.fUVValue3 = _float();
|
||||
Lake_Desc.vUVSpeed = _float2();
|
||||
Lake_Desc.vLargeUVSpeed = _float2();
|
||||
Lake_Desc.vSubUVSpeed3 = _float2();
|
||||
Lake_Desc.vRefractionColor = _float4();
|
||||
Lake_Desc.vSurfaceColor = _float4();
|
||||
Lake_Desc.ModelPrototypeTags = ModelPrototypeTags;
|
||||
Lake_Desc.ShallowModelPrototypeTags = ShallowModelPrototypeTags;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc)))
|
||||
return E_FAIL;
|
||||
return E_FAIL;*/
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -1154,11 +1154,6 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Terrain_Mask */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Mask"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/T_OL_GrassBlend_Mask_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Terrain_Diffuse */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_D_%d.dds"), 4)))) {
|
||||
@@ -1941,7 +1936,7 @@ HRESULT CLoader::MapFolderLoad(const _char* pDirectoryPath, const _char* pFileEx
|
||||
|
||||
_wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
|
||||
|
||||
CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath);
|
||||
CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, szFilePath);
|
||||
|
||||
/*For Prototype_Component_Model_*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, pModel)))
|
||||
@@ -1996,7 +1991,7 @@ void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContex
|
||||
|
||||
_wstring wstrFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
|
||||
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIROMENT, szFilePath);
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIRONMENT, szFilePath);
|
||||
|
||||
_uint iNumMesh = pModel->Get_NumMeshes();
|
||||
|
||||
@@ -2368,11 +2363,6 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Terrain_Mask */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Mask"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/T_OL_GrassBlend_Mask_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Terrain_Diffuse */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_D_%d.dds"), 4)))) {
|
||||
@@ -2461,7 +2451,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
/* For.Prototype_Component_SkyboxModel */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SM_SkyCard.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma region MAP_LANDS
|
||||
@@ -2472,27 +2462,27 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
@@ -2505,6 +2495,14 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Deep.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
/* For.Prototype_Component_Hogsmead_NorthLakeShallow */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Shallow.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -2543,7 +2541,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
///* Ollivanders*/
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes",
|
||||
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision",
|
||||
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
@@ -2628,7 +2626,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
|
||||
///* Hengist_Tree */
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
|
||||
// ".bin", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation",
|
||||
// ".bin", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
@@ -2651,16 +2649,16 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
// return E_FAIL;
|
||||
|
||||
///* GEN C*/
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes",
|
||||
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
/*if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes",
|
||||
".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;*/
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision",
|
||||
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
|
||||
///* GEN E*/
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes",
|
||||
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision",
|
||||
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
@@ -3104,11 +3102,6 @@ if(isLoad_Map)
|
||||
CCollider::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
///* For.Prototype_Component_VIBuffer_Terrain */
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
|
||||
// CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png"))))
|
||||
// return E_FAIL;
|
||||
|
||||
{
|
||||
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512);
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"), pTerrain))) {
|
||||
@@ -3132,20 +3125,20 @@ if(isLoad_Map)
|
||||
}
|
||||
|
||||
|
||||
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/Hogwart_Height.png");
|
||||
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/Terrain/Hogwart_Height.png");
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart"), pTerrain))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/North_Hogwart_Height.png");
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_North_Hogwart"), pTerrain))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/Terrain/North_Hogwart_Height.png");
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_North_Hogwart"), pTerrain))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/South_Hogwart_Height.png");
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_South_Hogwart"), pTerrain))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/Terrain/South_Hogwart_Height.png");
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_South_Hogwart"), pTerrain))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
#pragma region INSTANCE_MODEL
|
||||
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
|
||||
|
||||
@@ -23,10 +23,11 @@ HRESULT CMapElement_Lake::Initialize_Prototype()
|
||||
|
||||
HRESULT CMapElement_Lake::Initialize(void* pArg)
|
||||
{
|
||||
MAPOBJECT_LOD_DESC* pDesc = static_cast<MAPOBJECT_LOD_DESC*>(pArg);
|
||||
MAPOBJECT_LAKE_DESC* pDesc = static_cast<MAPOBJECT_LAKE_DESC*>(pArg);
|
||||
|
||||
m_bEdit = pDesc->bEdit;
|
||||
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||
{
|
||||
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||
@@ -65,8 +66,10 @@ void CMapElement_Lake::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMapElement_Lake::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc += fTimeDelta * m_fUVValue;
|
||||
//Describe_Entity();
|
||||
m_fTimeAcc += fTimeDelta * m_fTimeSpeed;
|
||||
|
||||
if(m_bEdit)
|
||||
Describe_Entity();
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Late_Update(_float fTimeDelta)
|
||||
@@ -90,6 +93,10 @@ HRESULT CMapElement_Lake::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShallowModels[0]->Render(0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -99,6 +106,28 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
MAPOBJECT_LAKE_DESC* pDesc = static_cast<MAPOBJECT_LAKE_DESC*>(pArg);
|
||||
|
||||
#pragma region EDITOR
|
||||
m_ShallowModelPrototypeTags = pDesc->ShallowModelPrototypeTags;
|
||||
#pragma endregion
|
||||
|
||||
m_fTimeSpeed = pDesc->fTimeSpeed;
|
||||
|
||||
m_fRefractionStrength = pDesc->fRefractionStrength;
|
||||
m_fRefractionPow = pDesc->fRefractionPow;
|
||||
|
||||
m_fUVValue1 = pDesc->fUVValue1;
|
||||
m_fUVValue2 = pDesc->fUVValue2;
|
||||
m_fUVValue3 = pDesc->fUVValue3;
|
||||
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vLargeUVSpeed = pDesc->vLargeUVSpeed;
|
||||
m_vSubUVSpeed3 = pDesc->vSubUVSpeed3;
|
||||
|
||||
m_vRefractionColor = pDesc->vRefractionColor;
|
||||
m_vSurfaceColor = pDesc->vSurfaceColor;
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
@@ -109,6 +138,13 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->ShallowModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pShallowModels.push_back(pModel);
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
@@ -178,13 +214,13 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed1", &m_fUVSpeed1, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed1", &m_vUVSpeed, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed2", &m_fUVSpeed2, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed2", &m_vLargeUVSpeed, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed3", &m_fUVSpeed3, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed3", &m_vSubUVSpeed3, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -194,10 +230,6 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionPow", &m_fRefractionPow, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fSpecularIntensity", &m_fSpecularIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3)))) {
|
||||
@@ -218,9 +250,10 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalLargeTexture", m_pNormalLargeTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalSubTexture", m_pNormalSubTextureCom->Get_SRV(0)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_CausticsTexture", m_pCausticsTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -270,8 +303,12 @@ void CMapElement_Lake::Free()
|
||||
SAFE_RELEASE(m_pCausticsTextureCom);
|
||||
SAFE_RELEASE(m_pNoiseTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
|
||||
for (auto& pModel : m_pShallowModels)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Describe_Entity()
|
||||
@@ -281,6 +318,29 @@ void CMapElement_Lake::Describe_Entity()
|
||||
if (nullptr == m_pGameInstance)
|
||||
return;
|
||||
GUI::Begin("Lake");
|
||||
GUI::InputText("Containter Name", m_szSaveName, MAX_PATH);
|
||||
if(GUI::Button("Save_LakeData"))
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/Water/Element_Water_Info.xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
tinyxml2::XMLElement* root = {};
|
||||
|
||||
if (loadResult == tinyxml2::XML_SUCCESS)
|
||||
{
|
||||
root = doc.FirstChildElement("MapObjects_Water");
|
||||
Save_XML(doc, root);
|
||||
|
||||
if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
|
||||
MSG_BOX("Failed to Save File");
|
||||
}
|
||||
}
|
||||
else
|
||||
MSG_BOX("Failed to Save Data");
|
||||
}
|
||||
|
||||
GUI::Text(CMyTools::ToString(m_ModelPrototypeTags[m_iLodIndex]).c_str());
|
||||
GUI::InputInt("Lod Level", (_int*)(&m_iLodIndex));
|
||||
|
||||
@@ -288,11 +348,9 @@ void CMapElement_Lake::Describe_Entity()
|
||||
GUI::InputFloat("N_V2", (&m_fUVValue2));
|
||||
GUI::InputFloat("N_V3", (&m_fUVValue3));
|
||||
|
||||
GUI::InputFloat("UV_Speed1", (&m_fUVSpeed1));
|
||||
GUI::InputFloat("UV_Speed2", (&m_fUVSpeed2));
|
||||
GUI::InputFloat("UV_Speed3", (&m_fUVSpeed3));
|
||||
|
||||
GUI::InputFloat("m_fSpecularIntensity", (&m_fSpecularIntensity));
|
||||
GUI::InputFloat2("UV_Speed1", (_float*)(&m_vUVSpeed));
|
||||
GUI::InputFloat2("UV_Speed2", (_float*)(&m_vLargeUVSpeed));
|
||||
GUI::InputFloat2("UV_Speed3", (_float*)(&m_vSubUVSpeed3));
|
||||
|
||||
GUI::InputFloat("m_fRefractionStrength", (&m_fRefractionStrength));
|
||||
GUI::InputFloat("m_fRefractionPow", (&m_fRefractionPow));
|
||||
@@ -302,16 +360,33 @@ void CMapElement_Lake::Describe_Entity()
|
||||
|
||||
GUI::ColorEdit4("Refaction Color", (_float*)&m_vRefractionColor);
|
||||
GUI::ColorEdit4("Surface Color", (_float*)&m_vSurfaceColor);
|
||||
GUI::InputFloat("UV", (_float*)&m_fUVValue);
|
||||
GUI::InputFloat("m_fTimeSpeed", (_float*)&m_fTimeSpeed);
|
||||
|
||||
GUI::Text("----- Transfrom ----");
|
||||
_float3 vMove = {};
|
||||
GUI::InputFloat("Right", &vMove.x, 1.f, 10.f);
|
||||
GUI::InputFloat("Up", &vMove.y, 1.f, 10.f);
|
||||
GUI::InputFloat("Look", &vMove.z, 1.f, 10.f);
|
||||
|
||||
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));
|
||||
|
||||
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);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
|
||||
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
|
||||
{
|
||||
if (m_pGameInstance->isPicking(&m_vPosition))
|
||||
_float3 vPosition = {};
|
||||
if (m_pGameInstance->isPicking(&vPosition))
|
||||
{
|
||||
memcpy(&m_vPosition, &vPosition, sizeof(_float3));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,6 +395,8 @@ void CMapElement_Lake::Describe_Entity()
|
||||
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f);
|
||||
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f);
|
||||
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
|
||||
GUI::Text("----- Scale ----");
|
||||
GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f);
|
||||
GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f);
|
||||
@@ -329,8 +406,125 @@ void CMapElement_Lake::Describe_Entity()
|
||||
m_vScale.y = max(0.01f, m_vScale.y);
|
||||
m_vScale.z = max(0.01f, m_vScale.z);
|
||||
|
||||
m_pTransformCom->Set_Scale(m_vScale);
|
||||
|
||||
if (GUI::Button("Delete"))
|
||||
m_bDead = true;
|
||||
GUI::End();
|
||||
m_bSelected = true;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
|
||||
{
|
||||
tinyxml2::XMLElement* object = doc.NewElement("Object");
|
||||
object->SetAttribute("Type", ENUM_CLASS(MAPOBJECT_TYPE::ELEMENT_LAKE));
|
||||
object->SetAttribute("Name", m_szSaveName);
|
||||
object->SetAttribute("Lod_Level", m_iLodIndex);
|
||||
root->InsertEndChild(object);
|
||||
|
||||
#pragma region PROTOTYPETAG
|
||||
for (_uint i = 0; i < m_iLodIndex + 1; ++i)
|
||||
{
|
||||
tinyxml2::XMLElement* prototype = doc.NewElement("PrototypeTag");
|
||||
prototype->SetText(CMyTools::ToString(m_ModelPrototypeTags[i]).c_str());
|
||||
object->InsertEndChild(prototype);
|
||||
}
|
||||
for (_uint i = 0; i < m_iLodIndex + 1; ++i)
|
||||
{
|
||||
tinyxml2::XMLElement* prototype = doc.NewElement("ShollowPrototypeTag");
|
||||
prototype->SetText(CMyTools::ToString(m_ShallowModelPrototypeTags[i]).c_str());
|
||||
object->InsertEndChild(prototype);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region TRANSFORM
|
||||
_float3 vPosition = {};
|
||||
XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
|
||||
_float3 vRotation = {};
|
||||
XMStoreFloat3(&vRotation, m_pTransformCom->Get_RollPitchYawVector());
|
||||
vRotation.x = XMConvertToDegrees(vRotation.x);
|
||||
vRotation.y = XMConvertToDegrees(vRotation.y);
|
||||
vRotation.z = XMConvertToDegrees(vRotation.z);
|
||||
|
||||
tinyxml2::XMLElement* Position = doc.NewElement("Position");
|
||||
Position->SetAttribute("x", vPosition.x);
|
||||
Position->SetAttribute("y", vPosition.y);
|
||||
Position->SetAttribute("z", vPosition.z);
|
||||
object->InsertEndChild(Position);
|
||||
|
||||
tinyxml2::XMLElement* Scale = doc.NewElement("Scale");
|
||||
Scale->SetAttribute("x", vScale.x);
|
||||
Scale->SetAttribute("y", vScale.y);
|
||||
Scale->SetAttribute("z", vScale.z);
|
||||
object->InsertEndChild(Scale);
|
||||
|
||||
tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation");
|
||||
Rotation->SetAttribute("x", vRotation.x);
|
||||
Rotation->SetAttribute("y", vRotation.y);
|
||||
Rotation->SetAttribute("z", vRotation.z);
|
||||
object->InsertEndChild(Rotation);
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SHADER_VALUE
|
||||
tinyxml2::XMLElement* TimeSpeed = doc.NewElement("TimeSpeed");
|
||||
TimeSpeed->SetAttribute("value", m_fTimeSpeed);
|
||||
object->InsertEndChild(TimeSpeed);
|
||||
|
||||
tinyxml2::XMLElement* RefractionStrength = doc.NewElement("RefractionStrength");
|
||||
RefractionStrength->SetAttribute("value", m_fRefractionStrength);
|
||||
object->InsertEndChild(RefractionStrength);
|
||||
|
||||
tinyxml2::XMLElement* RefractionPow = doc.NewElement("RefractionPow");
|
||||
RefractionPow->SetAttribute("value", m_fRefractionPow);
|
||||
object->InsertEndChild(RefractionPow);
|
||||
|
||||
tinyxml2::XMLElement* UVValue1 = doc.NewElement("UVValue1");
|
||||
UVValue1->SetAttribute("value", m_fUVValue1);
|
||||
object->InsertEndChild(UVValue1);
|
||||
|
||||
tinyxml2::XMLElement* UVValue2 = doc.NewElement("UVValue2");
|
||||
UVValue2->SetAttribute("value", m_fUVValue2);
|
||||
object->InsertEndChild(UVValue2);
|
||||
|
||||
tinyxml2::XMLElement* UVValue3 = doc.NewElement("UVValue3");
|
||||
UVValue3->SetAttribute("value", m_fUVValue3);
|
||||
object->InsertEndChild(UVValue3);
|
||||
|
||||
// float2 값들
|
||||
tinyxml2::XMLElement* UVSpeed = doc.NewElement("UVSpeed");
|
||||
UVSpeed->SetAttribute("x", m_vUVSpeed.x);
|
||||
UVSpeed->SetAttribute("y", m_vUVSpeed.y);
|
||||
object->InsertEndChild(UVSpeed);
|
||||
|
||||
tinyxml2::XMLElement* LargeUVSpeed = doc.NewElement("LargeUVSpeed");
|
||||
LargeUVSpeed->SetAttribute("x", m_vLargeUVSpeed.x);
|
||||
LargeUVSpeed->SetAttribute("y", m_vLargeUVSpeed.y);
|
||||
object->InsertEndChild(LargeUVSpeed);
|
||||
|
||||
tinyxml2::XMLElement* SubUVSpeed3 = doc.NewElement("SubUVSpeed3");
|
||||
SubUVSpeed3->SetAttribute("x", m_vSubUVSpeed3.x);
|
||||
SubUVSpeed3->SetAttribute("y", m_vSubUVSpeed3.y);
|
||||
object->InsertEndChild(SubUVSpeed3);
|
||||
|
||||
// float4 값들
|
||||
tinyxml2::XMLElement* RefractionColor = doc.NewElement("RefractionColor");
|
||||
RefractionColor->SetAttribute("x", m_vRefractionColor.x);
|
||||
RefractionColor->SetAttribute("y", m_vRefractionColor.y);
|
||||
RefractionColor->SetAttribute("z", m_vRefractionColor.z);
|
||||
RefractionColor->SetAttribute("w", m_vRefractionColor.w);
|
||||
object->InsertEndChild(RefractionColor);
|
||||
|
||||
tinyxml2::XMLElement* SurfaceColor = doc.NewElement("SurfaceColor");
|
||||
SurfaceColor->SetAttribute("x", m_vSurfaceColor.x);
|
||||
SurfaceColor->SetAttribute("y", m_vSurfaceColor.y);
|
||||
SurfaceColor->SetAttribute("z", m_vSurfaceColor.z);
|
||||
SurfaceColor->SetAttribute("w", m_vSurfaceColor.w);
|
||||
object->InsertEndChild(SurfaceColor);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ HRESULT CMapObject_LOD::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
if (_wstring::npos != m_ModelPrototypeTags.front().find(L"Glass"))
|
||||
m_iShaderPass = 12;
|
||||
m_iShaderPass = 20; //ENUM_CLASS(SHADER_PASS_MESH::GLASS_CUBE);
|
||||
else
|
||||
m_iShaderPass = ENUM_CLASS(SHADER_PASS_MESH::DEFAULT);
|
||||
|
||||
@@ -156,6 +156,18 @@ HRESULT CMapObject_LOD::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (20 == m_iShaderPass)
|
||||
{
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_CubeTexture", m_pDefaultGlassTextureCom->Get_SRV(0))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_bSelected)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) {
|
||||
@@ -241,6 +253,11 @@ HRESULT CMapObject_LOD::Ready_Components()
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Cube_D"),
|
||||
reinterpret_cast<CComponent**>(&m_pDefaultGlassTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -294,6 +311,7 @@ void CMapObject_LOD::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDefaultGlassTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for(auto& pModel : m_pModelComs)
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "MapElement_Static.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Lake.h"
|
||||
|
||||
|
||||
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
|
||||
@@ -61,6 +62,9 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
if (FAILED(Load_MapData("Map1205")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_WaterObject("Element_Water_Info")))
|
||||
return E_FAIL;
|
||||
|
||||
/*if (FAILED(Load_LightObject("LightElement")))
|
||||
return E_FAIL;*/
|
||||
//
|
||||
@@ -1197,7 +1201,7 @@ HRESULT CMapObject_Manager::Save_LightObject(const _char* pFileName)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Light/" + string(pFileName) + ".xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
@@ -1239,7 +1243,7 @@ HRESULT CMapObject_Manager::Load_LightObject(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Light/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
@@ -1330,7 +1334,7 @@ HRESULT CMapObject_Manager::Save_InteractObject(const _char* pFileName)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Interactable/" + string(pFileName) + ".xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
@@ -1370,7 +1374,7 @@ HRESULT CMapObject_Manager::Load_InteractObject(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Interactable/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
@@ -1432,6 +1436,112 @@ HRESULT CMapObject_Manager::Load_InteractObject(const _char* pFileName)
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CMapObject_Manager::Load_WaterObject(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Water/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapObjects_Water");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Desc = {};
|
||||
|
||||
/* Model Prototypes */
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
|
||||
|
||||
string strTag = {};
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("ShollowPrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("ShollowPrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ShallowModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
auto* Scale = Object->FirstChildElement("Scale");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
auto* Rotation = Object->FirstChildElement("Rotation");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
|
||||
auto* TimeSpeed = Object->FirstChildElement("TimeSpeed");
|
||||
TimeSpeed->QueryFloatAttribute("value", &Desc.fTimeSpeed);
|
||||
|
||||
auto* RefractionStrength = Object->FirstChildElement("RefractionStrength");
|
||||
RefractionStrength->QueryFloatAttribute("value", &Desc.fRefractionStrength);
|
||||
|
||||
auto* RefractionPow = Object->FirstChildElement("RefractionPow");
|
||||
RefractionPow->QueryFloatAttribute("value", &Desc.fRefractionPow);
|
||||
|
||||
auto* UVValue1 = Object->FirstChildElement("UVValue1");
|
||||
UVValue1->QueryFloatAttribute("value", &Desc.fUVValue1);
|
||||
|
||||
auto* UVValue2 = Object->FirstChildElement("UVValue2");
|
||||
UVValue2->QueryFloatAttribute("value", &Desc.fUVValue2);
|
||||
|
||||
auto* UVValue3 = Object->FirstChildElement("UVValue3");
|
||||
UVValue3->QueryFloatAttribute("value", &Desc.fUVValue3);
|
||||
|
||||
// float2 값들
|
||||
auto* UVSpeed = Object->FirstChildElement("UVSpeed");
|
||||
UVSpeed->QueryFloatAttribute("x", &Desc.vUVSpeed.x);
|
||||
UVSpeed->QueryFloatAttribute("y", &Desc.vUVSpeed.y);
|
||||
|
||||
auto* LargeUVSpeed = Object->FirstChildElement("LargeUVSpeed");
|
||||
LargeUVSpeed->QueryFloatAttribute("x", &Desc.vLargeUVSpeed.x);
|
||||
LargeUVSpeed->QueryFloatAttribute("y", &Desc.vLargeUVSpeed.y);
|
||||
|
||||
auto* SubUVSpeed3 = Object->FirstChildElement("SubUVSpeed3");
|
||||
SubUVSpeed3->QueryFloatAttribute("x", &Desc.vSubUVSpeed3.x);
|
||||
SubUVSpeed3->QueryFloatAttribute("y", &Desc.vSubUVSpeed3.y);
|
||||
|
||||
// float4 값들
|
||||
auto* RefractionColor = Object->FirstChildElement("RefractionColor");
|
||||
RefractionColor->QueryFloatAttribute("x", &Desc.vRefractionColor.x);
|
||||
RefractionColor->QueryFloatAttribute("y", &Desc.vRefractionColor.y);
|
||||
RefractionColor->QueryFloatAttribute("z", &Desc.vRefractionColor.z);
|
||||
RefractionColor->QueryFloatAttribute("w", &Desc.vRefractionColor.w);
|
||||
|
||||
auto* SurfaceColor = Object->FirstChildElement("SurfaceColor");
|
||||
SurfaceColor->QueryFloatAttribute("x", &Desc.vSurfaceColor.x);
|
||||
SurfaceColor->QueryFloatAttribute("y", &Desc.vSurfaceColor.y);
|
||||
SurfaceColor->QueryFloatAttribute("z", &Desc.vSurfaceColor.z);
|
||||
SurfaceColor->QueryFloatAttribute("w", &Desc.vSurfaceColor.w);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Lake"), &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
//MSG_BOX("Successed to Create Interactalbe Element");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
void CMapObject_Manager::Update_PrototypeList()
|
||||
{
|
||||
GUI::Begin("Model Prototype List");
|
||||
|
||||
@@ -46,9 +46,9 @@ HRESULT CTerrain::Initialize(void* pArg)
|
||||
|
||||
if(!m_isEdit)
|
||||
{
|
||||
m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin");
|
||||
m_pAlphaMap->Load_ToFile(pDesc->strAlphaMapTag.c_str());
|
||||
|
||||
if (FAILED(m_pVIBufferCom->Load_HeightMap("Hogsmeade_HeightMap.bin")))
|
||||
if (FAILED(m_pVIBufferCom->Load_HeightMap(pDesc->strHeightMapTag.c_str())))
|
||||
return E_FAIL;
|
||||
}
|
||||
// Psx 적용할지 안할지
|
||||
@@ -158,11 +158,6 @@ HRESULT CTerrain::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Mask"), reinterpret_cast<CComponent**>(&m_pMaskTextureCom), nullptr))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -301,7 +296,6 @@ void CTerrain::Free()
|
||||
SAFE_RELEASE(m_pDiffuseTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pMROTextureCom);
|
||||
SAFE_RELEASE(m_pMaskTextureCom);
|
||||
}
|
||||
|
||||
void CTerrain::Describe_Entity()
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Editor
|
||||
|
||||
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP, UI, EFFECT, PHYSX, BLOOM, END };
|
||||
enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END };
|
||||
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_LIGHT };
|
||||
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_LIGHT, ELEMENT_LAKE};
|
||||
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
|
||||
|
||||
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END };
|
||||
|
||||
@@ -14,7 +14,19 @@ class CMapElement_Lake final : public CMapElement
|
||||
public:
|
||||
typedef struct tagMapObejct_Lake_Desc : public MAPOBJECT_LOD_DESC
|
||||
{
|
||||
vector<_wstring> SurfaceModelPrototypeTags;
|
||||
_bool bEdit;
|
||||
_float fTimeSpeed;
|
||||
_float fRefractionStrength;
|
||||
_float fRefractionPow;
|
||||
_float fUVValue1;
|
||||
_float fUVValue2;
|
||||
_float fUVValue3;
|
||||
_float2 vUVSpeed ;
|
||||
_float2 vLargeUVSpeed;
|
||||
_float2 vSubUVSpeed3;
|
||||
_float4 vRefractionColor;
|
||||
_float4 vSurfaceColor;
|
||||
vector<_wstring> ShallowModelPrototypeTags;
|
||||
}MAPOBJECT_LAKE_DESC;
|
||||
|
||||
private:
|
||||
@@ -29,6 +41,8 @@ class CMapElement_Lake final : public CMapElement
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
vector<CModel*> m_pShallowModels = {};
|
||||
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pNormalLargeTextureCom = { nullptr };
|
||||
CTexture* m_pNormalSubTextureCom = { nullptr };
|
||||
@@ -37,22 +51,31 @@ class CMapElement_Lake final : public CMapElement
|
||||
CTexture* m_pCubeMapTextureCom = { nullptr };
|
||||
CTexture* m_pRefractionTextureCom = { nullptr };
|
||||
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fTimeSpeed = { 0.02f };
|
||||
|
||||
_float m_fRefractionStrength = {0.18f};
|
||||
_float m_fRefractionPow = {10.f};
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fUVValue = {0.02f};
|
||||
|
||||
_float m_fUVValue1 = {30.f};
|
||||
_float m_fUVValue2 = {20.f};
|
||||
_float m_fUVValue3 = {10.f};
|
||||
|
||||
_float m_fSpecularIntensity = {0.6f};
|
||||
|
||||
_float m_fUVSpeed1 = { -0.1f };
|
||||
_float m_fUVSpeed2 = { 0.05f };
|
||||
_float m_fUVSpeed3 = { 0.01f };
|
||||
_float2 m_vUVSpeed = {};
|
||||
_float2 m_vLargeUVSpeed = {};
|
||||
_float2 m_vSubUVSpeed3 = {};
|
||||
|
||||
_float4 m_vRefractionColor = {};
|
||||
_float4 m_vSurfaceColor = {};
|
||||
|
||||
#pragma region EDITOR
|
||||
_bool m_bEdit = { false };
|
||||
_char m_szSaveName[MAX_PATH] = {};
|
||||
vector<_wstring> m_ShallowModelPrototypeTags;
|
||||
#pragma endregion
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
@@ -65,6 +88,7 @@ class CMapElement_Lake final : public CMapElement
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
virtual HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -39,6 +39,9 @@ class CMapObject_LOD final : public CMapObject // LOD 있는 애들
|
||||
|
||||
_uint m_iLodIndex = {};
|
||||
_uint m_iShaderPass = {};
|
||||
_float m_fGlassRatio = {0.5f};
|
||||
|
||||
CTexture* m_pDefaultGlassTextureCom = { nullptr };
|
||||
|
||||
vector<_wstring> m_ModelPrototypeTags;
|
||||
vector<_uint> m_ModelPathIndices = { };
|
||||
|
||||
@@ -67,6 +67,8 @@ class CMapObject_Manager final : public CGameObject
|
||||
|
||||
HRESULT Save_InteractObject(const _char* pFileName);
|
||||
HRESULT Load_InteractObject(const _char* pFileName);
|
||||
|
||||
HRESULT Load_WaterObject(const _char* pFileName);
|
||||
#pragma endregion
|
||||
|
||||
void Update_PrototypeList();
|
||||
|
||||
@@ -22,6 +22,8 @@ class CTerrain final : public CGameObject
|
||||
_uint iAlphaSizeY;
|
||||
_float3 vPosition;
|
||||
_wstring strBufferTag;
|
||||
_string strHeightMapTag;
|
||||
_string strAlphaMapTag;
|
||||
}TERRAIN_DESC;
|
||||
|
||||
private:
|
||||
@@ -43,7 +45,6 @@ class CTerrain final : public CGameObject
|
||||
CTexture* m_pDiffuseTextureCom = { nullptr };
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pMROTextureCom = { nullptr };
|
||||
CTexture* m_pMaskTextureCom = { nullptr };
|
||||
|
||||
CRigidBody_Static* m_pRigidBody = { nullptr };
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ HRESULT CInstance_Model::Assimp_Model_Load(const _char* pModelFilePath, MODEL eT
|
||||
_uint iFlag = {};
|
||||
iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast;
|
||||
|
||||
if (MODEL::NONANIM == eType || MODEL::PBR_NONANIM == eType || MODEL::ENVIROMENT == eType) {
|
||||
if (MODEL::NONANIM == eType || MODEL::PBR_NONANIM == eType || MODEL::ENVIRONMENT == eType) {
|
||||
iFlag |= aiProcess_PreTransformVertices;
|
||||
}
|
||||
m_iRootBoneIndex = iRootBoneIndex;
|
||||
|
||||
@@ -77,7 +77,7 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, vector<class CBone*>& Bones, co
|
||||
{
|
||||
case Engine::MODEL::NONANIM:
|
||||
case Engine::MODEL::PBR_NONANIM:
|
||||
case Engine::MODEL::ENVIROMENT:
|
||||
case Engine::MODEL::ENVIRONMENT:
|
||||
case Engine::MODEL::NONANIM_LOCAL:
|
||||
hr = Ready_VertexBuffer_For_NonAnim(pAIMesh, PreTransformMatrix);
|
||||
break;
|
||||
@@ -206,7 +206,7 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh*
|
||||
{
|
||||
case Engine::MODEL::NONANIM:
|
||||
case Engine::MODEL::PBR_NONANIM:
|
||||
case Engine::MODEL::ENVIROMENT:
|
||||
case Engine::MODEL::ENVIRONMENT:
|
||||
hr = Ready_VertexBuffer_For_NonAnim(_SaveMesh, PreTransformMatrix);
|
||||
break;
|
||||
|
||||
|
||||
@@ -1162,7 +1162,7 @@ _bool CModel::SaveAssimpModel(const _char* filename)
|
||||
}
|
||||
}
|
||||
|
||||
if (MODEL::ENVIROMENT == m_eType)
|
||||
if (MODEL::ENVIRONMENT == m_eType)
|
||||
{
|
||||
fwrite(&m_fRadius, sizeof(_float), 1, fp);
|
||||
fwrite(&m_vRadiusOffset, sizeof(_float3), 1, fp);
|
||||
@@ -1208,7 +1208,7 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma
|
||||
_uint iFlag = {};
|
||||
iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast;
|
||||
|
||||
if (MODEL::NONANIM == eType || MODEL::PBR_NONANIM == eType || MODEL::ENVIROMENT == eType || MODEL::NONANIM_LOCAL == eType) {
|
||||
if (MODEL::NONANIM == eType || MODEL::PBR_NONANIM == eType || MODEL::ENVIRONMENT == eType || MODEL::NONANIM_LOCAL == eType) {
|
||||
iFlag |= aiProcess_PreTransformVertices;
|
||||
}
|
||||
m_iRootBoneIndex = iRootBoneIndex;
|
||||
@@ -1230,7 +1230,7 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma
|
||||
}
|
||||
#pragma endregion
|
||||
#pragma region Material
|
||||
if (MODEL::ENVIROMENT == eType)
|
||||
if (MODEL::ENVIRONMENT == eType)
|
||||
{
|
||||
if (FAILED(Ready_Materials_FromFile(m_pAIScene, pModelFilePath))) {
|
||||
return E_FAIL;
|
||||
@@ -1627,7 +1627,7 @@ _bool CModel::LoadData(const _char* filename)
|
||||
NewModel.Materials.push_back(pMAt);
|
||||
}
|
||||
|
||||
if (MODEL::ENVIROMENT == m_eType)
|
||||
if (MODEL::ENVIRONMENT == m_eType)
|
||||
{
|
||||
fread(&m_fRadius, sizeof(_float), 1, fp);
|
||||
fread(&m_vRadiusOffset, sizeof(_float3), 1, fp);
|
||||
|
||||
@@ -231,7 +231,7 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS
|
||||
|
||||
|
||||
#pragma region READ_DATA
|
||||
string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath);
|
||||
string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath);
|
||||
|
||||
ifstream in(strFilePath, ios::binary);
|
||||
|
||||
@@ -484,7 +484,7 @@ void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY)
|
||||
|
||||
HRESULT CVIBuffer_Terrain::Load_HeightMap(const _char* pFilePath)
|
||||
{
|
||||
string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath);
|
||||
string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath);
|
||||
|
||||
ifstream in(strFilePath, ios::binary);
|
||||
|
||||
@@ -540,7 +540,7 @@ void CVIBuffer_Terrain::Set_CullingRadius(_float fRaduis)
|
||||
|
||||
HRESULT CVIBuffer_Terrain::Save_HeightMap(const _char* pFilePath)
|
||||
{
|
||||
string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath);
|
||||
string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath);
|
||||
|
||||
ofstream out(strFilePath, ios::binary);
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ enum class PXBODYSTATE {
|
||||
enum class MOUSEKEYSTATE { LBUTTON, RBUTTON, WBUTTON, XBUTTON };
|
||||
enum class MOUSEMOVESTATE { X, Y, W };
|
||||
enum class D3DTS { VIEW, PROJ, VIEW_INV, PROJ_INV, END };
|
||||
enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIROMENT, ANIM_LOCAL,NONANIM_LOCAL};
|
||||
enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIRONMENT, ANIM_LOCAL,NONANIM_LOCAL};
|
||||
|
||||
enum class NAVI_POINT { A, B, C, END };
|
||||
enum class NAVI_LINE { AB, BC, CA, END };
|
||||
|
||||