Merge pull request #671 from SpicyGangjeong/Develope

[Follow]
This commit is contained in:
qordlsgur
2026-01-06 12:12:02 +09:00
committed by GitHub
96 changed files with 3218 additions and 256 deletions
@@ -179,6 +179,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Goblin_Assassin.h" />
<ClInclude Include="..\Public\Goblin_Assassin_Spector.h" />
<ClInclude Include="..\Public\Goblin_Sword.h" />
<ClInclude Include="..\Public\Human_Duelist.h" />
<ClInclude Include="..\public\InstancedProp_Light.h" />
<ClInclude Include="..\Public\RandomNpc.h" />
<ClInclude Include="..\Public\Ranrok_Breath.h" />
@@ -458,6 +459,8 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Goblin_Assassin_Spector.cpp" />
<ClCompile Include="..\Private\Goblin_Assassin_States.cpp" />
<ClCompile Include="..\Private\Goblin_Sword.cpp" />
<ClCompile Include="..\Private\Human_Duelist.cpp" />
<ClCompile Include="..\Private\Human_Duelist_States.cpp" />
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp" />
<ClCompile Include="..\Private\RandomNpc.cpp" />
@@ -854,6 +854,9 @@
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
</ClInclude>
<ClInclude Include="..\Public\Human_Duelist.h">
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1758,6 +1761,9 @@
<Filter Include="02.GameObjects\NPC\Ally\RandomNpc">
<UniqueIdentifier>{88b62177-01fc-424d-a444-4fb5fd4b2db5}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\NPC\Hostile\Human_Duelist">
<UniqueIdentifier>{9bd903be-dc05-4dd6-9abc-d676be0b7f7e}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land">
<UniqueIdentifier>{9cf44fef-f3be-409e-b530-6aef90db5c0c}</UniqueIdentifier>
</Filter>
@@ -2565,6 +2571,12 @@
<ClCompile Include="..\Private\RandomNpc.cpp">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClCompile>
<ClCompile Include="..\Private\Human_Duelist.cpp">
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
</ClCompile>
<ClCompile Include="..\Private\Human_Duelist_States.cpp">
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
</ClCompile>
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp">
<Filter>02.GameObjects\Player\Robe</Filter>
</ClCompile>
@@ -64,9 +64,6 @@ void CAvadakedavra::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
}
void CAvadakedavra::Late_Update(_float fTimeDelta)
@@ -90,7 +87,6 @@ void CAvadakedavra::Late_Update(_float fTimeDelta)
OnCollision(this, &CollisionInfo);
}
}
HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg)
@@ -332,6 +332,11 @@ void CCamPosition_Shoulder::Set_CameraShake(_float fXShock, _float fYShock)
m_vAccRealDegrees.x = fXShock;
m_vAccRealDegrees.y = fYShock;
}
void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex)
{
m_bPlayAnim = true;
m_pModelCom->Set_AnimationIndex(iIndex,false);
}
_vector CCamPosition_Shoulder::Get_ShoulderGlobalPos()
{
// Right/Left 숄더를 로컬 X 부호로 결정
@@ -865,6 +865,8 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
{
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
tagCollInfo.pObject = pUserData->pOwner;
tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE);
tagCollInfo.fDamage = 10.f;
switch (pUserData->eKind)
{
@@ -81,6 +81,9 @@ HRESULT CGoblin::Initialize(void* pArg)
if (pSender == this)
return;
if (isDead())
return;
m_pFSM->Change_State(FSMSTATE::FEAR);
});
@@ -72,6 +72,9 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg)
if (pSender == this)
return;
if (isDead())
return;
m_pFSM->Change_State(FSMSTATE::FEAR);
});
@@ -342,8 +345,6 @@ HRESULT CGoblin_Assassin::Render_Shadow(SHADOW eType)
HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
{
ID3D11RasterizerState* pPrevRS = nullptr;
m_pContext->RSGetState(&pPrevRS);
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
@@ -360,16 +361,12 @@ HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom)))
return E_FAIL;
m_pContext->RSSetState(m_pRS_Wireframe);
m_pContext->VSSetShaderResources(26, 1, &pSRV);
if (FAILED(m_pModelCom->Render(i)))
return E_FAIL;
}
m_pContext->RSSetState(pPrevRS);
if (pPrevRS) SAFE_RELEASE(pPrevRS);
return S_OK;
}
@@ -550,15 +547,6 @@ HRESULT CGoblin_Assassin::Ready_Components()
}
}
D3D11_RASTERIZER_DESC rsDesc{};
rsDesc.FillMode = D3D11_FILL_WIREFRAME;
rsDesc.CullMode = D3D11_CULL_NONE;
rsDesc.DepthClipEnable = TRUE;
HRESULT hr = m_pDevice->CreateRasterizerState(&rsDesc, &m_pRS_Wireframe);
if (FAILED(hr))
return E_FAIL;
return S_OK;
@@ -714,7 +702,6 @@ void CGoblin_Assassin::Free()
SAFE_RELEASE(m_pGoblin_Particle);
SAFE_RELEASE(m_pGoblin_Particle2);
SAFE_RELEASE(m_pEffectPool);
SAFE_RELEASE(m_pRS_Wireframe);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
@@ -241,8 +241,30 @@ void CGoblin_Assassin::Behavior_SlashEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::SLASH);
_float fDisAmount = {1.f};
if (m_fTargetDistance <= 4.f)
{
fDisAmount = 1.f;
}
else if (m_fTargetDistance <= 7.f)
{
fDisAmount = 1.5f;
}
else if (m_fTargetDistance <= 10.f)
{
fDisAmount = 2.f;
}
else if (m_fTargetDistance <= 13.f)
{
fDisAmount = 2.5f;
}
else if (m_fTargetDistance <= 16.f)
{
fDisAmount = 3.f;
}
pairAnimInfo = m_Animation[STATEANIM::SLASH];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.5f,false,1.3f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, fDisAmount,false,1.3f);
Add_Event(pairAnimInfo.first,
[this]() {
@@ -304,23 +326,20 @@ void CGoblin_Assassin::Behavior_DashEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.f,false);
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::DASH)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::DASH)];
_float2 Dir8[5] =
_float2 Dir8[8] =
{
{ 0, 1 }, { 1, 1 }, { 1, 0 },
{ -1, 0 }, { -1, 1 },
{ -1, 0 }, { -1, 1 }, { 0, -1 },
{ 1, -1 }, { -1, -1 }
};
_int iIndex = m_pGameInstance->Real_Random_Int(0, 4);
_int iIndex = m_pGameInstance->Real_Random_Int(0, 7);
_float2 dir = Dir8[iIndex];
_vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
_vector vDash =
XMVector3Normalize(
vRight * dir.x +
vLook * dir.y
);
_vector vDash = XMVector3Normalize(vRight * dir.x + vLook * dir.y);
XMStoreFloat4(&m_vDashDir, vDash);
}
@@ -204,23 +204,41 @@ void CGoblin_Dagger::Dagger_Hit()
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
tagCollInfo.pObject = pUserData->pOwner;
switch (PXOBJECT(pUserData->iSubKind))
tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE);
tagCollInfo.fDamage = 10.f;
switch (pUserData->eKind)
{
case Engine::PXOBJECT::PLAYER:
{
if (false == m_bVisible) {
break;
case PHYSX_KIND::BODY_DYNAMIC:
switch (PXOBJECT(pUserData->iSubKind))
{
case PXOBJECT::SKILL_PROTEGO:
{
if (false == m_bVisible) {
break;
}
m_bVisible = false;
pUserData->pOwner->OnCollision(this, &tagCollInfo);
}
break;
}
break;
case PHYSX_KIND::CCTActor:
{
switch (PXOBJECT(pUserData->iSubKind))
{
case Engine::PXOBJECT::PLAYER:
{
if (false == m_bVisible) {
break;
}
m_bVisible = false;
pUserData->pOwner->OnCollision(this, &tagCollInfo);
}
break;
}
m_bVisible = false;
CStat* pStat = pUserData->pCharacter->Get_Owner()->Get_Component<CStat>();
pStat->Get_Damage(10.f);
pUserData->pOwner->OnCollision(this, &tagCollInfo);
}
break;
case Engine::PXOBJECT::ALLY_HITBOX:
break;
default:
break;
}
@@ -77,6 +77,9 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
if (pSender == this)
return;
if (isDead())
return;
m_pFSM->Change_State(FSMSTATE::FEAR);
});
@@ -0,0 +1,597 @@
#include "pch.h"
#include "Human_Duelist.h"
#include "CallBack_Playable_Behavior.h"
#include "CallBack_Playable_HitReport.h"
#include "Character_Controller.h"
#include "EffectPool.h"
#include "GameInstance.h"
#include "InfoInstance.h"
#include "Layer.h"
#include "Wand.h"
#include "Mesh.h"
CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
{
}
CHuman_Duelist::CHuman_Duelist(const CHuman_Duelist& Prototype)
: CUnit(Prototype),
m_pInfoInstance(CInfoInstance::GetInstance())
{
}
HRESULT CHuman_Duelist::Initialize_Prototype()
{
return S_OK;
}
HRESULT CHuman_Duelist::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components())) {
return E_FAIL;
}
if (FAILED(Ready_Parts())) {
return E_FAIL;
}
Add_FSM();
Load_AnimXML("../Bin/Resources/Data/AnimList/Human_Duelist.xml");
{
CFSM::FSM_DESC FSMDesc{};
FSMDesc.pStates = &m_States;
FSMDesc.pStateMask = &m_iStateMask;
m_pFSM->Bind_States(FSMDesc);
m_pFSM->Change_State(FSMSTATE::IDLE);
}
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
SAFE_ADDREF(m_pEffectPool);
m_pInfoInstance->Regist_PlayerAlly(this);
m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage);
{
PLAYERDESC* pDesc = static_cast<PLAYERDESC*>(pArg);
_vector vPos = XMLoadFloat4(&pDesc->vPos);
_vector vRotQ = XMLoadFloat4(&pDesc->vRotQ);
m_pCharacter_Controller->Set_Position(vPos);
m_pTransformCom->Set_State(STATE::POSITION, vPos);
m_pTransformCom->Rotation(vRotQ);
}
m_bAI = false;
m_pModelCom->Set_DisableRootMotionScale(true);
return S_OK;
}
void CHuman_Duelist::Priority_Update(_float fTimeDelta)
{
SetGravity();
m_pTransformCom->RewindMomentum();
__super::Priority_Update(fTimeDelta);
}
void CHuman_Duelist::Update(_float fTimeDelta)
{
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
Play_Event();
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
{ // 세트
m_pCallBack_HitReport->BeginFrame();
m_pCharacter_Controller->Move(fTimeDelta);
m_pCallBack_HitReport->Set_CurrentSlop();
}
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
}
void CHuman_Duelist::Late_Update(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
#ifdef _DEBUG
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
#endif // _DEBUG
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
__super::Late_Update(fTimeDelta);
}
HRESULT CHuman_Duelist::Render()
{
if (!m_bVisible) {
return S_OK;
}
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
_float fIntensity = 0.f;
m_pShaderCom->Bind_RawValue("g_fMBIntensity", &fIntensity, sizeof(_float));
RENDER eType = m_pGameInstance->Get_CurrentRenderPass();
if (RENDER::NONBLEND == eType) {
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrices(
"g_OffsetMatrix", m_pModelCom->Get_OffsetMatrix(i).data(),
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
{
return E_FAIL;
}
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
#ifdef _DEBUG
//m_pCharacter_Controller->Render();
#endif // _DEBUG
}
#ifdef _DEBUG
if (RENDER::NONLIGHT == eType) {
//m_pRigidBody->Render();
}
#endif
return S_OK;
}
HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType)
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
return E_FAIL;
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
m_pModelCom->Get_OffsetMatrix(i).data(),
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
{
return E_FAIL;
}
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) {
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) {
return E_FAIL;
}
}
else {
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
return E_FAIL;
}
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc)
{
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
if (CollisionDesc) {
Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir));
m_eHitType = CollisionDesc->eHitType;
m_pStat->Get_Damage(CollisionDesc->fDamage);
}
else {
m_fHitDegree = -1.f;
}
if (m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_NONE))
m_pFSM->Change_State(FSMSTATE::HIT);
}
void CHuman_Duelist::OnHit(CGameObject* pOther, CGameObject* pCaller)
{
}
HRESULT CHuman_Duelist::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
Desc.fSpeedPerSec = 10.f;
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
Desc.fRadius = 10.f;
if (FAILED(__super::Ready_Components(&Desc))) {
return E_FAIL;
}
m_strModelPrototypeTag = TEXT("Prototype_Component_M_Student_Model");
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
return E_FAIL;
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
return E_FAIL;
}
LightDesc.eType = LIGHT::POINT;
LightDesc.fRange = 10.f;
LightDesc.iLevel = NEXT_LEVEL;
LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
LightDesc.vAmbient = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f);
LightDesc.vDiffuse = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f);
LightDesc.vSpecular = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f);
if (FAILED(Add_Component<CLight>(g_iStaticLevel, &m_pLightCom, &LightDesc))) {
return E_FAIL;
}
m_pStat = m_pInfoInstance->Get_PlayerStatPtr();
m_Components.push_back(m_pStat);
SAFE_ADDREF(m_pStat);
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.001f;
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.02f };
Desc.fRadius = 0.5f;
Desc.fHeight = 0.6f;
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create();
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create();
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
Desc.fWalkableSlope = 45.f;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
return E_FAIL;
}
m_pCharacter_Controller->SetGravity(false);
}
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
return S_OK;
}
HRESULT CHuman_Duelist::Ready_Parts()
{
CWand::WAND_DESC WandDesc{};
WandDesc.pParentTransform = m_pTransformCom;
WandDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand");
if (FAILED(Add_PartObject<CWand>("Wand", g_iStaticLevel, nullptr, &WandDesc)))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CHuman_Duelist::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder)
{
_bool bUseColorMixer = false;
_uint iColorParam = { UINT_MAX };
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
switch (PLAYER_MESH_ORDER(iMeshOrder))
{
case PLAYER_MESH_ORDER::HAIR_MAIN:
case PLAYER_MESH_ORDER::HEAD_EYELASH:
case PLAYER_MESH_ORDER::HAIR_SUB:
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
break;
case PLAYER_MESH_ORDER::LOWER:
bUseColorMixer = true;
iColorParam = 0x292557;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
case PLAYER_MESH_ORDER::SHOES:
bUseColorMixer = true;
iColorParam = 0x614242;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
case PLAYER_MESH_ORDER::UPPER:
bUseColorMixer = true;
iColorParam = 0xBFAC29;
fMixerFactor = 0.658333f;
iColorMixerMethod = 1;
break;
#ifdef 기무리
case PLAYER_MESH_ORDER::ROBE_CLOTH:
{
CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
_uint MeshBoneCount = pMesh->Get_NumBone();
for (_uint i = 0; i < MeshBoneCount; ++i)
{
XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
}
_uint temp = 0;
vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
vector<_int> boneIndices = pMesh->Get_BoneIndices();
for (_uint i = 0; i < MeshBoneCount; ++i)
{
_uint global = boneIndices[i];
if (global == 38)
continue;
if (globalMask[global] == 1)
{
SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
}
}
GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrices(
"g_BoneMatrices",
SkinMatrices.data(),
(_int)SkinMatrices.size()
)))
{
return E_FAIL;
}
}
break;
#endif // _DEBUG
default:
break;
}
if (true == bUseColorMixer) {
if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) {
return E_FAIL;
}
}
return S_OK;
}
void CHuman_Duelist::SetGravity()
{
PSX::PxControllerCollisionFlags eCollisionFlags = m_pCharacter_Controller->Get_CollisionFlags();
eCollisionFlags;
if (false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN)
&& false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) {
if (false == m_pFSM->IsEnable(FSMSTATE::JUMP) && m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_HEAVY)) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on
m_pCharacter_Controller->SetGravity(true);
}
else { // 점프 중일 땐 off
m_pCharacter_Controller->SetGravity(false);
}
}
else { // 벽에 닿는중일 땐 항상 중력 off
m_pCharacter_Controller->SetGravity(false);
}
}
_matrix CHuman_Duelist::Get_WandPos()
{
CWand* pWand = Get_PartObject<CWand>();
if (pWand == nullptr)
return _matrix();
return pWand->Get_WorldMatrix();
}
CHuman_Duelist* CHuman_Duelist::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CHuman_Duelist* pInstance = new CHuman_Duelist(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CHuman_Duelist");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CHuman_Duelist::Clone(void* pArg, CGameObject* pOwner)
{
CHuman_Duelist* pInstance = new CHuman_Duelist(*this);
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CHuman_Duelist");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CHuman_Duelist::Free()
{
__super::Free();
if (nullptr != m_pInfoInstance) {
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
pInfo->Deregist_PlayerAlly(this);
}
if (nullptr != m_pCallBack_Behavior) {
m_pCallBack_Behavior->Finalize();
}
if (nullptr != m_pCallBack_HitReport) {
m_pCallBack_HitReport->Finalize();
}
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pLightCom);
SAFE_RELEASE(m_pStat);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
SAFE_RELEASE(m_pEffectPool);
}
#ifdef _DEBUG
void CHuman_Duelist::Describe_Entity()
{
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
if (GUI::CollapsingHeader("HUMAN_DUELIST_DESC")) {
if (true == GUI::Button("ShaderRefresh")) {
m_pShaderCom->Shader_Refresh();
}
m_pCharacter_Controller->Describe_Entity();
_float4 vMomentum = {};
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
_char label[256];
for (auto& iter : m_KeyFrames)
{
sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second);
GUI::Text(label);
}
_float3 Pos;
XMStoreFloat3(&Pos, Get_WorldPostion());
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
GUI::DragFloat3("Pos", Pos3);
_float RotR, RotU, RotL;
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
float Rot3[3] = { RotR, RotU,RotL };
GUI::DragFloat3("Rot", Rot3);
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
GUI::Text(AnimList.c_str());
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed());
GUI::Checkbox("Render", &m_bVisible);
GUI::Text("%d", m_iStateMask);
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
m_pLightCom->Describe_Entity();
}
GUI::End();
}
#endif // _DEBUG
@@ -0,0 +1,190 @@
#include "pch.h"
#include "Human_Duelist.h"
#include "InfoInstance.h"
#include "GameInstance.h"
#include "Wand.h"
#include "Character_Controller.h"
#include "CallBack_Playable_Behavior.h"
#include "CallBack_Playable_HitReport.h"
#pragma region STATE
#include "State_Idle.h"
#include "State_Move.h"
#include "State_Combat.h"
#include "State_LightAttack.h"
#include "State_Spell.h"
#include "State_Shield.h"
#include "State_Hit.h"
#pragma endregion
#include "EffectPool.h"
void CHuman_Duelist::Behavior_IdleEnter()
{
m_pFSM->Enable_State(FSMSTATE::IDLE);
}
HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta)
{
return S_OK;
}
void CHuman_Duelist::Behavior_IdleExit()
{
m_pFSM->Disable_State(FSMSTATE::IDLE);
}
void CHuman_Duelist::Behavior_CombatEnter()
{
m_pFSM->Enable_State(FSMSTATE::COMBAT);
}
HRESULT CHuman_Duelist::Behavior_CombatExitCheck()
{
return S_OK;
}
void CHuman_Duelist::Behavior_CombatExit()
{
m_pFSM->Disable_State(FSMSTATE::COMBAT);
}
void CHuman_Duelist::Behavior_LightAttackEnter()
{
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
}
HRESULT CHuman_Duelist::Behavior_LightAttackExitCheck(_float fTimeDelta)
{
return S_OK;
}
void CHuman_Duelist::Behavior_LightAttackExit()
{
m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK);
}
void CHuman_Duelist::Behavior_SpellEnter()
{
m_pFSM->Enable_State(FSMSTATE::SPELL);
}
HRESULT CHuman_Duelist::Behavior_SpellExitCheck()
{
return S_OK;
}
void CHuman_Duelist::Behavior_SpellExit()
{
m_pFSM->Disable_State(FSMSTATE::SPELL);
}
void CHuman_Duelist::Behavior_ShieldEnter()
{
m_pFSM->Enable_State(FSMSTATE::SHIELD);
}
HRESULT CHuman_Duelist::Behavior_ShieldExitCheck()
{
return S_OK;
}
void CHuman_Duelist::Behavior_ShieldExit()
{
m_pFSM->Disable_State(FSMSTATE::SHIELD);
}
void CHuman_Duelist::Behavior_HitEnter()
{
m_pFSM->Enable_State(FSMSTATE::HIT);
}
HRESULT CHuman_Duelist::Behavior_HitExitCheck()
{
return S_OK;
}
void CHuman_Duelist::Behavior_HitExit()
{
m_pFSM->Disable_State(FSMSTATE::HIT);
}
void CHuman_Duelist::Add_FSM()
{
#pragma region Behavior_Movement_NotFocus
{
CState_Idle::STATE_IDLE_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(fTimedelta); };
Desc.funcExitEvent = [this]() { Behavior_IdleExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
}
#pragma endregion
#pragma region Behavior_Combat
{
CState_Combat::STATE_COMBAT_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); };
Desc.funcExitEvent = [this]() { Behavior_CombatExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc));
}
{
CState_LightAttack::STATE_LIGHTATTACK_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_LightAttackEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_LightAttackExitCheck(fTimedelta); };
Desc.funcExitEvent = [this]() { Behavior_LightAttackExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::LIGHT_ATTACK, CState_LightAttack::Create(&Desc));
}
{
CState_Spell::STATE_SPELL_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_SpellEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_SpellExitCheck(); };
Desc.funcExitEvent = [this]() { Behavior_SpellExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::SPELL, CState_Spell::Create(&Desc));
}
{
CState_Shield::STATE_SHIELD_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_ShieldEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(); };
Desc.funcExitEvent = [this]() { Behavior_ShieldExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::SHIELD, CState_Shield::Create(&Desc));
}
#pragma endregion
#pragma region Behavior_Hit
{
CState_Hit::STATE_HIT_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(); };
Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
}
#pragma endregion
}
@@ -107,10 +107,18 @@ HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit)
void CInfoInstance::Get_LockOnInfo(LOCKON_INFO& Info)
{
if (false == m_bSearchLockOnTarget) {
return;
}
Info.pUnit = m_pMonsterInfo->Get_LockOnUnit();
Info.pInteractive = m_pInteractiveInfo->Get_LockOnUnit();
}
void CInfoInstance::Set_SearchLockOnFlag(_bool bLockOn)
{
m_bSearchLockOnTarget = bLockOn;
}
pair<CUnit*, CTransform*> CInfoInstance::Get_NearestPlayerAlly(_fvector vPos)
{
return m_pMonsterInfo->Get_NearestPlayerAlly(vPos);
+46 -2
View File
@@ -10,6 +10,7 @@ CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
CLand::CLand(const CLand& rhs)
: CGameObject(rhs)
, m_fUsingSurfaceParams(rhs.m_fUsingSurfaceParams)
{
}
@@ -33,8 +34,8 @@ HRESULT CLand::Render()
return E_FAIL;
}
if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom)))
return E_FAIL;
//if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom)))
// return E_FAIL;
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::LAND)))) {
return E_FAIL;
@@ -71,6 +72,8 @@ HRESULT CLand::Render_Shadow(SHADOW eType)
HRESULT CLand::Initialize_Prototype()
{
m_fUsingSurfaceParams = MRO_PARAMETER;
return S_OK;
}
@@ -108,6 +111,26 @@ HRESULT CLand::Ready_Components(void* pArg)
reinterpret_cast<CComponent**>(&m_pShaderCom))))
return E_FAIL;
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Diffuse"), reinterpret_cast<CComponent**>(&m_pDiffuseTextureCom), nullptr))) {
return E_FAIL;
}
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Normal"), reinterpret_cast<CComponent**>(&m_pNormalTextureCom), nullptr))) {
return E_FAIL;
}
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_MRO"), reinterpret_cast<CComponent**>(&m_pMROTextureCom), nullptr))) {
return E_FAIL;
}
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, pDesc->strAlphaMapTag, reinterpret_cast<CComponent**>(&m_pMaskTextureCom), nullptr))) {
return E_FAIL;
}
return S_OK;
}
@@ -129,6 +152,22 @@ HRESULT CLand::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) {
return E_FAIL;
}
if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) {
return E_FAIL;
}
if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pMaskTextureCom->Get_SRV(0)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float))))
return E_FAIL;
return S_OK;
}
@@ -161,6 +200,11 @@ void CLand::Free()
{
__super::Free();
SAFE_RELEASE(m_pDiffuseTextureCom);
SAFE_RELEASE(m_pNormalTextureCom);
SAFE_RELEASE(m_pMROTextureCom);
SAFE_RELEASE(m_pMaskTextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
+135 -43
View File
@@ -23,6 +23,7 @@
#pragma region ACTOR
#include "Player.h"
#include "Human_Duelist.h"
#include "Troll.h"
#include "Goblin.h"
#include "Goblin_Mage.h"
@@ -81,6 +82,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(Ready_Background())) {
return E_FAIL;
}
if (FAILED(Ready_Land())) {
return E_FAIL;
}
if (FAILED(Ready_Markers())) {
return E_FAIL;
}
@@ -266,48 +270,6 @@ HRESULT CLevel_GamePlay::Ready_Background()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) {
return E_FAIL;
}
CLand::LAND_DESC Land_Desc = {};
/* South_Hogwart_Land */
Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* North_Hogwart_Land */
Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* North_Hogwart2_Land */
Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* West_Hogwart_Land */
Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* East_Hogsmeade_Land */
Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* 물 오브젝트 */
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) {
@@ -383,6 +345,125 @@ HRESULT CLevel_GamePlay::Ready_Background()
return S_OK;
}
HRESULT CLevel_GamePlay::Ready_Land()
{
CLand::LAND_DESC Land_Desc = {};
/* South_Hogwart_Land */
Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
Land_Desc.strAlphaMapTag = L"Land_HN_BC_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* North_Hogwart_Land */
Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
Land_Desc.strAlphaMapTag = L"Land_HN_AV_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* North_Hogwart2_Land */
Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
Land_Desc.strAlphaMapTag = L"Land_HN_AU_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* West_Hogwart_Land */
Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
Land_Desc.strAlphaMapTag = L"Land_HN_AZ_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* East_Hogsmeade_Land */
Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
Land_Desc.strAlphaMapTag = L"Land_HN_AY_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BA */
Land_Desc.vPosition = _float3(-606.f, 70.f, -647.7f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BA";
Land_Desc.strAlphaMapTag = L"Land_HN_BA_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BD */
Land_Desc.vPosition = _float3(201.4f, -22.9f, -650.1f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BD";
Land_Desc.strAlphaMapTag = L"Land_HN_BD_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BG */
Land_Desc.vPosition = _float3(-377.8f, 5.f, -1038.49f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BG";
Land_Desc.strAlphaMapTag = L"Land_HN_BG_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BH */
Land_Desc.vPosition = _float3(80.1f, -63.f, -908.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BH";
Land_Desc.strAlphaMapTag = L"Land_HN_BH_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BE */
Land_Desc.vPosition = _float3(431.2f, 100.1f, -658.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BE";
Land_Desc.strAlphaMapTag = L"Land_HN_BE_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BF */
Land_Desc.vPosition = _float3(-688.9f, 170.7f, -1066.f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BF";
Land_Desc.strAlphaMapTag = L"Land_HN_BF_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BI */
Land_Desc.vPosition = _float3(82.7f, -61.f, -1141.6f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BI";
Land_Desc.strAlphaMapTag = L"Land_HN_BI_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* HN_BJ */
Land_Desc.vPosition = _float3(367.1f, 44.8f, -1016.f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BJ";
Land_Desc.strAlphaMapTag = L"Land_HN_BJ_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
/* TU_BB */
Land_Desc.vPosition = _float3(-829.5f, 58.3f, 112.9f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_TU_BB";
Land_Desc.strAlphaMapTag = L"Land_TU_BB_AlphaMap";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
return E_FAIL;
return S_OK;
}
HRESULT CLevel_GamePlay::Ready_Layer_Hogsmeade()
{
/* 전체 맵 */
@@ -760,7 +841,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
if (true == isLoad_NPC)
{
for (_uint i = 0; i < 12; i++)
for (_uint i = 0; i < 11; i++)
{
{
CRandomNpc::NPCDESC NPCDesc{};
@@ -774,8 +855,17 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
}
}
}
//CPlayer::PLAYERDESC playerDesc = {};
//playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
//playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHuman_Duelist>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
// return E_FAIL;
//}
}
return S_OK;
}
@@ -856,6 +946,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
return E_FAIL;
}
}
#if 진우
#else
+197 -26
View File
@@ -30,6 +30,7 @@
#pragma region ACTOR
#include "Player.h"
#include "Human_Duelist.h"
#include "PlayerRobe.h"
#include "Goblin.h"
#include "Goblin_Mage.h"
@@ -1026,7 +1027,126 @@ HRESULT CLoader::Loading_For_GamePlay()
}
}
/* LAND_MODEL */
{
/* 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::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::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::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::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::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
// -----------------
/* For.Prototype_Component_Land_HN_BA */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BD */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BE */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BF */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BG */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BH */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BI */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BJ */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_TU_BB */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
///* For.Prototype_Component_Land_HN_BA */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BD */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BG */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BH */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BE */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BF */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BI */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_HN_BJ */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
///* For.Prototype_Component_Land_TU_BB */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"),
// CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
// return E_FAIL;
}
#pragma endregion
#pragma region UI
@@ -1449,6 +1569,77 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
/* Land_HN_AU_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AU_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AU_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_AV_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AV_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AV_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_AY_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AY_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AY_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_AZ_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_AZ_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_AZ_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BA_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BA_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BA_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BC_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BC_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BC_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BD_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BD_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BD_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BE_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BE_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BE_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BF_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BF_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BF_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BG_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BG_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BG_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BH_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BH_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BH_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BI_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BI_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BI_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_HN_BJ_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_HN_BJ_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_HN_BJ_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* Land_TU_BB_AlphaMap */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Land_TU_BB_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Land_TU_BB_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
/* For.Prototype_Component_LightPost_Emissive */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Emissive"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
@@ -2120,11 +2311,10 @@ HRESULT CLoader::Loading_For_GamePlay()
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
@@ -3150,30 +3340,7 @@ HRESULT CLoader::Loading_For_GamePlay()
}
#pragma endregion
/* 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::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::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::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::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::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Hogwart_Lake */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_Lake"),
@@ -3278,6 +3445,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
return E_FAIL;
/* For.Prototype_GameObject_Human_Duelist */
if (FAILED(m_pGameInstance->Add_Prototype<CHuman_Duelist>(g_iStaticLevel, CHuman_Duelist::Create(m_pDevice, m_pContext))))
return E_FAIL;
/* For.Prototype_GameObject_BroomRacerAI */
if (FAILED(m_pGameInstance->Add_Prototype<CBroomRacerAI>(g_iStaticLevel, CBroomRacerAI::Create(m_pDevice, m_pContext))))
return E_FAIL;
@@ -75,7 +75,7 @@ void CMapElement_Chest::Update(_float fTimeDelta)
#ifdef _DEBUG
/*if(CHEST_STATE::OPENED != m_eCurState)
{
_vector vPlayerPos = m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_PLAYER)->Get_Object<CPlayer>()->Get_WorldPostion();
_vector vPlayerPos = m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_PLAYER)->Get_Object<CHuman_Duelist>()->Get_WorldPostion();
_float fDistance = XMVectorGetX(XMVector3Length(vPlayerPos - m_pTransformCom->Get_State(STATE::POSITION)));
@@ -161,12 +161,12 @@ HRESULT CMapElement_Chest::Render()
}
#ifdef _DEBUG
if (FAILED(m_pRigidBody->Render())) {
/*if (FAILED(m_pRigidBody->Render())) {
return E_FAIL;
}
}*/
#endif // _DEBUG
if (FAILED(m_pLid->Render(m_iShaderPass_Index)))
if (FAILED(m_pLid->Render(m_iShaderPass_Index)))
return E_FAIL;
return S_OK;
@@ -100,6 +100,9 @@ void CMapElement_Door::Late_Update(_float fTimeDelta)
HRESULT CMapElement_Door::Render()
{
if (m_bDead == true) {
return S_OK;
}
if (FAILED(Bind_ShaderResources()))
return E_FAIL;
@@ -24,6 +24,7 @@ HRESULT CMapElement_Static::Initialize(void* pArg)
{
MAPELEMENT_DESC* pDesc = static_cast<MAPELEMENT_DESC*>(pArg);
m_bVisible = pDesc->bVisible;
m_iMaxLodLevel = pDesc->iMaxLodLevel;
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
@@ -68,7 +69,7 @@ void CMapElement_Static::Late_Update(_float fTimeDelta)
m_fCamDepth = XMVectorGetX(XMVector3LengthSq(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - m_pTransformCom->Get_State(STATE::POSITION)));
m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (m_fRadius * m_fRadius + 40000.f)));*/
if(m_bVisible)
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
//}
}
+7 -2
View File
@@ -115,10 +115,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
{
CMapPartObject::MAPOBJECT_DESC Desc = {};
CMapElement::MAPELEMENT_DESC Desc = {};
MAPOBJECT_TYPE eType = {};
Desc.bVisible = true;
Object->QueryUnsignedAttribute("Type", (_uint*)(&eType));
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
@@ -148,6 +148,11 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType)
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc);
else if (MAPOBJECT_TYPE::ELEMENT_COLLIDER == eType)
{
Desc.bVisible = false;
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc);
}
/*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/
}
+38 -1
View File
@@ -197,6 +197,8 @@ void CPlayer::Late_Update(_float fTimeDelta)
{
m_pTransformCom->LookAt_Horizontal_Lerp(m_LockOnInfo.pUnit->Get_WorldPostion(), fTimeDelta, 5.f);
}
Player_PixRot();
}
@@ -525,7 +527,6 @@ HRESULT CPlayer::Ready_Components()
m_pStat = m_pInfoInstance->Get_PlayerStatPtr();
m_Components.push_back(m_pStat);
SAFE_ADDREF(m_pStat);
SAFE_ADDREF(m_pStat);
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
@@ -790,6 +791,31 @@ void CPlayer::SetGravity()
}
}
void CPlayer::Player_PixRot()
{
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
if (iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first ||
iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first)
{
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
vLook = XMVectorSetY(vLook, 0.f);
if (XMVector3LengthSq(vLook).m128_f32[0] < 1e-6f)
vLook = XMVectorSet(0.f, 0.f, 1.f, 0.f);
vLook = XMVector3Normalize(vLook);
_vector vRight = XMVector3Normalize(XMVector3Cross(vUp, vLook));
vLook = XMVector3Cross(vRight, vUp);
m_pTransformCom->Set_State(STATE::RIGHT, vRight);
m_pTransformCom->Set_State(STATE::UP, vUp);
m_pTransformCom->Set_State(STATE::LOOK, vLook);
}
}
void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta)
{
_vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
@@ -1002,6 +1028,17 @@ void CPlayer::Describe_Entity()
GUI::Text("Angle %.2f", degree);
_vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
auto dotRU = XMVectorGetX(XMVector3Dot(vRight, vUp));
auto dotUL = XMVectorGetX(XMVector3Dot(vUp, vLook));
auto dotLR = XMVectorGetX(XMVector3Dot(vLook, vRight));
GUI::Text("dot RU %.4f | UL %.4f | LR %.4f\n", dotRU, dotUL, dotLR);
m_pLightCom->Describe_Entity();
}
GUI::End();
@@ -1570,6 +1570,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
void CPlayer::Behavior_SpellExit()
{
m_pFSM->Disable_State(FSMSTATE::SPELL);
m_pInfoInstance->Set_SearchLockOnFlag(true);
m_pModelCom->Set_BlendDuration(0.3f);
Reset_Event();
m_bLookAt = false;
@@ -1596,6 +1597,8 @@ void CPlayer::Behavior_AncientSpellEnter()
m_pEffectPool->Use_Skill(SKILL_TYPE::LIGHTNING_SIDE, Get_PartObject<CWand>());
},
0.18f);
Get_PartObject<CCamPosition_Shoulder>()->Set_CameraAnim(17);
}
HRESULT CPlayer::Behavior_AncientSpellExitCheck()
@@ -2486,16 +2489,6 @@ HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
void CPlayer::Behavior_Broom_DismountExit()
{
m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT);
_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
_vector up = XMVector3Normalize(XMVector3Cross(look, right));
m_pTransformCom->Set_State(STATE::RIGHT, right);
m_pTransformCom->Set_State(STATE::UP, up);
m_pTransformCom->Set_State(STATE::LOOK, look);
Reset_Event();
}
@@ -2682,8 +2675,9 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
break;
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
m_pInfoInstance->Set_SearchLockOnFlag(false);
pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,false);
if (m_LockOnInfo.pUnit)
m_pTransformCom->LookAt(m_LockOnInfo.pUnit->Get_WorldPostion());
@@ -2696,6 +2690,9 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
0.f);
Info.pText = TEXT("아바다 케다브라!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
Get_PartObject<CCamPosition_Shoulder>()->Set_CameraAnim(6);
break;
case ENUM_CLASS(SKILL_TYPE::REPARO):
{
@@ -3123,7 +3120,7 @@ void CPlayer::Add_FSM()
m_pBroomTransform->Set_Scale(m_BroomScale);
}
_float3 vPlayerScale = { 1.f,1.f,1.f };
m_pBroomTransform->Set_Scale(vPlayerScale);
m_pTransformCom->Set_Scale(vPlayerScale);
Attach_Broom();
};
Desc.funcLateUpdate = nullptr;
+2 -8
View File
@@ -290,8 +290,8 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
}
break;
case 4:
m_strModelPrototypeTag = TEXT("Prototype_Component_M_Student_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("M_STUDENT"), (CComponent**)&m_pNpcStat))) {
m_strModelPrototypeTag = TEXT("Prototype_Component_Kitchen_Female_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
@@ -331,12 +331,6 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
return E_FAIL;
}
break;
case 11:
m_strModelPrototypeTag = TEXT("Prototype_Component_Kitchen_Female_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
}
/* Com_Model */
+28 -12
View File
@@ -126,21 +126,37 @@ void CTroll_Rock::RockHit()
tagCollInfo.pObject = pUserData->pOwner;
tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_HEAVY);
tagCollInfo.fDamage = 10.f;
switch (PXOBJECT(pUserData->iSubKind))
switch (pUserData->eKind)
{
case Engine::PXOBJECT::PLAYER:
{
if (false == m_bVisible) {
break;
case PHYSX_KIND::BODY_DYNAMIC:
switch (PXOBJECT(pUserData->iSubKind))
{
case PXOBJECT::SKILL_PROTEGO:
{
if (false == m_bVisible) {
break;
}
m_bVisible = false;
pUserData->pOwner->OnCollision(this, &tagCollInfo);
}
break;
}
break;
case PHYSX_KIND::CCTActor:
{
switch (PXOBJECT(pUserData->iSubKind))
{
case Engine::PXOBJECT::PLAYER:
{
if (false == m_bVisible) {
break;
}
m_bVisible = false;
pUserData->pOwner->OnCollision(this, &tagCollInfo);
}
break;
}
m_bVisible = false;
pUserData->pOwner->OnCollision(this, &tagCollInfo);
}
break;
case Engine::PXOBJECT::ALLY_HITBOX:
break;
default:
break;
}
}
}
+28 -13
View File
@@ -117,8 +117,14 @@ HRESULT CTroll::Behavior_IdleBreakExitCheck()
if (m_fTargetDistance >= 6.f)
{
if (m_pModelCom->IsFinishedAnim()) {
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
if (m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::RUSH)] == 0.f) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
else {
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
}
}
else {
@@ -143,7 +149,7 @@ void CTroll::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::JOG);
pairAnimInfo = m_Animation[STATEANIM::JOG_START];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.2f);
}
@@ -161,13 +167,20 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta)
if (fRatio >= 0.9f)
{
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f);
}
}
if (m_fTargetDistance <= 18.f && m_fTargetDistance >= 14.f) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
if (m_fTargetDistance <= 6.f) {
for (_uint i = 0; i < ENUM_CLASS(TROLL_SKILL::END); i++)
{
if (m_fSkillCoolTime[i] == 0.f)
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
}
}
@@ -179,7 +192,7 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta)
{
m_bLookAt = true;
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f);
}
return S_OK;
@@ -207,13 +220,13 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta)
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
if (fRatio >= 0.9f) {
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f);
}
}
else if (iCurrAnimIndex != m_Animation[STATEANIM::JOG_FWD].first)
{
pairAnimInfo = m_Animation[STATEANIM::JOG_START];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.2f);
}
return S_OK;
@@ -520,7 +533,7 @@ void CTroll::Behavior_SlamEnter()
m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK, this);
}, 0.3f);
Set_Easing(pairAnimInfo.first, 0.1f, 0.42f, 1.8f);
Set_Easing(pairAnimInfo.first, 0.2f, 0.42f, 1.5f);
Set_Easing(pairAnimInfo.first, 0.42f, 0.45f, 0.5f);
@@ -647,11 +660,12 @@ void CTroll::Behavior_HitEnter()
m_bLookAt = false;
if (iCurrAnimIndex == m_Animation[STATEANIM::SLAM].first)
{
if (fRatio >= 0.75f) {
if (fRatio <= 0.75f) {
pairAnimInfo = m_Animation[STATEANIM::HIT_FACE];
Add_Event(pairAnimInfo.first,
[this]() {CameraShake(10.f, 2.f, 3.f, 0.3f); },
0.1f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
}
else {
@@ -668,8 +682,9 @@ void CTroll::Behavior_HitEnter()
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3];
break;
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
HRESULT CTroll::Behavior_HitExitCheck()
@@ -28,7 +28,7 @@ class CCamPosition_Shoulder final : public CCamPosition
virtual _vector Get_WorldPostion() override;
_vector Get_ShoulderGlobalPos();
void Set_CameraShake(_float fXShock, _float fYShock);
void Set_CameraAnim(_uint iIndex);
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+1 -1
View File
@@ -3,7 +3,7 @@
namespace Client
{
enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END };
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT };
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER};
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 };
@@ -54,8 +54,6 @@ class CGoblin_Assassin final : public CMonster
class CEffectParts* m_pGoblin_Particle = { nullptr };
class CEffectParts* m_pGoblin_Particle2 = { nullptr };
class CGoblin_Assassin_Spector* m_pGoblinSpector = { nullptr };
ID3D11RasterizerState* m_pRS_Wireframe = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -0,0 +1,106 @@
#pragma once
#include "Client_Define.h"
#include "Unit.h"
#include "Player_ENUM.h"
NS_BEGIN(Client)
class CHuman_Duelist final : public CUnit
{
public:
typedef struct tagPlayerInitDesc {
_float4 vPos;
_float4 vRotQ;
}PLAYERDESC;
private:
CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CHuman_Duelist(const CHuman_Duelist& Prototype);
virtual ~CHuman_Duelist() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual HRESULT Render_Shadow(SHADOW eType) override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; }
void Set_Shield(_bool bShield) { m_bShield = bShield; }
_matrix Get_WandPos();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr };
class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr };
CLight* m_pLightCom = { nullptr };
LIGHT_DESC LightDesc = {};
CStat* m_pStat = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
void SetGravity();
void Add_SpellEvent(_uint AnimIndex, _float fRatio);
public:
static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
#pragma region STATE
private:
virtual void Add_FSM();
_bool m_bLookAt = { false };
_bool m_bSpellHit = {};
_bool m_bShield = { false };
_float m_fCross = 0.f;
_float m_fabsDir = 0.f;
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck(_float fTimeDelta);
void Behavior_IdleExit();
void Behavior_CombatEnter();
HRESULT Behavior_CombatExitCheck();
void Behavior_CombatExit();
void Behavior_LightAttackEnter();
HRESULT Behavior_LightAttackExitCheck(_float fTimeDelta);
void Behavior_LightAttackExit();
void Behavior_SpellEnter();
HRESULT Behavior_SpellExitCheck();
void Behavior_SpellExit();
void Behavior_ShieldEnter();
HRESULT Behavior_ShieldExitCheck();
void Behavior_ShieldExit();
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck();
void Behavior_HitExit();
#pragma endregion
private:
class CEffectPool* m_pEffectPool = nullptr;
};
NS_END
@@ -46,6 +46,7 @@ DECLARE_SINGLETON(CInfoInstance)
HRESULT Deregist_ActiveMonster(class CMonster* pUnit);
void Get_LockOnInfo(LOCKON_INFO& Info);
void Set_SearchLockOnFlag(_bool bLockOn);
pair<CUnit*, CTransform*> Get_NearestPlayerAlly(_fvector vPos);
class CMonster* Get_TargetMonster();
#pragma endregion
@@ -123,6 +124,7 @@ DECLARE_SINGLETON(CInfoInstance)
_float m_fBroom_Timer{};
_float m_fBroom_Booster{};
_bool m_bSearchLockOnTarget = { true };
_float m_fDamage{};
UI_STATE m_eUI_State = { UI_STATE::END };
+11 -4
View File
@@ -15,9 +15,10 @@ class CLand final : public CGameObject
public:
typedef struct tagLandDesc
{
_float3 vPosition;
_float3 vScale;
_wstring strModelComTag;
_float3 vPosition;
_float3 vScale;
_wstring strAlphaMapTag;
_wstring strModelComTag;
}LAND_DESC;
private:
CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -32,10 +33,16 @@ class CLand final : public CGameObject
virtual HRESULT Render_Shadow(SHADOW eType) override;
private:
_float m_fRaduis = {};
_float m_fUsingSurfaceParams = {};
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
_float m_fRaduis = {};
CTexture* m_pDiffuseTextureCom = { nullptr };
CTexture* m_pNormalTextureCom = { nullptr };
CTexture* m_pMROTextureCom = { nullptr };
CTexture* m_pMaskTextureCom = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
@@ -27,6 +27,7 @@ class CLevel_GamePlay final : public CLevel
HRESULT Ready_Lights();
HRESULT Ready_Volumetric();
HRESULT Ready_Background();
HRESULT Ready_Land();
HRESULT Ready_Layer_Hogsmeade();
HRESULT Ready_Layer_Hogwart();
HRESULT Ready_IntstanceProp();
@@ -14,6 +14,7 @@ class CMapElement abstract : public CGameObject
{
public:
typedef struct tagMapElement_Desc {
_bool bVisible = {};
_uint iRenderType{};
CTransform* pParentTransform = { nullptr };
_float3 vScale;
+1
View File
@@ -103,6 +103,7 @@ class CPlayer final : public CUnit
void SetGravity();
void Add_SpellEvent(_uint AnimIndex, _float fRatio);
void Play_SpellHitAnim();
void Player_PixRot();
void Update_CameraCoordinateSystem(_float fTimeDelta);
#ifdef _DEBUG
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="utf-8"?>
<Animations owner="Human_Duelist">
<!-- IDLE -->
<Anim state="IDLE" index="894" loop="true"/>
<Anim state="IDLE_AIM" index="6" loop="true"/>
<Anim state="IDLE_TURN_L" index="271" loop="false"/>
<Anim state="IDLE_TURN_R" index="431" loop="false"/>
<Anim state="IDLE_TURN_BWD" index="269" loop="false"/>
<!-- WALK -->
<Anim state="WALK_FWD" index="626" loop="true"/>
<Anim state="WALK_LEFT" index="338" loop="false"/>
<Anim state="WALK_RIGHT" index="505" loop="false"/>
<Anim state="WALK_BWD" index="353" loop="false"/>
<Anim state="WALK_STOP_L" index="345" loop="false"/>
<Anim state="WALK_STOP_R" index="508" loop="false"/>
<!-- JOG -->
<Anim state="JOG_FWD" index="168" loop="true"/>
<Anim state="JOG_LEFT" index="304" loop="false"/>
<Anim state="JOG_RIGHT" index="308" loop="false"/>
<Anim state="JOG_BWD" index="155" loop="false"/>
<Anim state="JOG_STOP" index="447" loop="false"/>
<Anim state="JOG_AIM_LEFT" index="172" loop="true"/>
<Anim state="JOG_AIM_RIGHT" index="176" loop="true"/>
<Anim state="JOG_AIM_BWD" index="167" loop="true"/>
<!-- JUMP / FALL -->
<Anim state="JUMP" index="206" loop="false"/>
<Anim state="JUMP_JOG" index="204" loop="false"/>
<Anim state="JUMP_SPRINT" index="208" loop="false"/>
<Anim state="FALL_LOOP" index="30" loop="true"/>
<!-- SPRINT -->
<Anim state="SPRINT" index="600" loop="true"/>
<!-- LAND -->
<Anim state="LAND" index="260" loop="false"/>
<Anim state="LAND_TO_JOG" index="248" loop="false"/>
<Anim state="LAND_TO_SPRINT" index="250" loop="false"/>
<Anim state="LAND_HARD" index="256" loop="false"/>
<Anim state="LAND_MID" index="258" loop="false"/>
<Anim state="LAND_SOFT" index="260" loop="false"/>
<!-- SLIDE -->
<Anim state="SLIDE_START_R" index="567" loop="false"/>
<Anim state="SLIDE_LOOP_R" index="565" loop="true"/>
<Anim state="SLIDE_STOP_R" index="569" loop="false"/>
<!-- DODGE -->
<Anim state="DODGE" index="879" loop="false"/>
<Anim state="DODGE_BLINK" index="875" loop="false"/>
<!-- SKILL / ATTACK -->
<Anim state="SKILL" index="594" loop="false"/>
<Anim state="SKILL2" index="992" loop="false"/>
<Anim state="LIGHT_ATTACK" index="414" loop="false"/>
<Anim state="LIGHT_ATTACK_180_R" index="810" loop="false"/>
<Anim state="LIGHT_ATTACK_90_L" index="802" loop="false"/>
<Anim state="LIGHT_ATTACK_90_R1" index="850" loop="false"/>
<Anim state="LIGHT_ATTACK_90_R2" index="854" loop="false"/>
<Anim state="LIGHT_ATTACK_90_R3" index="855" loop="false"/>
<!-- SPELL -->
<Anim state="SPELL" index="773" loop="false"/>
<Anim state="SPELL_180_R" index="838" loop="false"/>
<Anim state="SPELL_90_R" index="849" loop="false"/>
<Anim state="SPELL_90_L" index="823" loop="false"/>
<Anim state="SPELL_90_L2" index="827" loop="false"/>
<Anim state="MAPHELP" index="123" loop="false"/>
<Anim state="POTION" index="116" loop="false"/>
<Anim state="ACCIO" index="760" loop="false"/>
<Anim state="DESCENDO" index="858" loop="false"/>
<Anim state="DEPULSO" index="859" loop="false"/>
<Anim state="DIFFINDO" index="863" loop="false"/>
<Anim state="LUMOS" index="911" loop="true"/>
<Anim state="LUMOS_STOP" index="913" loop="false"/>
<Anim state="DISILLUSION_ENTER" index="586" loop="false"/>
<Anim state="DISILLUSION_EXIT" index="587" loop="false"/>
<Anim state="ANCIENT_THROW" index="920" loop="false"/>
<Anim state="AVADA_KEDAVRA" index="0" loop="false"/>
<!-- REPARO -->
<Anim state="REPARO_START" index="759" loop="false"/>
<Anim state="REPARO_LOOP" index="758" loop="true"/>
<Anim state="REPARO_END" index="757" loop="false"/>
<Anim state="ANCIENT_LIGHTNING" index="1002" loop="false"/>
<Anim state="SPELL_FAIL" index="907" loop="false"/>
<!-- PARRY -->
<Anim state="PARRY_180" index="954" loop="false"/>
<Anim state="PARRY2" index="914" loop="false"/>
<Anim state="PARRY3" index="916" loop="false"/>
<Anim state="PARRY4" index="922" loop="false"/>
<!-- HIT / FLINCH -->
<Anim state="HIT_L" index="1213" loop="false"/>
<Anim state="HIT_R" index="1214" loop="false"/>
<Anim state="HIT_FWD" index="1215" loop="false"/>
<Anim state="FLINCH_BWD" index="1073" loop="false"/>
<Anim state="FLINCH_FWD" index="1074" loop="false"/>
<Anim state="FLINCH_LEFT" index="1075" loop="false"/>
<Anim state="FLINCH_RIGHT" index="1076" loop="false"/>
<!-- KNOCKDOWN -->
<Anim state="KNOCKDOWN_BWD" index="1084" loop="false"/>
<Anim state="KNOCKDOWN_FWD" index="1086" loop="false"/>
<Anim state="KNOCKDOWN_BWD_SPLT" index="1088" loop="false"/>
<Anim state="KNOCKDOWN_FWD_SPLT" index="1087" loop="false"/>
<!-- GETUP -->
<Anim state="GETUP_BWD" index="1092" loop="false"/>
<Anim state="GETUP_FWD" index="1097" loop="false"/>
<!-- BROOM -->
<Anim state="BROOM_IDLE" index="711" loop="true"/>
<Anim state="BROOM_FWD" index="712" loop="true"/>
<Anim state="BROOM_LEFT" index="714" loop="true"/>
<Anim state="BROOM_RIGHT" index="715" loop="true"/>
<Anim state="BROOM_DOWN" index="713" loop="true"/>
<Anim state="BROOM_UP" index="716" loop="true"/>
<Anim state="BROOM_REVELIO" index="679" loop="false"/>
<Anim state="BROOM_TURBO_DOWN" index="717" loop="true"/>
<Anim state="BROOM_TURBO_FWD" index="718" loop="true"/>
<Anim state="BROOM_TURBO_LEFT" index="719" loop="true"/>
<Anim state="BROOM_TURBO_RIGHT" index="720" loop="true"/>
<Anim state="BROOM_TURBO_UP" index="721" loop="true"/>
<Anim state="BROOM_MOUNT" index="735" loop="false"/>
<Anim state="BROOM_MOUNT_END" index="738" loop="false"/>
<Anim state="BROOM_HOVER_START" index="700" loop="false"/>
<Anim state="BROOM_DISMOUNT" index="676" loop="false"/>
<Anim state="BROOM_HOVER_IDLE" index="704" loop="true"/>
<Anim state="BROOM_HOVER_FWD" index="701" loop="true"/>
<Anim state="BROOM_HOVER_LEFT" index="702" loop="true"/>
<Anim state="BROOM_HOVER_RIGHT" index="703" loop="true"/>
<Anim state="BROOM_HOVER_REVELIO" index="722" loop="false"/>
<!-- JOG AIM STOP -->
<Anim state="JOG_AIM_STOP_L" index="296" loop="false"/>
<Anim state="JOG_AIM_STOP_R" index="457" loop="false"/>
<Anim state="JOG_AIM_STOP_BWD" index="445" loop="false"/>
<!-- OPEN DOOR -->
<Anim state="OPEN_DOOR" index="1003" loop="false"/>
<Anim state="OPEN_DOOR_L" index="1004" loop="false"/>
<Anim state="OPEN_DOOR_R" index="1005" loop="false"/>
<!-- SPELL LEARNING -->
<Anim state="SPELL_LEARNING_FAIL" index="1289" loop="false"/>
<Anim state="SPELL_LEARNING_LOOP" index="1290" loop="true"/>
<Anim state="SPELL_LEARNING_START" index="1291" loop="false"/>
<Anim state="SPELL_LEARNING_SUCCESS" index="1292" loop="false"/>
<Anim state="SPELL_LEARNING_WANDWAVE" index="1293" loop="false"/>
</Animations>
@@ -123,7 +123,7 @@
<Scale x="0.99999696" y="1" z="0.99999696"/>
<Rotation x="0" y="149.99982" z="0"/>
</Object>
<Object Type="1" Lod_Level="0">
<Object Type="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_ConjuredDragonZoneG3_SM_ConjuredDragonZoneG3</PrototypeTag>
<Position x="-1.2299185" y="-13.802015" z="197.21222"/>
<Scale x="1" y="1" z="1"/>
@@ -0,0 +1,989 @@
<?xml version="1.0" encoding="UTF-8"?>
<Land>
<Container Name="SD_Center_Structure_Core">
<Position x="90.616638" y="61.029755" z="181.1416"/>
<Scale x="0.99999976" y="1" z="0.99999976"/>
<Rotation x="-0" y="-89.999954" z="-0"/>
<MapContainerType type="0"/>
<BoundingBox_Min x="-35.21841" y="-35.6856" z="-31.945499"/>
<BoundingBox_Max x="29.51535" y="56.519848" z="31.1311"/>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_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" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_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" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_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" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_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" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_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="MainFloor">
<Position x="-0.54542542" y="-16.1605" z="196.76065"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<MapContainerType type="0"/>
<BoundingBox_Min x="-28.81465" y="-8.9726992" z="-26.676258"/>
<BoundingBox_Max x="28.814625" y="13.2588" z="26.67626"/>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="60" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_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" Key_Index="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="120" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.99999857" y="1" z="0.99999857"/>
<Rotation x="-0" y="-179.99995" z="-0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="4">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-0" y="-120" z="-0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="5">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.99999994" y="1" z="0.99999994"/>
<Rotation x="-0" y="-60.000011" z="-0"/>
</PartObject>
</Container>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel_Lod2</PrototypeTag>
<Position x="-6.2576318" y="13.000011" z="16.460384"/>
<Scale x="0.99999696" y="1" z="0.99999696"/>
<Rotation x="0" y="149.99982" z="0"/>
</Object>
<Object Type="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_ConjuredDragonZoneG3_SM_ConjuredDragonZoneG3</PrototypeTag>
<Position x="-1.2299185" y="-13.802015" z="197.21222"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110_Lod2</PrototypeTag>
<Position x="3.9749498" y="1.6034105" z="32.070148"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="23" y="-4" z="2"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod3</PrototypeTag>
<Position x="19.255482" y="8.7719822" z="35.943153"/>
<Scale x="0.99999869" y="1" z="0.99999869"/>
<Rotation x="0" y="77.999969" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_BreakingRock_LG_E_Large_E7</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_BreakingRock_LG_E_Large_E7_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_BreakingRock_LG_E_Large_E7_Lod2</PrototypeTag>
<Position x="25.123095" y="7.1190052" z="19.702438"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_01_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod2</PrototypeTag>
<Position x="9.7310753" y="4.1598616" z="39.427776"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3</PrototypeTag>
<Position x="8.9415083" y="7.31499" z="15.686381"/>
<Scale x="0.99999923" y="1" z="0.99999923"/>
<Rotation x="0" y="132.00003" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3</PrototypeTag>
<Position x="25.197651" y="6.328692" z="20.170258"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="124" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3</PrototypeTag>
<Position x="10.089858" y="5.6040068" z="42.1661"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3</PrototypeTag>
<Position x="20.081099" y="5.031467" z="37.130356"/>
<Scale x="0.9987883" y="0.99878818" z="0.99995631"/>
<Rotation x="0" y="244" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2</PrototypeTag>
<Position x="24.760118" y="5.0692105" z="30.417465"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="-54" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="12.565532" y="4.9186649" z="45.371735"/>
<Scale x="0.99971271" y="0.9996962" z="0.99976748"/>
<Rotation x="-72.000023" y="57.000023" z="103.41815"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_A_Lod3</PrototypeTag>
<Position x="20.552385" y="8.1470213" z="34.250919"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-9.9581451" y="-6.1321979" z="78.127563"/>
<Scale x="0.99987215" y="0.99993086" z="0.99993896"/>
<Rotation x="279" y="-4" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-17.167322" y="-1.9318447" z="78.795784"/>
<Scale x="0.99943388" y="0.99962848" z="0.99902481"/>
<Rotation x="-1.7075472e-06" y="25.999998" z="-41.949028"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="-21.113478" y="-4.4468188" z="78.920029"/>
<Scale x="0.99990451" y="1" z="0.99990451"/>
<Rotation x="0" y="170.99998" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_04_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_04_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_04_A_Lod2</PrototypeTag>
<Position x="6.7653174" y="0.63730556" z="61.286491"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="-19.957895" y="-4.4363136" z="78.164024"/>
<Scale x="0.99992758" y="1" z="0.99992758"/>
<Rotation x="0" y="102" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-0.59898424" y="-1.831475" z="51.009457"/>
<Scale x="1.0999988" y="1.0999992" z="1.0999995"/>
<Rotation x="281" y="-12" z="195"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-8.8064957" y="-2.5607352" z="54.605598"/>
<Scale x="0.99996692" y="0.99981207" z="0.99982613"/>
<Rotation x="-79" y="-21" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="0.38874197" y="-1.7316872" z="54.66328"/>
<Scale x="0.9998371" y="0.99975336" z="0.99990553"/>
<Rotation x="83" y="173" z="12"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_01_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_01_A_Lod2</PrototypeTag>
<Position x="1.5914671" y="0.6266098" z="56.007206"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="21.000004" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3</PrototypeTag>
<Position x="34.057976" y="4.5742617" z="29.689867"/>
<Scale x="0.99974424" y="0.99999648" z="0.99979168"/>
<Rotation x="-10" y="255" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3</PrototypeTag>
<Position x="25.797371" y="5.5415931" z="33.848652"/>
<Scale x="0.99985695" y="0.99989516" z="0.99979562"/>
<Rotation x="0" y="52.999992" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="32.891785" y="2.9547818" z="29.46398"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="5" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110_Lod2</PrototypeTag>
<Position x="6.5783677" y="6.1310377" z="16.180979"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_D_B_Lod3</PrototypeTag>
<Position x="18.618258" y="8.7850466" z="39.278667"/>
<Scale x="1.0000004" y="1" z="1.0000004"/>
<Rotation x="0" y="135" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_TrollWall_Base</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_TrollWall_Base_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_TrollWall_Base_Lod2</PrototypeTag>
<Position x="6.6727066" y="6.028398" z="23.509941"/>
<Scale x="1.2999997" y="1.6499994" z="1.5499995"/>
<Rotation x="0" y="-33" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod3</PrototypeTag>
<Position x="24.031487" y="-273.49725" z="147.93475"/>
<Scale x="10" y="10" z="10"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_K</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_K_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_K_Lod2</PrototypeTag>
<Position x="-8.3131905" y="19.185905" z="14.996895"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="62" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_I</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_I_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_I_Lod2</PrototypeTag>
<Position x="-9.6999998" y="13" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="155" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_A_Lod2</PrototypeTag>
<Position x="-23.526148" y="12.500113" z="22.037344"/>
<Scale x="0.99999946" y="0.99999964" z="0.99999964"/>
<Rotation x="90" y="0" z="-146"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_Base</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod2</PrototypeTag>
<Position x="-5.6897974" y="10.757141" z="4.3358555"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="76" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_Base</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Sanctum_CaveShell_A_Base_Lod2</PrototypeTag>
<Position x="-16.96443" y="11.11605" z="17.76745"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="10.900936" y="-1.6972005" z="75.53347"/>
<Scale x="1" y="0.99999988" z="0.99999988"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2</PrototypeTag>
<Position x="-0.69039518" y="-0.7595998" z="104.48612"/>
<Scale x="0.99999994" y="0.99999994" z="1"/>
<Rotation x="15" y="90" z="47"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-13.323214" y="-1.8345535" z="110.49081"/>
<Scale x="0.99999988" y="0.99999988" z="1"/>
<Rotation x="57" y="46" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="11.327658" y="-2.9378576" z="88.992035"/>
<Scale x="0.99999911" y="0.99999946" z="0.99999976"/>
<Rotation x="45" y="75" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod3</PrototypeTag>
<Position x="-42.425797" y="-2.8141437" z="88.645271"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3</PrototypeTag>
<Position x="-21.51325" y="-1.4656401" z="131.77199"/>
<Scale x="0.99999988" y="1" z="1"/>
<Rotation x="22" y="-45" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-18.088686" y="-2.3922977" z="112.58591"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2</PrototypeTag>
<Position x="1.726952" y="-1.5145994" z="104.09859"/>
<Scale x="0.99999994" y="1" z="1"/>
<Rotation x="-56" y="209" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="15.774767" y="0.21573099" z="84.16938"/>
<Scale x="1" y="0.9999997" z="0.99999964"/>
<Rotation x="-90" y="-30" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="0.84340656" y="7.9303908" z="31.134466"/>
<Scale x="0.99999976" y="0.9999997" z="0.99999976"/>
<Rotation x="11" y="66" z="95"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-15.127188" y="6.6341605" z="51.7379"/>
<Scale x="1" y="0.99999988" z="0.99999988"/>
<Rotation x="105" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3</PrototypeTag>
<Position x="1.9271588" y="-0.69325227" z="68.443108"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="78" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3</PrototypeTag>
<Position x="-36.42326" y="-2.709861" z="143.91249"/>
<Scale x="0.9999997" y="1" z="0.9999997"/>
<Rotation x="0" y="-120" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3</PrototypeTag>
<Position x="29.783035" y="2.0425799" z="66.968109"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="120" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-19.061026" y="1.0817823" z="131.32343"/>
<Scale x="0.99999988" y="1" z="1"/>
<Rotation x="-26" y="200" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-22.163269" y="-4.3563585" z="120.26784"/>
<Scale x="0.99999988" y="1" z="0.99999982"/>
<Rotation x="21" y="11" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-27.264799" y="-1.637884" z="109.95807"/>
<Scale x="1.0000002" y="1" z="1.0000001"/>
<Rotation x="-15" y="240" z="-25"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="-63.01561" y="-4.8113542" z="96.035728"/>
<Scale x="0.99999905" y="1" z="0.99999905"/>
<Rotation x="2" y="180" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="-29.935623" y="-3.4649444" z="124.11627"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="3"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3</PrototypeTag>
<Position x="-27.277679" y="-5.8310142" z="155.97043"/>
<Scale x="1" y="0.99999982" z="1"/>
<Rotation x="2" y="-58" z="-2"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N110_Lod2</PrototypeTag>
<Position x="-68.39801" y="-5.1697645" z="99.228661"/>
<Scale x="5" y="5" z="5"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N9</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N9_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_N9_Lod2</PrototypeTag>
<Position x="-7.3737426" y="-1.1402097" z="106.77104"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="105" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod2</PrototypeTag>
<Position x="-32.593639" y="0.28619561" z="110.95858"/>
<Scale x="3" y="3" z="3"/>
<Rotation x="9" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y1_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y1_Lod2</PrototypeTag>
<Position x="-8.0545607" y="-1.284222" z="107.85845"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="90" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Tower_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Tower_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Tower_B_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Tower_B_Lod3</PrototypeTag>
<Position x="22.433283" y="5.0947428" z="37.948391"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-48.091888" y="-5.1092129" z="90.156891"/>
<Scale x="0.99999988" y="1" z="0.99999982"/>
<Rotation x="-30" y="45" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-41.063042" y="-6.0920839" z="84.695122"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-30" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-28.811134" y="-2.2898798" z="78.949883"/>
<Scale x="1.9999995" y="2" z="1.9999995"/>
<Rotation x="0" y="75" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-5.731801" y="13.761194" z="42.312599"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-13" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="21.131029" y="7.2831659" z="67.967796"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="225" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="27.694904" y="5.86059" z="65.535141"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-60.768719" y="-5.3163881" z="116.17828"/>
<Scale x="0.99999988" y="1" z="1"/>
<Rotation x="30" y="0" z="15"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-59.658913" y="1.2851217" z="120.69578"/>
<Scale x="1" y="0.99999976" z="0.99999976"/>
<Rotation x="91" y="30" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3</PrototypeTag>
<Position x="-39.067284" y="-3.3409057" z="146.35178"/>
<Scale x="0.99999976" y="1" z="0.99999976"/>
<Rotation x="0" y="-61" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3</PrototypeTag>
<Position x="-36.1437" y="-1.8005683" z="115.12833"/>
<Scale x="1.5" y="1.5" z="1.5"/>
<Rotation x="43" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-61.701439" y="-0.61707294" z="130.33885"/>
<Scale x="1" y="0.99999982" z="1"/>
<Rotation x="93" y="28" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-33.237759" y="-2.62553" z="150.66624"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_B_Lod2</PrototypeTag>
<Position x="-52.814796" y="-2.5514283" z="96.003014"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="120" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod2</PrototypeTag>
<Position x="-21.332092" y="-9.638586" z="162.2536"/>
<Scale x="1.1999999" y="2" z="2"/>
<Rotation x="0" y="-73" z="-31"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod2</PrototypeTag>
<Position x="-33.210457" y="-3.3332615" z="250.71452"/>
<Scale x="10" y="10" z="10"/>
<Rotation x="-2" y="60" z="8"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A_Lod2</PrototypeTag>
<Position x="59.142254" y="2.6246691" z="226.76474"/>
<Scale x="20" y="20" z="20"/>
<Rotation x="60" y="195" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod2</PrototypeTag>
<Position x="3.709239" y="-1.6860112" z="101.03497"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="165" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2</PrototypeTag>
<Position x="-34.545471" y="-7.3144598" z="147.19632"/>
<Scale x="2" y="2" z="2"/>
<Rotation x="90" y="-13" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_AgedTombProtector_Grunt_A_A_Lod3</PrototypeTag>
<Position x="-0.39500338" y="-14.256949" z="196.38307"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod3</PrototypeTag>
<Position x="-40.495888" y="4.8741293" z="218.10585"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="2" y="17" z="-17"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_B_Lod3</PrototypeTag>
<Position x="49.229252" y="-63.068176" z="227.15839"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-30" y="-420" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_C_Lod2</PrototypeTag>
<Position x="-43.326477" y="6.4479647" z="219.36571"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="135" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod2</PrototypeTag>
<Position x="-45.665279" y="2.4449012" z="219.43742"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-29" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Pensieve_Akio_Rock_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Pensieve_Akio_Rock_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_Pensieve_Akio_Rock_A_Lod2</PrototypeTag>
<Position x="53.162827" y="-6.6190376" z="202.28929"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="2" y="30" z="-45"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_EdgeRock_Base</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod2</PrototypeTag>
<Position x="3.33846" y="-14.036123" z="251.83813"/>
<Scale x="5" y="5" z="5.0000005"/>
<Rotation x="0" y="115" z="90"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod2</PrototypeTag>
<Position x="26.085785" y="-14.550651" z="140.74722"/>
<Scale x="10" y="10" z="10"/>
<Rotation x="0" y="75" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3</PrototypeTag>
<Position x="-24.230169" y="-7.3430138" z="150.42848"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="51" z="6"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Rock_Y2_Lod2</PrototypeTag>
<Position x="-22.438908" y="-2.9364264" z="139.07936"/>
<Scale x="4.9500031" y="4.500001" z="4.500001"/>
<Rotation x="0" y="69" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_RockGround_A_Lod2</PrototypeTag>
<Position x="7.4694071" y="-1.8792477" z="95.548683"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="90" z="3"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_DestructibleCover_A_Lod3</PrototypeTag>
<Position x="-28.418056" y="-3.8354592" z="154.20857"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_MERGED_Falling_Rocks_area3_4_Lod3</PrototypeTag>
<Position x="-19.838917" y="-2.3607955" z="101.84971"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="165" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_C_Lod2</PrototypeTag>
<Position x="-2.3830693" y="-1.6979499" z="106.64469"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-53" y="-203" z="34"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FracturedCliff_01_Lod3</PrototypeTag>
<Position x="-0.11686373" y="-5.8850236" z="100.87657"/>
<Scale x="1.8000002" y="1" z="1"/>
<Rotation x="0" y="30" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_02_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_02_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_02_B_Lod2</PrototypeTag>
<Position x="-3.7205086" y="-1.2345964" z="104.72849"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-30" y="30" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_04_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_04_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_04_B_Lod2</PrototypeTag>
<Position x="8.7356014" y="-1.322228" z="92.00293"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-30" y="70" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_02_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_02_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_02_A_Lod2</PrototypeTag>
<Position x="-6.2058558" y="-1.6354109" z="105.84926"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-45" y="44" z="5"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_03_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_03_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_FloatingGround_03_B_Lod2</PrototypeTag>
<Position x="5.7898116" y="-1.3498449" z="99.448158"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="165" z="-30"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Gauntlet_02_barrier_Lod3</PrototypeTag>
<Position x="7.6424809" y="-3.7342937" z="82.862984"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A2_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A2_Lod2</PrototypeTag>
<Position x="9.5737753" y="-1.3684138" z="93.033272"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="-55"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A3</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A3_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_A3_Lod2</PrototypeTag>
<Position x="9.9750528" y="-1.3253504" z="94.724838"/>
<Scale x="0.99999994" y="0.99999994" z="1"/>
<Rotation x="0" y="0" z="-20"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_MD_B_Lod2</PrototypeTag>
<Position x="8.8833523" y="-1.4699308" z="97.490433"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="105" z="0"/>
</Object>
<Object Type="1" Lod_Level="3">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod2</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_A_Lod3</PrototypeTag>
<Position x="42.514252" y="0.3793726" z="156.28098"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_SanctumDun_MagicRockTendril_D_Lod2</PrototypeTag>
<Position x="41.1147" y="-1.0827398" z="161.14326"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-30" y="225" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_BoH_BreakingBridge_Area07_Base</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_BoH_BreakingBridge_Area07_Base_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_BoH_BreakingBridge_Area07_Base_Lod2</PrototypeTag>
<Position x="32.063461" y="6.3117862" z="249.41806"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_CavernDun_Sanctum_Rock_LG_C_Lod2</PrototypeTag>
<Position x="21.034981" y="-13.552054" z="239.63063"/>
<Scale x="2" y="2" z="2"/>
<Rotation x="0" y="105" z="0"/>
</Object>
<Object Type="1" Lod_Level="2">
<PrototypeTag>Prototype_GameObject_SM_Repository_EdgeRock_Base</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_Repository_EdgeRock_Base_Lod2</PrototypeTag>
<Position x="44.267986" y="-14.369235" z="182.47475"/>
<Scale x="2" y="2" z="2"/>
<Rotation x="-45" y="90" z="45"/>
</Object>
</Land>
@@ -1,12 +1,16 @@
<StatInfo>
<OLLIVENDER ID="0" Name="올리벤더" NpcName="OLLIVENDER" TAG="1" SizeX="256"/>
<SATYAVATI ID="1" Name="사티아바티" NpcName="SATYAVATI" TAG="0" SizeX="256"/>
<MATILDAWEASELY ID="2" Name="마틸다 위즐리" NpcName="MATILDAWEASELY" TAG="0" SizeX="256"/>
<SATYAVATI ID="1" Name="사티아바티" NpcName="SATYAVATI" TAG="1" SizeX="256"/>
<MATILDAWEASELY ID="2" Name="마틸다 위즐리" NpcName="MATILDAWEASELY" TAG="1" SizeX="256"/>
<ELEAZARFIG ID="3" Name="엘리아자르 피그" NpcName="ELEAZARFIG" TAG="1" SizeX="256"/>
<ELF ID="4" Name="도비" NpcName="ELF" TAG="1" SizeX="256"/>
<PEEVES ID="5" Name="피브스" NpcName="PEEVES" TAG="0" SizeX="256"/>
<PHINEASBLACK ID="6" Name="피니어스 블랙" NpcName="PHINEASBLACK" TAG="0" SizeX="256"/>
<F_STUDENT ID="7" Name="여학생" NpcName="F_STUDENT" TAG="0" SizeX="256"/>
<M_STUDENT ID="8" Name="남학생" NpcName="M_STUDENT" TAG="0" SizeX="256"/>
</StatInfo>
<PEEVES ID="5" Name="피브스" NpcName="PEEVES" TAG="1" SizeX="256"/>
<PHINEASBLACK ID="6" Name="피니어스 블랙" NpcName="PHINEASBLACK" TAG="1" SizeX="256"/>
<F_STUDENT ID="7" Name="아우렐리아 로즈" NpcName="F_STUDENT" TAG="1" SizeX="256"/>
<M_STUDENT ID="8" Name="테오도어 그레이브스" NpcName="M_STUDENT" TAG="1" SizeX="256"/>
<BAIHOWIN ID="9" Name="바이호윈" NpcName="BAIHOWIN" TAG="1" SizeX="256"/>
<GEORGEOSRIC ID="10" Name="조지오스릭" NpcName="GEORGEOSRIC" TAG="1" SizeX="256"/>
<DINAHHECAT ID="11" Name="디나 헤카트" NpcName="DINAHHECAT" TAG="1" SizeX="256"/>
<MUDIWAONAI ID="12" Name="무디아 오나이" NpcName="MUDIWAONAI" TAG="1" SizeX="256"/>
<KITCHENFEMALE ID="13" Name="주방 도비" NpcName="KITCHENFEMALE" TAG="1" SizeX="256"/>
</StatInfo>
@@ -127,6 +127,11 @@ float g_fSoftMaskEdge;
float g_fUVTiling;
Texture2D g_DiffuseTextures[4];
Texture2D g_NormalTextures[4];
Texture2D g_SurfaceParamsTextures[4];
Texture2D g_MaskTexture;
struct VS_IN
{
float3 vPosition : POSITION;
@@ -538,19 +543,7 @@ PS_OUT_BLUR PS_MAIN_SKYBOX(PS_IN In)
PS_OUT_BLUR Out;
float4 vColor = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
//if (0.f == g_fFogPow)
//{
// Out.vDiffuse = vColor;
// return Out;
//}
//vector vFinalColor;
//float fRatio;
//fRatio = pow(1.f - saturate(exp(-1.f * g_fFar * g_fFogDensity)), g_fFogPow);
//vFinalColor = lerp(vColor, g_vFogColor, fRatio);
//vFinalColor.a = 1.f;
Out.vDiffuse = vColor;
@@ -777,16 +770,38 @@ PS_OUT PS_LAND(PS_IN In)
{
PS_OUT Out = (PS_OUT)0;
float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f);
float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f);
vector vMask = g_MaskTexture.Sample(DefaultSampler, In.vTexcoord);
vector vMtrlDiffuse_0 = g_DiffuseTextures[0].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vMtrlDiffuse_1 = g_DiffuseTextures[1].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vMtrlDiffuse_2 = g_DiffuseTextures[2].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vMtrlDiffuse_3 = g_DiffuseTextures[3].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vMtrlDiffuse = float4(float3(vMtrlDiffuse_0.xyz * vMask.r +
vMtrlDiffuse_1.xyz * vMask.g +
vMtrlDiffuse_2.xyz * vMask.b +
vMtrlDiffuse_3.xyz * vMask.a), 1.f);
if (vMtrlDiffuse.a < 0.2f)
{
discard;
}
vector vSurface_0 = g_SurfaceParamsTextures[0].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vSurface_1 = g_SurfaceParamsTextures[1].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vSurface_2 = g_SurfaceParamsTextures[2].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vSurface_3 = g_SurfaceParamsTextures[3].Sample(DefaultSampler, In.vTexcoord * 10.f);
vector vSurface = (vSurface_0 * vMask.r +
vSurface_1 * vMask.g +
vSurface_2 * vMask.b +
vSurface_3 * vMask.a);
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
float3 vNormalDecoded_0 = DecodeNormalFromRG(g_NormalTextures[0], DefaultSampler, In.vTexcoord * 10.f);
float3 vNormalDecoded_1 = DecodeNormalFromRG(g_NormalTextures[1], DefaultSampler, In.vTexcoord * 10.f);
float3 vNormalDecoded_2 = DecodeNormalFromRG(g_NormalTextures[2], DefaultSampler, In.vTexcoord * 10.f);
float3 vNormalDecoded_3 = DecodeNormalFromRG(g_NormalTextures[3], DefaultSampler, In.vTexcoord * 10.f);
float3 vNormalDecoded = normalize(vNormalDecoded_0.xyz * vMask.r +
vNormalDecoded_1.xyz * vMask.g +
vNormalDecoded_1.xyz * vMask.b +
vNormalDecoded_1.xyz * vMask.a);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+64 -2
View File
@@ -34,9 +34,63 @@ void CAlphaMap::Update(_float3& vPosition, _uint iColorIndex, _float fValue, _ui
iPixelIndex = (iCurrentZ * m_iNumPixelW) + iCurrentX;
if (m_iNumPixels <= iPixelIndex)
if (m_iNumPixels <= iPixelIndex || 0 > iPixelIndex)
continue;
if (0 == iColorIndex)
{
m_pPixels[iPixelIndex].x += fValue;
}
else if (1 == iColorIndex)
{
m_pPixels[iPixelIndex].y += fValue;
}
else if (2 == iColorIndex)
{
m_pPixels[iPixelIndex].z += fValue;
}
else if (3 == iColorIndex)
{
m_pPixels[iPixelIndex].w += fValue;
}
else
return;
_float fWeight = m_pPixels[iPixelIndex].x + m_pPixels[iPixelIndex].y + m_pPixels[iPixelIndex].z + m_pPixels[iPixelIndex].w;
m_pPixels[iPixelIndex] = _float4(m_pPixels[iPixelIndex].x / fWeight, m_pPixels[iPixelIndex].y / fWeight, m_pPixels[iPixelIndex].z / fWeight, m_pPixels[iPixelIndex].w / fWeight);
}
}
memcpy(SubResource.pData, m_pPixels, sizeof(_float4) * m_iNumPixels);
m_pContext->Unmap(m_pTexture2D, 0);
}
void CAlphaMap::Update_Land(_float2 vUV, _uint iColorIndex, _float fValue, _uint iRange)
{
D3D11_MAPPED_SUBRESOURCE SubResource{};
if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource)))
return;
_uint iPixelIndex = {};
_uint iStartX = (_uint)(vUV.x * m_iNumPixelW) - (iRange / 2);
_uint iStartZ = (_uint)(vUV.y * m_iNumPixelH) - (iRange / 2);
for (_uint j = 0; j < iRange; ++j)
{
for (_uint i = 0; i < iRange; ++i)
{
_uint iCurrentX = iStartX + i;
_uint iCurrentZ = iStartZ + j;
iPixelIndex = (iCurrentZ * m_iNumPixelW) + iCurrentX;
if (m_iNumPixels <= iPixelIndex || 0 > iPixelIndex)
continue;
if (0 == iColorIndex)
{
m_pPixels[iPixelIndex].x += fValue;
@@ -121,7 +175,15 @@ 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/Terrain/Hogsmeade_AlphaMap.dds")))
/*if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds")))
return;*/
}
void CAlphaMap::Save_DDS(const _char* pFilePath)
{
string strFilePath = "../Bin/Resources/Data/Map/Terrain/" + string(pFilePath);
if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, CMyTools::ToWstring(strFilePath).c_str())))
return;
}
+93 -13
View File
@@ -2,6 +2,7 @@
#include "Land.h"
#include "GameInstance.h"
#include "AlphaMap.h"
CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject{ pDevice, pContext }
@@ -25,7 +26,7 @@ void CLand::Update(_float fTimeDelta)
void CLand::Late_Update(_float fTimeDelta)
{
if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pModelCom->Get_Radius()))
if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), 400.f))
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
else
{
@@ -43,8 +44,8 @@ HRESULT CLand::Render()
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom)))
return E_FAIL;
/* if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom)))
return E_FAIL;*/
if (FAILED(m_pShaderCom->Begin(17))) {
return E_FAIL;
@@ -60,6 +61,8 @@ HRESULT CLand::Render()
HRESULT CLand::Initialize_Prototype()
{
m_fUsingSurfaceParams = MRO_PARAMETER;
return S_OK;
}
@@ -74,8 +77,13 @@ HRESULT CLand::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
if (FAILED(Ready_AlphaMap()))
return E_FAIL;
LAND_DESC* pLand_Desc = static_cast<LAND_DESC*>(pArg);
if(pLand_Desc->isLoadAlphaMap)
m_pAlphaMap->Load_ToFile(pLand_Desc->strAlphaMapTag.c_str());
return S_OK;
}
@@ -91,6 +99,7 @@ HRESULT CLand::Ready_Components(void* pArg)
m_bEdit = pDesc->bEdit;
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
m_pTransformCom->Set_Scale(pDesc->vScale);
memcpy(&m_vScale, &pDesc->vScale, sizeof(_float3));
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strModelComTag,
@@ -102,6 +111,19 @@ HRESULT CLand::Ready_Components(void* pArg)
reinterpret_cast<CComponent**>(&m_pShaderCom))))
return E_FAIL;
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Diffuse"), reinterpret_cast<CComponent**>(&m_pDiffuseTextureCom), nullptr))) {
return E_FAIL;
}
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Normal"), reinterpret_cast<CComponent**>(&m_pNormalTextureCom), nullptr))) {
return E_FAIL;
}
/* Com_Texture */
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_MRO"), reinterpret_cast<CComponent**>(&m_pMROTextureCom), nullptr))) {
return E_FAIL;
}
return S_OK;
}
@@ -123,6 +145,32 @@ HRESULT CLand::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) {
return E_FAIL;
}
if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) {
return E_FAIL;
}
if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pAlphaMap->Get_SRV()))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float))))
return E_FAIL;
return S_OK;
}
HRESULT CLand::Ready_AlphaMap()
{
m_pAlphaMap = CAlphaMap::Create(m_pDevice, m_pContext, 1024, 1024);
if (nullptr == m_pAlphaMap)
return E_FAIL;
return S_OK;
}
@@ -157,34 +205,66 @@ void CLand::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pDiffuseTextureCom);
SAFE_RELEASE(m_pNormalTextureCom);
SAFE_RELEASE(m_pMROTextureCom);
SAFE_RELEASE(m_pAlphaMap);
}
void CLand::Describe_Entity()
{
GUI::Begin("Land Debug");
XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
GUI::DragFloat3("LandPos", (_float*)(&m_vPosition));
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
GUI::InputFloat2("PickingUV", (_float*)(&m_vPickingUV));
GUI::Text("----- AlphaMap ----");
GUI::InputInt("Color", &m_iColorIndex);
m_iColorIndex = max(0, min(4, m_iColorIndex));
GUI::InputInt("Rnage", (_int*)(&m_iMaskRange));
GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_M))
{
_float3 m_vPickingPosition = {};
if (m_pGameInstance->isPicking(&m_vPickingPosition))
{
if (m_pModelCom->PickingMesh(&m_vPickingPosition, &m_vPickingUV, 0, m_pTransformCom->Get_XMWorldMatrix()))
{
m_pAlphaMap->Update_Land(m_vPickingUV, m_iColorIndex, m_fMaskValue, m_iMaskRange);
}
//XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv()));
}
}
GUI::Text("----- Position ----");
XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
GUI::InputFloat("X##LandPos", &m_vPosition.x, 0.1f, 10.f);
GUI::InputFloat("Y##LandPos", &m_vPosition.y, 0.1f, 10.f);
GUI::InputFloat("Z##LandPos", &m_vPosition.z, 0.1f, 10.f);
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
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);
GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f);
if (GUI::Button("Save", ImVec2(100.f, 30.f)))
{
m_pAlphaMap->Save_ToFile("Land_TU_BB_AlphaMap.bin");
}
if (GUI::Button("Load", ImVec2(100.f, 30.f)))
{
m_pAlphaMap->Load_ToFile("Land_TU_BB_AlphaMap.bin");
}
if (GUI::Button("SaveDDS", ImVec2(100.f, 30.f)))
{
m_pAlphaMap->Save_DDS("Land_TU_BB_AlphaMap.dds");
}
m_vScale.x = max(0.01f, m_vScale.x);
m_vScale.y = max(0.01f, m_vScale.y);
m_vScale.z = max(0.01f, m_vScale.z);
m_pTransformCom->Set_Scale(m_vScale);
GUI::Text("----- Rotation ----");
GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f);
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::End();
}
@@ -68,9 +68,9 @@ HRESULT CLevel_MapViewer::Initialize()
return E_FAIL;
}
if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
return E_FAIL;
}
//if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
// return E_FAIL;
//}
//if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) {
// return E_FAIL;
@@ -92,7 +92,8 @@ HRESULT CLevel_MapViewer::Initialize()
return E_FAIL;
}
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
//m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
m_pGameInstance->Setting_Volumetirc(0.f, 0.003f, 0.56f, 1.f, 0.031f);
return S_OK;
}
@@ -148,7 +149,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
CTerrain::TERRAIN_DESC Desc = {};
///* Hogsmeade */
Desc.isEdit = true;
Desc.isEdit = false;
Desc.iAlphaSizeX = 2048;
Desc.iAlphaSizeY = 2048;
Desc.vPosition = _float3(-194, 18.5f, -153.f);
@@ -159,7 +160,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
return E_FAIL;
/* Hogwart */
/*Desc.isEdit = false;
Desc.isEdit = false;
Desc.iAlphaSizeX = 2048;
Desc.iAlphaSizeY = 2560;
Desc.strAlphaMapTag = "Hogwart_AlphaMap.bin";
@@ -167,7 +168,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
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)))
return E_FAIL;*/
return E_FAIL;
/* North_Hogwart */
//Desc.isEdit = false;
@@ -215,7 +216,6 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc)))
return E_FAIL;
return S_OK;
}
@@ -225,46 +225,143 @@ HRESULT CLevel_MapViewer::Ready_Layer_Land(const _wstring& strLayerTag)
/* South_Hogwart_Land */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
Land_Desc.strAlphaMapTag = "Land_HN_BC_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc)))
return E_FAIL;
/* North_Hogwart_Land */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
Land_Desc.strAlphaMapTag = "Land_HN_AV_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc)))
return E_FAIL;
/* North_Hogwart2_Land */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
Land_Desc.strAlphaMapTag = "Land_HN_AU_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc)))
return E_FAIL;
/* West_Hogwart_Land */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
Land_Desc.strAlphaMapTag = "Land_HN_AZ_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc)))
return E_FAIL;
/* East_Hogsmeade_Land */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
Land_Desc.strAlphaMapTag = "Land_HN_AY_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BA */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-606.f, 70.f, -647.7f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BA";
Land_Desc.strAlphaMapTag = "Land_HN_BA_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Land_Desc)))
return E_FAIL;
/* HN_BD */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(201.4f, -22.9f, -650.1f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BD";
Land_Desc.strAlphaMapTag = "Land_HN_BD_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BG */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-377.8f, 5.f, -1038.49f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BG";
Land_Desc.strAlphaMapTag = "Land_HN_BG_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BH */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(80.1f, -63.f, -908.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BH";
Land_Desc.strAlphaMapTag = "Land_HN_BH_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BE */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(431.2f, 100.1f, -658.3f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BE";
Land_Desc.strAlphaMapTag = "Land_HN_BE_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BF */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-688.9f, 170.7f, -1066.f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BF";
Land_Desc.strAlphaMapTag = "Land_HN_BF_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BI */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(82.7f, -61.f, -1141.6f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BI";
Land_Desc.strAlphaMapTag = "Land_HN_BI_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* HN_BJ */
Land_Desc.bEdit = false;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(367.1f, 44.8f, -1016.f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BJ";
Land_Desc.strAlphaMapTag = "Land_HN_BJ_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
/* TU_BB */
Land_Desc.bEdit = true;
Land_Desc.isLoadAlphaMap = true;
Land_Desc.vPosition = _float3(-829.5f, 58.3f, 112.9f);
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
Land_Desc.strModelComTag = L"Prototype_Component_Land_TU_BB";
Land_Desc.strAlphaMapTag = "Land_TU_BB_AlphaMap.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Land_Desc)))
return E_FAIL;
+60 -4
View File
@@ -1740,7 +1740,7 @@ HRESULT CLoader::Loading_For_Effect()
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) {
return E_FAIL;
}
#pragma region DUNGEON_MAP
vector<_wstring> ModelPrototypeTags = {};
vector<filesystem::path> ModelPrototypePath = {};
@@ -2687,18 +2687,26 @@ HRESULT CLoader::Loading_For_MapViewer()
TEXT("../Bin/Resources/Models/Lake/T_Caustics_D.dds"), 0)))) {
return E_FAIL;
}
/* For.Prototype_Component_T_Water_N */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_N"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
TEXT("../Bin/Resources/Models/Lake/T_Water_N.dds"), 0)))) {
return E_FAIL;
}
/* Lake_Cube_D */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Cube_D"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) {
return E_FAIL;
}
/* Lake_Cube_D */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Sky_Cube"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Sky/T_Sky_Stars.dds"), 0)))) {
return E_FAIL;
}
/* Lake_Cube_D */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) {
@@ -2749,6 +2757,54 @@ HRESULT CLoader::Loading_For_MapViewer()
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BA */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BD */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BG */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BH */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BE */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BF */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BI */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_HN_BJ */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Land_TU_BB */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"),
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
return E_FAIL;
/* For.Prototype_Component_Hogwart_Lake */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.bin", XMMatrixIdentity()))))
@@ -2967,7 +3023,7 @@ HRESULT CLoader::Loading_For_MapViewer()
#pragma endregion
_bool bLoadHogsmeade = true;
_bool bLoadHogsmeade = false;
if (bLoadHogsmeade)
{
#pragma region HOGSMEADE_OBJECT
@@ -3053,7 +3109,7 @@ _bool bLoadHogsmeade = true;
}
#pragma region HOGWART
_bool bHogwartLoad = { false };
_bool bHogwartLoad = { true };
/* Hogwart LOD */
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
@@ -3357,7 +3413,7 @@ vector<future<void>> jobFutures;
_uint iLoadCount = 44;
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
_bool isLoad_Map = { true };
_bool isLoad_Map = { false };
if(isLoad_Map)
{
{ /* Terrain */
@@ -375,7 +375,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(),
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
#pragma endregion
@@ -65,8 +65,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
m_iContainerObjectIndex = 99;
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
return E_FAIL;
//if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
// return E_FAIL;
//m_pContainer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Building"))->Get_Object<CBuildingContainer>();
@@ -94,8 +94,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
//m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
//m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
#pragma endregion
/*if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
return E_FAIL;
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
return E_FAIL;/*
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
return E_FAIL;*/
+2
View File
@@ -15,10 +15,12 @@ class CAlphaMap final : public CBase
public:
void Update(_float3& vPosition, _uint iColorIndex, _float fValue, _uint iRange);
void Update_Land(_float2 vUV, _uint iColorIndex, _float fValue, _uint iRange);
ID3D11ShaderResourceView* Get_SRV() { return m_pSRV; }
void Save_ToFile(const _char* pFilePath);
void Load_ToFile(const _char* pFilePath);
void Save_DDS(const _char* pFilePath);
private:
ID3D11Device* m_pDevice = { nullptr };
ID3D11DeviceContext* m_pContext = { nullptr };
+3 -4
View File
@@ -24,9 +24,8 @@ class CDummySkyBox final : public CGameObject
virtual HRESULT Render() override;
private:
CModel* m_pModelCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
@@ -41,4 +40,4 @@ class CDummySkyBox final : public CGameObject
void Describe_Entity() override;
};
NS_END
NS_END
+17 -4
View File
@@ -15,10 +15,12 @@ class CLand final : public CGameObject
public:
typedef struct tagLandDesc
{
_bool bEdit;
_float3 vPosition;
_float3 vScale;
_wstring strModelComTag;
_bool bEdit;
_bool isLoadAlphaMap = { false };
_float3 vPosition;
_float3 vScale;
_wstring strModelComTag;
_string strAlphaMapTag;
}LAND_DESC;
private:
CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -45,16 +47,27 @@ class CLand final : public CGameObject
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
CTexture* m_pDiffuseTextureCom = { nullptr };
CTexture* m_pNormalTextureCom = { nullptr };
CTexture* m_pMROTextureCom = { nullptr };
class CAlphaMap* m_pAlphaMap = { nullptr };
_float4 m_vPosition = {};
_float3 m_vScale = {};
_float3 m_vRotation = {};
_uint m_iMaskRange = { 1 };
_int m_iColorIndex = { 0 };
_float m_fMaskValue = { 0.1f };
_float2 m_vPickingUV = {};
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Bind_ShaderResources() override;
HRESULT Ready_AlphaMap();
public:
static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+58
View File
@@ -3,6 +3,7 @@
#include "Mesh.h"
#include "Model.h"
#include "Shader.h"
#include "GameInstance.h"
CMesh::CMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CVIBuffer{ pDevice, pContext }
{
@@ -10,6 +11,9 @@ CMesh::CMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
CMesh::CMesh(const CMesh& rhs)
: CVIBuffer(rhs)
#ifdef EDITOR_PROJECT
,m_VertexTexcoords(rhs.m_VertexTexcoords)
#endif
{
}
@@ -277,6 +281,9 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
m_pVertexPositions = new _float3[m_iNumVertices];
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
m_VertexTexcoords = new _float2[m_iNumVertices];
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
for (_uint i = 0; i < m_iNumVertices; ++i)
{
memcpy(&pVertices[i].vPosition, &SaveMesh->Vertices[i].Pos, sizeof(_float3));
@@ -297,6 +304,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
}
D3D11_SUBRESOURCE_DATA InitialVBData{};
@@ -532,7 +540,48 @@ PSX::PxTriangleMesh* CMesh::ConvertToPxMesh(const PSX::PxCookingParams* pParam,
return pTriangleMesh;
}
#ifdef EDITOR_PROJECT
_bool CMesh::PickingMesh(_float3* pPosition, _float2* pUV, _fmatrix WorldMatrix)
{
_vector vCamPosition = XMLoadFloat4(m_pGameInstance->Get_CamPosition());
_vector vPickingPosition = XMVectorSetW(XMLoadFloat3(pPosition), 1.f);
_vector vDir = XMVector3Normalize(vPickingPosition - vCamPosition);
_float2 vUV = _float2(0.f, 0.f);
_float fU ={};
_float fV ={};
_float fT = {};
for (_uint i = 0; i < m_iNumIndices / 3; ++i)
{
_uint iIndices[3] = {
m_pIndices[i * 3 + 0] ,
m_pIndices[i * 3 + 1] ,
m_pIndices[i * 3 + 2]
};
if (true == CMyTools::IntersectTri(
vCamPosition,
vDir,
XMVector3TransformCoord(XMLoadFloat3(&m_pVertexPositions[iIndices[0]]), WorldMatrix),
XMVector3TransformCoord(XMLoadFloat3(&m_pVertexPositions[iIndices[1]]), WorldMatrix),
XMVector3TransformCoord(XMLoadFloat3(&m_pVertexPositions[iIndices[2]]), WorldMatrix),
fT,
fU,
fV
))
{
_float fW = 1.0f - fU - fV;
pUV->x = fW * m_VertexTexcoords[iIndices[0]].x + fU * m_VertexTexcoords[iIndices[1]].x + fV * m_VertexTexcoords[iIndices[2]].x;
pUV->y = fW * m_VertexTexcoords[iIndices[0]].y + fU * m_VertexTexcoords[iIndices[1]].y + fV * m_VertexTexcoords[iIndices[2]].y;
return true;
}
}
return false;
}
CMesh* CMesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, vector<class CBone*>& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix)
{
CMesh* pInstance = new CMesh(pDevice, pContext);
@@ -563,6 +612,9 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix Pr
m_pVertexPositions = new _float3[m_iNumVertices];
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
m_VertexTexcoords = new _float2[m_iNumVertices];
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
for (_uint i = 0; i < m_iNumVertices; ++i)
{
memcpy(&pVertices[i].vPosition, &pAIMesh->mVertices[i], sizeof(_float3));
@@ -575,6 +627,7 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix Pr
memcpy(&pVertices[i].vBinormal, &pAIMesh->mBitangents[i], sizeof(_float3));
XMStoreFloat3(&pVertices[i].vBinormal, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
memcpy(&pVertices[i].vTexcoord, &pAIMesh->mTextureCoords[0][i], sizeof(_float2));
memcpy(&m_VertexTexcoords[i], &pAIMesh->mTextureCoords[0][i], sizeof(_float2));
}
D3D11_SUBRESOURCE_DATA InitialVBData{};
@@ -751,6 +804,11 @@ void CMesh::Free()
{
__super::Free();
#ifdef EDITOR_PROJECT
if (false == m_bCloned)
Safe_Delete_Array(m_VertexTexcoords);
#endif
SAFE_RELEASE(m_pBoneRemapBuffer);
SAFE_RELEASE(m_pBoneRemapSRV);
Safe_Delete_Array(m_pBoneMatrices);
+7
View File
@@ -1445,6 +1445,13 @@ _int CModel::SaveNodeRecursive(const aiNode* pAINode, std::vector<SaveNode>& out
return currentIndex;
}
_bool CModel::PickingMesh(_float3* pPosition, _float2* pUV, _uint iMeshIndex, _fmatrix WorldMatrix)
{
if (iMeshIndex >= m_iNumMeshes)
return false;
return m_Meshes[iMeshIndex]->PickingMesh(pPosition, pUV, WorldMatrix);
}
HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex)
{
_uint iFlag = {};
@@ -1,6 +1,7 @@
#include "pch.h"
#include "RigidBody_Dynamic.h"
#include "GameInstance.h"
#include "GameObject.h"
CRigidBody_Dynamic::CRigidBody_Dynamic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext):
CRigidBody(pDevice, pContext)
@@ -25,6 +26,8 @@ HRESULT CRigidBody_Dynamic::Render()
}
HRESULT CRigidBody_Dynamic::Render(function<void()> custumState)
{
if (m_pOwner->isDead())
return S_OK;
PSX::PxTransform pxTranform = m_pRigidBody->getGlobalPose();
_matrix WorldMatrix = XMMatrixTranslation(m_vLocalTranslation.x, m_vLocalTranslation.y, m_vLocalTranslation.z)
* XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTranform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTranform.p), 1.f));
+5
View File
@@ -25,6 +25,8 @@ class ENGINE_DLL CMesh final : public CVIBuffer
HRESULT Copy_BoneMatrices(vector<_float4x4>& pDestination);
vector<_int> Get_BoneIndices() { return m_BoneIndices; }
#ifdef EDITOR_PROJECT
public:
_bool PickingMesh(_float3* pPosition, _float2* pUV, _fmatrix WorldMatrix);
private:
virtual HRESULT Initialize_Prototype(MODEL eType, vector<class CBone*>& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix);
HRESULT Ready_VertexBuffer_For_NonAnim(const aiMesh* pAIMesh, _fmatrix PreTransformMatrix);
@@ -70,6 +72,9 @@ class ENGINE_DLL CMesh final : public CVIBuffer
vector<_uint> m_Indices;
vector<_float3> m_Vertices;
//
#ifdef EDITOR_PROJECT
_float2* m_VertexTexcoords = {};
#endif
private:
_uint m_iNumBuffer = {};
+1
View File
@@ -162,6 +162,7 @@ class ENGINE_DLL CModel final : public CComponent
_bool SaveAssimpModel(const _char* filename);
_int SaveNodeRecursive(const aiNode* pAINode, vector<SaveNode>& outNodes, _int parentIndex);
//
_bool PickingMesh(_float3* pPosition, _float2* pUV, _uint iMeshIndex, _fmatrix WorldMatrix);
#endif // EDITOR_PROJECT