Merge branch 'Develope' of https://github.com/SpicyGangjeong/Team3D into Develope
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user