[merge commit]

This commit is contained in:
kimnuri
2026-01-05 05:19:06 +09:00
284 changed files with 4742 additions and 846 deletions
+76
View File
@@ -10,12 +10,16 @@ HINSTANCE g_hInstance;
HWND g_hWnd;
WCHAR szTitle[MAX_LOADSTRING];
WCHAR szWindowClass[MAX_LOADSTRING];
_bool g_bFullscreen = false;
RECT g_rcWindowed = {};
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
void ToggleFullscreen();
extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
@@ -196,6 +200,26 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
g_hWnd = hWnd;
#ifndef _DEBUG
{
g_bFullscreen = true;
SetWindowLong(g_hWnd, GWL_STYLE, GetWindowLong(g_hWnd, GWL_STYLE) & ~WS_OVERLAPPEDWINDOW);
_int screenX = GetSystemMetrics(SM_CXSCREEN);
_int screenY = GetSystemMetrics(SM_CYSCREEN);
SetWindowPos(
g_hWnd,
HWND_TOP,
0, 0,
screenX, screenY,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED
);
}
#endif
return TRUE;
}
@@ -209,9 +233,61 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
PostQuitMessage(0);
break;
case WM_SYSKEYDOWN:
{
if (wParam == VK_RETURN && (lParam & (1 << 29)))
{
ToggleFullscreen();
return 0;
}
}
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
return 0;
}
void ToggleFullscreen()
{
DWORD style = GetWindowLong(g_hWnd, GWL_STYLE);
if (!g_bFullscreen)
{
GetWindowRect(g_hWnd, &g_rcWindowed);
SetWindowLong(g_hWnd, GWL_STYLE, style & ~WS_OVERLAPPEDWINDOW);
_int screenX = GetSystemMetrics(SM_CXSCREEN);
_int screenY = GetSystemMetrics(SM_CYSCREEN);
SetWindowPos(
g_hWnd,
HWND_TOP,
0, 0,
screenX, screenY,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED
);
g_bFullscreen = true;
}
else
{
SetWindowLong(g_hWnd, GWL_STYLE, style | WS_OVERLAPPEDWINDOW);
SetWindowPos(
g_hWnd,
HWND_NOTOPMOST,
g_rcWindowed.left,
g_rcWindowed.top,
g_rcWindowed.right - g_rcWindowed.left,
g_rcWindowed.bottom - g_rcWindowed.top,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED
);
g_bFullscreen = false;
}
}
@@ -180,6 +180,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Goblin_Assassin_Spector.h" />
<ClInclude Include="..\Public\Goblin_Sword.h" />
<ClInclude Include="..\public\InstancedProp_Light.h" />
<ClInclude Include="..\Public\RandomNpc.h" />
<ClInclude Include="..\Public\Ranrok_Breath.h" />
<ClInclude Include="..\Public\Ranrok_Charge.h" />
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
@@ -189,6 +190,8 @@ call Update_Resources.bat
<ClInclude Include="..\public\Dialogue_Font.h" />
<ClInclude Include="..\public\NPCInteraction.h" />
<ClInclude Include="..\public\PointLight.h" />
<ClInclude Include="..\Public\Ranrok_Hit.h" />
<ClInclude Include="..\Public\Ranrok_Impact.h" />
<ClInclude Include="..\Public\Ranrok_Point.h" />
<ClInclude Include="..\Public\PlayerRobe.h" />
<ClInclude Include="..\Public\Player_ENUM.h" />
@@ -453,6 +456,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Goblin_Assassin_States.cpp" />
<ClCompile Include="..\Private\Goblin_Sword.cpp" />
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
<ClCompile Include="..\Private\RandomNpc.cpp" />
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
@@ -462,6 +466,8 @@ call Update_Resources.bat
<ClCompile Include="..\private\Dialogue_Font.cpp" />
<ClCompile Include="..\private\NPCInteraction.cpp" />
<ClCompile Include="..\private\PointLight.cpp" />
<ClCompile Include="..\Private\Ranrok_Hit.cpp" />
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
<ClCompile Include="..\Private\PlayerRobe.cpp" />
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
@@ -836,6 +836,15 @@
<ClInclude Include="..\Public\Camera_Model.h">
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Impact.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Hit.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit</Filter>
</ClInclude>
<ClInclude Include="..\Public\RandomNpc.h">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1737,6 +1746,15 @@
<Filter Include="02.GameObjects\Cameras\Camera_Model">
<UniqueIdentifier>{40504926-63cc-4132-ade2-5a789e1a82a6}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit">
<UniqueIdentifier>{b537dfd4-fcad-401f-a49a-8fdafeb91ab7}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact">
<UniqueIdentifier>{15ea8015-5b0a-4678-bf02-55b042ef4de4}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\NPC\Ally\RandomNpc">
<UniqueIdentifier>{88b62177-01fc-424d-a444-4fb5fd4b2db5}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -2520,6 +2538,15 @@
<ClCompile Include="..\Private\Camera_Model.cpp">
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Impact.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Hit.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit</Filter>
</ClCompile>
<ClCompile Include="..\Private\RandomNpc.cpp">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
+33 -6
View File
@@ -81,8 +81,9 @@ void CBroom::Update(_float fTimeDelta)
Update_CameraCoordinateSystem();
if(!m_pParentUnit->IsAI())
PlayerInput();
if (!m_pParentUnit->IsAI()) {
PlayerInput(fTimeDelta);
}
else {
m_fAITime += fTimeDelta;
@@ -133,8 +134,6 @@ void CBroom::Update(_float fTimeDelta)
}
}
void CBroom::Late_Update(_float fTimeDelta)
@@ -278,8 +277,10 @@ void CBroom::Update_CameraCoordinateSystem()
}
void CBroom::PlayerInput()
void CBroom::PlayerInput(_float fTimeDelta)
{
if (!m_bRide)
return;
m_Input = {};
m_Input.Z = m_pGameInstance->Key_Pressing(DIK_W) ? 1.f : 0.f;
@@ -295,7 +296,33 @@ void CBroom::PlayerInput()
m_bHoverToggle = !m_bHoverToggle;
}
m_Input.bTurbo = m_pGameInstance->Mouse_Pressing(DIM_LBUTTON);
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
{
if (m_fTurboBoost != 0.f) {
m_fTurboBoost -= fTimeDelta;
if (m_fTurboBoost <= 0.f) {
m_fTurboBoost = 0.f;
}
m_Input.bTurbo = true;
}
else {
m_Input.bTurbo = false;
}
m_fTurboBoostChargeDelay = 0.f;
}
else {
m_fTurboBoostChargeDelay += fTimeDelta;
if (m_fTurboBoostChargeDelay >= 1.f)
{
m_fTurboBoost += fTimeDelta;
if (m_fTurboBoost >= 5.f)
{
m_fTurboBoost = 5.f;
}
}
m_Input.bTurbo = false;
}
m_bTurbo = m_Input.bTurbo;
}
@@ -269,6 +269,8 @@ void CBroomRaceManager::Check_RingPassed()
for (auto& racer : m_Racers)
{
if (racer.curRing >= (_uint)m_pRaceRings.size())
continue;
CRaceRing* pRing = m_pRaceRings[racer.curRing];
_vector ringPos = pRing->Get_WorldPostion();
@@ -277,7 +279,6 @@ void CBroomRaceManager::Check_RingPassed()
pRing->Get_Component<CTransform>()->Get_State(STATE::RIGHT);
ringFwd = XMVector3Normalize(ringFwd);
_vector currPos = racer.pAI ? racer.pAI->Get_WorldPostion() : racer.pRacer->Get_WorldPostion();
_vector prevPos = XMLoadFloat4(&racer.prevPos);
@@ -306,14 +307,24 @@ void CBroomRaceManager::Check_RingPassed()
if (dist <= PASS_RADIUS)
{
if (racer.pRacer) {
pRing->Set_Target(false);
}
racer.curRing++;
racer.curRing = (racer.curRing + 1) % m_pRaceRings.size();
if (racer.curRing >= m_pRaceRings.size())
{
racer.curRing = (_uint)m_pRaceRings.size();
if (racer.pRacer) {
m_pRaceRings[racer.curRing]->Set_Target(true);
if (racer.pAI) {
racer.pAI->Get_Broom()->Set_Hover(true);
racer.pAI->Get_Broom()->Set_Move(false);
}
else if (racer.pRacer) {
m_iLastRing++;
racer.pRacer->Get_Broom()->Set_Hover(true);
racer.pRacer->Get_Broom()->Set_Move(false);
}
XMStoreFloat4(&racer.prevPos, currPos);
continue;
}
racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer);
@@ -328,7 +339,6 @@ void CBroomRaceManager::Finish()
{
}
void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
{
for (auto& racer : m_Racers)
@@ -337,11 +347,6 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
{
if (racer.pAI == pRacer)
{
if (racer.curRing == m_pRaceRings.size() - 1 ) {
racer.pAI->Get_Broom()->Set_Hover(true);
racer.pAI->Get_Broom()->Set_Move(false);
}
if (racer.pAI)
{
racer.pAI->Set_RaceRing(m_pRaceRings[racer.curRing]);
@@ -352,16 +357,12 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
{
if (racer.pRacer == pRacer)
{
if (racer.curRing == m_pRaceRings.size() - 1) {
racer.pRacer->Get_Broom()->Set_Hover(true);
racer.pRacer->Get_Broom()->Set_Move(false);
}
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
m_pInfoInstance->Event_CallBack(TEXT("CurrentRing"));
m_iLastRing++;
}
}
}
}
@@ -431,6 +432,7 @@ HRESULT CBroomRaceManager::Load_RaceRing()
return E_FAIL;
}
return S_OK;
}
@@ -269,7 +269,7 @@ HRESULT CBroomRacerAI::Ready_Components()
m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model");
break;
case 2:
m_strModelPrototypeTag = TEXT("Prototype_Component_Ghost_Peeves_Model");
m_strModelPrototypeTag = TEXT("Prototype_Component_ChiyoKogawa_Model");
break;
default:
break;
@@ -1106,6 +1106,10 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNonSoftEffect", &m_EffectInfo.isNonSoftEffect, sizeof(_bool)))) {
return E_FAIL;
}
if (m_pDiffuse_TextureCom != nullptr)
+24 -2
View File
@@ -47,6 +47,8 @@
#include "Ranrok_Point.h"
#include "Ranrok_Pulse.h"
#include "Ranrok_Charge.h"
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -158,9 +160,9 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
#if 진우
(*m_EffectList[ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA_SIDE)].begin())->Describe_Entity();
//(*m_EffectList[ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA_SIDE)].begin())->Describe_Entity();
Describe_Entity();
//Describe_Entity();
#endif
#endif
@@ -614,6 +616,26 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_HIT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Hit* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Hit>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_IMPACT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Impact* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Impact>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
@@ -665,6 +665,7 @@ _int CEffect_Container::CollisionCheck()
case PXOBJECT::MONSTER:
case PXOBJECT::GOBLIN_WARRIOR:
case PXOBJECT::GOBLIN_MAGICIAN:
case PXOBJECT::GOBLIN_ASSASSIN:
case PXOBJECT::TROLL:
case PXOBJECT::RANROK:
case PXOBJECT::WALL:
@@ -92,6 +92,14 @@ void CGoblin_Assassin::Update(_float fTimeDelta)
m_pFSM->Update_State(fTimeDelta);
m_vCaptureTimer.x += fTimeDelta;
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
m_vCaptureTimer.x = 0.f;
if (FAILED(m_pModelCom->Capture_BoneBuffer(m_pMotionTrailCom, *m_pTransformCom->Get_WorldMatrixPtr()))) {
assert(false);
}
}
m_pModelCom->Play_Animation(fTimeDelta * m_fEasing, m_pTransformCom);
__super::Update(fTimeDelta);
@@ -222,6 +230,10 @@ HRESULT CGoblin_Assassin::Render()
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
}
if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) {
return E_FAIL;
}
return S_OK;
}
@@ -328,6 +340,30 @@ HRESULT CGoblin_Assassin::Render_Shadow(SHADOW eType)
return S_OK;
}
HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
{
_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(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
m_pContext->VSSetShaderResources(26, 1, &pSRV);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
_vector CGoblin_Assassin::Get_LockOnPos()
{
if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
@@ -494,6 +530,16 @@ HRESULT CGoblin_Assassin::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN_ASSASSIN"), (CComponent**)&m_pStat))) {
return E_FAIL;
}
{
CMotion_Trail::MOTIONTRAIL_RENDERFUNC funcDesc{};
funcDesc.funcRenderCall = [this](ID3D11ShaderResourceView* pSRV) { Render_MotionTrail(pSRV); };
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), (CComponent**)&m_pMotionTrailCom, &funcDesc))) {
return E_FAIL;
}
}
return S_OK;
}
@@ -640,7 +686,7 @@ void CGoblin_Assassin::Free()
if (nullptr != m_pCallBack_HitReport) {
m_pCallBack_HitReport->Finalize();
}
SAFE_RELEASE(m_pMotionTrailCom);
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pSmoke);
@@ -128,7 +128,7 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_fTargetDistance >= 7.f)
if (m_fTargetDistance >= 6.f)
{
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -178,6 +178,8 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
for (_uint i = 0; i < ENUM_CLASS(GOBLIN_SKILL::END); i++)
{
if (i == ENUM_CLASS(GOBLIN_SKILL::THROW))
continue;
if (m_fSkillCoolTime[i] == 0.f)
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
@@ -89,9 +89,6 @@ HRESULT CInstancedProp::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
m_iNumMesh = m_pVIBufferInstanceCom->Get_NumMesh();
return S_OK;
}
@@ -107,8 +104,16 @@ HRESULT CInstancedProp::Ready_Components(void* pArg)
reinterpret_cast<CComponent**>(&m_pVIBufferInstanceCom))))
return E_FAIL;
m_iNumMesh = m_pVIBufferInstanceCom->Get_NumMesh();
if(pDesc->bEnableRigidbody)
{
if (FAILED(ReadyForPhysX()))
return E_FAIL;
}
/* Laod Instance Data */
if(FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str())))
if(FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str(), pDesc)))
return E_FAIL;
m_isShake = pDesc->isShake;
@@ -143,7 +148,16 @@ HRESULT CInstancedProp::Bind_ShaderResources()
return S_OK;
}
HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath)
HRESULT CInstancedProp::ReadyForPhysX()
{
if (FAILED(m_pVIBufferInstanceCom->Ready_PhysXMeshes(NEXT_LEVEL))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath, INSTANCE_PROP_DESC* pDesc)
{
ifstream FileIn(pFilePath, ios::binary);
@@ -155,19 +169,52 @@ HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath)
vector<_float4x4> WorldMatrices = {};
_uint iNumWorldMatrix = 0;
m_iNumInstacne = 0;
FileIn.read(reinterpret_cast<char*>(&iNumWorldMatrix), sizeof(_uint));
WorldMatrices.reserve(iNumWorldMatrix);
FileIn.read(reinterpret_cast<char*>(&m_iNumInstacne), sizeof(_uint));
WorldMatrices.reserve(m_iNumInstacne);
m_RigidBody.reserve(m_iNumInstacne);
_float4x4 WorldMatrix = {};
for (_uint i = 0; i < iNumWorldMatrix; ++i)
#pragma region FOR RIGIDBODY
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
vector<_wstring> RigidBodyTags;
for (_uint i = 0; i < m_iNumMesh; ++i)
{
RigidBodyTags.push_back(CMyTools::ToWstring(m_pVIBufferInstanceCom->Get_MeshName(i)) + to_wstring(i));
}
#pragma endregion
for (_uint i = 0; i < m_iNumInstacne; ++i)
{
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
WorldMatrices.push_back(WorldMatrix);
if(pDesc->bEnableRigidbody)
{
for (_uint i = 0; i < m_iNumMesh; ++i)
{
CRigidBody_Static* pRigidBody = { nullptr };
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
Desc.pMeshName = RigidBodyTags[i].c_str();
Desc.pWorldMatrix = &WorldMatrix;
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, RigidBodyTags[i], (CComponent**)&pRigidBody, &Desc))) {
return E_FAIL;
}
m_RigidBody.push_back(pRigidBody);
}
}
}
FileIn.close();
if (FAILED(m_pVIBufferInstanceCom->Load_WorldData(WorldMatrices)))
@@ -209,6 +256,11 @@ void CInstancedProp::Free()
{
__super::Free();
for (auto& pRigidBody : m_RigidBody)
{
SAFE_RELEASE(pRigidBody);
}
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferInstanceCom);
}
@@ -111,16 +111,22 @@ HRESULT CInstancedProp_Light::Initialize(void* pArg)
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
m_bEnableRigidbody = pDesc->bEnableRigidbody;
m_iGlassMeshIndex = pDesc->iGlassMeshIndex;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
Load_InstancedProp(pDesc->strInstanceDataPath.c_str());
m_iNumMesh = m_pVIBufferInstanceCom->Get_NumMesh();
if(m_bEnableRigidbody)
{
if (FAILED(ReadyForPhysX()))
return E_FAIL;
}
if (FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str())))
return E_FAIL;
return S_OK;
}
@@ -133,7 +139,7 @@ HRESULT CInstancedProp_Light::Ready_Components(void* pArg)
INSTANCE_PROP_LIGHT_DESC* pDesc = static_cast<INSTANCE_PROP_LIGHT_DESC*>(pArg);
/* Com_VIBuffer_Instance_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strPrototypeTag,
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, pDesc->strPrototypeTag,
reinterpret_cast<CComponent**>(&m_pVIBufferInstanceCom))))
return E_FAIL;
@@ -180,6 +186,15 @@ HRESULT CInstancedProp_Light::Bind_ShaderResources()
return S_OK;
}
HRESULT CInstancedProp_Light::ReadyForPhysX()
{
if (FAILED(m_pVIBufferInstanceCom->Ready_PhysXMeshes(NEXT_LEVEL))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CInstancedProp_Light::Load_InstancedProp(const _char* pFilePath)
{
ifstream FileIn(pFilePath, ios::binary);
@@ -192,18 +207,47 @@ HRESULT CInstancedProp_Light::Load_InstancedProp(const _char* pFilePath)
vector<_float4x4> WorldMatrices = {};
_uint iNumWorldMatrix = 0;
#pragma region FOR RIGIDBODY
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
FileIn.read(reinterpret_cast<char*>(&iNumWorldMatrix), sizeof(_uint));
WorldMatrices.reserve(iNumWorldMatrix);
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
vector<_wstring> RigidBodyTags;
for (_uint i = 0; i < m_iNumMesh; ++i)
{
RigidBodyTags.push_back(CMyTools::ToWstring(m_pVIBufferInstanceCom->Get_MeshName(i)) + to_wstring(i));
}
#pragma endregion
FileIn.read(reinterpret_cast<char*>(&m_iNumInstacne), sizeof(_uint));
WorldMatrices.reserve(m_iNumInstacne);
_float4x4 WorldMatrix = {};
for (_uint i = 0; i < iNumWorldMatrix; ++i)
for (_uint i = 0; i < m_iNumInstacne; ++i)
{
FileIn.read(reinterpret_cast<char*>(&WorldMatrix), sizeof(_float4x4));
WorldMatrices.push_back(WorldMatrix);
if (m_bEnableRigidbody)
{
for (_uint i = 0; i < m_iNumMesh; ++i)
{
CRigidBody_Static* pRigidBody = { nullptr };
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
Desc.pMeshName = RigidBodyTags[i].c_str();
Desc.pWorldMatrix = &WorldMatrix;
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, RigidBodyTags[i], (CComponent**)&pRigidBody, &Desc))) {
return E_FAIL;
}
m_RigidBody.push_back(pRigidBody);
}
}
}
FileIn.close();
@@ -246,6 +290,11 @@ void CInstancedProp_Light::Free()
{
__super::Free();
for (auto& pRigidBody : m_RigidBody)
{
SAFE_RELEASE(pRigidBody);
}
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferInstanceCom);
SAFE_RELEASE(m_pGlassTextureCom);
@@ -32,6 +32,7 @@
#include "NPC_EleazarFig.h"
#include "BroomRacerAI.h"
#include "Ranrok.h"
#include "RandomNpc.h"
#pragma endregion
@@ -102,9 +103,11 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
return E_FAIL;
}
if (FAILED(Ready_Layer_Player(LAYER_PLAYER))) {
return E_FAIL;
}
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
@@ -326,9 +329,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = true;
#endif // gimch
#ifdef Bin
isReady_Background = true;
isReady_Hogsmeade = true;
isReady_Hogwart = true;
isReady_Background = false;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 진우
isReady_Background = false;
@@ -449,7 +452,8 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* InstanceProp Oak_Tree*/
Desc.isShake = true;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin";
@@ -459,6 +463,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* BearBerry */
Desc.isShake = true;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.6f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A";
@@ -469,6 +474,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* SM_HM_OwlPost_Window_A */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OwlPost_Window.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -476,6 +482,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
///* WA_Rectangle_Double_A */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Rectangle_Double_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -483,6 +490,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
///* WC_Retangle_Double_A */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Retangle_Double_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -490,6 +498,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
///* WA_Square_Double_C */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WA_Square_Double_C.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -497,6 +506,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* Quid_Window_A */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Quid_Window_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -504,6 +514,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* Ollivanders_Box_Window */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Ollivanders_Box.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -511,6 +522,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* WC_L_DoubleS_A */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_L_DoubleS_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -518,6 +530,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* WC_Round_Double_A */
Desc.isShake = false;
Desc.bEnableRigidbody = false;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/WC_Round_Double_A.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -525,6 +538,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* SM_HM_Door1a */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door1a.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -532,6 +546,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* SM_HM_Door2b */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b";
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
@@ -539,6 +554,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* OakTree_TallA */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.016f);
Desc.vSpeed = _float2(0.01f, 0.1f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA";
@@ -548,6 +564,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* Shrub_B */
Desc.isShake = true;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Shrub_B";
@@ -557,6 +574,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* BogMyrtle_A */
Desc.isShake = true;
Desc.bEnableRigidbody = false;
Desc.vRadius = _float2(0.015f, 0.04f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A";
@@ -566,6 +584,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* Dogwood_B */
Desc.isShake = true;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B";
@@ -575,6 +594,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* ScotsPine_LargeA */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
Desc.vRadius = _float2(0.015f, 0.02f);
Desc.vSpeed = _float2(0.3f, 1.f);
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA";
@@ -587,6 +607,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* LightPost */
LightDesc.isShake = false;
LightDesc.bEnableRigidbody = true;
LightDesc.iGlassMeshIndex = 0;
LightDesc.vRadius = _float2(0.f, 0.f);
LightDesc.vSpeed = _float2(0.f, 0.f);
@@ -597,6 +618,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
/* LightPost_Floating */
LightDesc.isShake = false;
LightDesc.bEnableRigidbody = true;
LightDesc.iGlassMeshIndex = 1;
LightDesc.vRadius = _float2(0.f, 0.f);
LightDesc.vSpeed = _float2(0.f, 0.f);
@@ -695,21 +717,24 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
}
_bool isLoad_NPC = { true };
_bool isLoad_RandomNPC = { true };
#ifdef _DEBUG
#ifdef gimch
isLoad_RandomNPC = true;
#endif // gimch
#ifdef 진우
isLoad_RandomNPC = true;
#endif //
#ifdef 기무리
isLoad_NPC = false;
isLoad_NPC = true;
isLoad_RandomNPC = true;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
#endif //
#ifdef Bin
isLoad_NPC = true;
isLoad_RandomNPC = true;
#endif // Bin
#endif // _DEBUG
@@ -732,6 +757,25 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
}
}
}
if (true == isLoad_NPC)
{
for (_uint i = 0; i < 7; i++)
{
{
CRandomNpc::NPCDESC NPCDesc{};
_float X = m_pGameInstance->Real_Random_Float(22.f, 29.f);
_float Z = m_pGameInstance->Real_Random_Float(20.f, 29.f);
NPCDesc.vPos = _float4(X, -0.4f, Z, 1.f);
NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
NPCDesc.iIndex = i;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRandomNpc>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) {
return E_FAIL;
}
}
}
}
return S_OK;
}
@@ -778,7 +822,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
#endif //
#ifdef Bin
isLoad_Monster = true;
#endif // Bin
#endif // _DEBUG
if (true == isLoad_Monster) {
+202 -38
View File
@@ -41,6 +41,7 @@
#include "NPC_EleazarFig.h"
#include "BroomRacerAI.h"
#include "Ranrok.h"
#include "RandomNpc.h"
#ifdef _DEBUG
#include "Camera_Model.h"
@@ -212,6 +213,8 @@
#include "Ranrok_Point.h"
#include "Ranrok_Charge.h"
#include "Ranrok_Pulse.h"
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -412,9 +415,9 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_UI_SEQUANTIAL = false;
#endif //
#ifdef Bin
isLoad_Background = true;
isLoad_Hogwart = true;
isLoad_UI_SEQUANTIAL = true;
isLoad_Background = false;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
#endif // Bin
#endif // _DEBUG
@@ -1936,6 +1939,23 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
}
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC RanrokDesc{};
{
RanrokDesc.eType = ACTOR::BOX;
RanrokDesc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
RanrokDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
RanrokDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
RanrokDesc.vMatInfo = { 0.5f, 0.5f, 0.6f };
RanrokDesc.fContactOffset = { 0.05f };
RanrokDesc.vhalfGeometryInfo = { 0.5f, 0.5f, 0.5f };
RanrokDesc.fDensity = 1.f;
RanrokDesc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
RanrokDesc.eLockFlag = {};
RanrokDesc.vAutoDamping = { 1.f, 1.f };
RanrokDesc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
RanrokDesc.vLocalTranslation = { 0.f, 5.f, 0.f };
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
}
@@ -1945,7 +1965,9 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, RanrokDesc)))) {
return E_FAIL;
}
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
@@ -2008,8 +2030,43 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ChiyoKogawa_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MatildaWeasely_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SatyavatiShah_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", 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())))) {
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_PhineasBlack_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Student_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Student_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Elf_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
}
@@ -2300,6 +2357,15 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Hit>(g_iStaticLevel, CRanrok_Hit::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Impact>(g_iStaticLevel, CRanrok_Impact::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -2861,12 +2927,21 @@ HRESULT CLoader::Loading_For_GamePlay()
}
#pragma region MAP_INSTANCE
_string strMaterailPath = "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml";
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin",
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
@@ -2924,22 +2999,43 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_Shrub_B*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Shrub_B"),
@@ -2954,28 +3050,56 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
/* For.Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_Dogwood_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_Dogwood_B.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_ScotsPine_LargeA_Master.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_ScotsPine_LargeA_Master.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_LightPost */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_LightPost"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_LightPost.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_LightPost.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_LightPost"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
/* For.Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_Light_Post_Floating.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
"../Bin/Resources/Models/InstanceProp/SM_HM_Light_Post_Floating.bin", strMaterailPath.c_str());
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating"),
pModel_Instance)))
return E_FAIL;
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
return E_FAIL;
}
#pragma endregion
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
@@ -3149,6 +3273,11 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
/* For.Prototype_GameObject_RandomNpc */
if (FAILED(m_pGameInstance->Add_Prototype<CRandomNpc>(g_iStaticLevel, CRandomNpc::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
#ifdef _DEBUG
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Model>(g_iStaticLevel, CCamera_Model::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -3274,6 +3403,17 @@ HRESULT CLoader::Loading_For_GamePlay()
}
}
{
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"));
CMotion_Trail::MODELCAPTURE_DESC Desc{};
Desc.fMaxCaptureLifeTime = 2.f;
Desc.iMaximumCapture = 4;
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
return E_FAIL;
}
}
m_strMessage = TEXT("로딩이 완료되었습니다..");
m_isFinished = true;
@@ -3599,6 +3739,30 @@ void CLoader::Ready_MapModels(vector<future<vector<FOLDER_LOAD*>*>>& jobMapModel
}
HRESULT CLoader::Ready_RigidBody_Static(CVIBuffer_Model_Instance* pModel_Instance)
{
_uint iNumMesh = pModel_Instance->Get_NumMesh();
for (_uint i = 0; i < iNumMesh; ++i)
{
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; //
{
Desc.eType = ACTOR::TRIANGLEMESH;
Desc.ePxRigidBodyFlags = {};
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
Desc.fContactOffset = 0.001f;
}
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, CMyTools::ToWstring(pModel_Instance->Get_MeshName(i) + to_string(i)), pRigid))) {
return E_FAIL;
}
}
return S_OK;
}
CLoader* CLoader::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID)
{
CLoader* pInstance = new CLoader(pDevice, pContext);
@@ -387,6 +387,12 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f
m_bHit = true;
}
break;
case PXOBJECT::GOBLIN_ASSASSIN:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
m_bHit = true;
}
break;
case PXOBJECT::TROLL:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
@@ -181,6 +181,7 @@ void CMapElement_Static::ConvertToPhysX()
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
Desc.pMeshName = wstrName.c_str();
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
assert(false);
}
@@ -188,6 +188,7 @@ void CMapObject_Collision::ConvertToPhysX()
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
Desc.pMeshName = wstrName.c_str();
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
assert(false);
}
@@ -187,6 +187,7 @@ void CMapObject_Render::ConvertToPhysX()
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
Desc.pMeshName = wstrName.c_str();
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
assert(false);
}
@@ -2,6 +2,7 @@
#include "NPCInteraction.h"
#include "GameInstance.h"
#include "Unit.h"
#include "InfoInstance.h"
CNPCInteraction::CNPCInteraction(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -9,7 +10,8 @@ CNPCInteraction::CNPCInteraction(ID3D11Device* pDevice, ID3D11DeviceContext* pCo
}
CNPCInteraction::CNPCInteraction(const CNPCInteraction& rhs)
: CGameObject(rhs)
: CGameObject(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -36,12 +38,15 @@ HRESULT CNPCInteraction::Initialize(void* pArg)
m_fViewPort = _float2(_float(g_iWinSizeX), _float(g_iWinSizeY));
//m_fX = 630.f;
//m_fY = -125.f;
m_fAlpha = 1.f;
m_vNine_Slice = _float4(160.f, 256.f, 32.f, 32.f);
m_fFontSize = 0.f;
Set_ImageSizePosition();
Set_ImageSizePosition();
m_pInfoInstance->Add_Event(TEXT("NPCInteractionOn"), [this](void* p) {this->NpcInfo(p); });
m_pInfoInstance->Add_Event(TEXT("NPCInteractionOff"), [this](void* p) {this->ActiveOff(); });
return S_OK;
}
@@ -78,48 +83,63 @@ void CNPCInteraction::Set_ImageSizePosition()
m_vImagePosi1 = _float4(25.f, 15.f, 35.f, 35.f);
}
void CNPCInteraction::NpcInfo(_wstring Name)
void CNPCInteraction::ActiveOff()
{
m_NpcName = Name;
m_bActive = false;
m_pInfo.pOwner = nullptr;
}
void CNPCInteraction::NpcInfo(void* pArg)
{
NPCINTERACTIONINFO* Info = reinterpret_cast<NPCINTERACTIONINFO*>(pArg);
m_bActive = true;
m_pInfo.pOwner = Info->pOwner;
m_pInfo.pNPCName = Info->pNPCName;
m_pInfo.pNPCPosition = Info->pNPCPosition;
_vector MonsterPos = static_cast<CUnit*>(Info->pOwner)->Get_WorldPostion();
_vector HeadPos = MonsterPos + XMVectorSet(0.5f, 2.f, 0.f, 0.f);
XMStoreFloat4(&m_pInfo.pNPCPosition, HeadPos);
}
void CNPCInteraction::Priority_Update(_float fTimeDelta)
{
_vector MonsterPos = static_cast<CUnit*>(m_pOwner)->Get_WorldPostion();
if (m_pInfo.pOwner != nullptr)
{
_vector MonsterPos = static_cast<CUnit*>(m_pInfo.pOwner)->Get_WorldPostion();
_vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.5f, 2.f, 0.f, 0.f));
XMStoreFloat4(&m_pInfo.pNPCPosition, HeadPos);
_float fOffsetX = 0.5f; // 적절한 X 오프셋 값 (몬스터 머리 옆으로 올리기 위함)
_float fOffsetY = 2.f; // 적절한 Y 오프셋 값 (몬스터 머리 위로 올리기 위함)
_vector ScreenPos = XMVector3Project(
HeadPos,
0.f, 0.f,
g_iWinSizeX, g_iWinSizeY,
0.f, 1.f,
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
XMMatrixIdentity()
);
_vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(fOffsetX, fOffsetY, 0.f, 0.f));
ScreenPos = ScreenPos + XMVectorSet(m_fFontSize, -50.f, 0.f, 0.f);
XMStoreFloat4(&m_vPosition, HeadPos);
_vector WorldOffsetPos = XMVector3Unproject(
ScreenPos,
0.f, 0.f,
g_iWinSizeX, g_iWinSizeY,
0.f, 1.f,
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
XMMatrixIdentity()
);
_vector ScreenPos = XMVector3Project(
HeadPos,
0.f, 0.f,
g_iWinSizeX, g_iWinSizeY,
0.f, 1.f,
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
XMMatrixIdentity()
);
XMStoreFloat4(&m_vFontPosition, WorldOffsetPos);
m_fSize = _float3(m_fSize.x, m_fOrigin_Size.y, m_fOrigin_Size.z);
m_fFontSize = 0;
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pInfo.pNPCPosition));
}
ScreenPos = ScreenPos + XMVectorSet(m_fFontSize, -50.f, 0.f, 0.f);
_vector WorldOffsetPos = XMVector3Unproject(
ScreenPos,
0.f, 0.f,
g_iWinSizeX, g_iWinSizeY,
0.f, 1.f,
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
XMMatrixIdentity()
);
XMStoreFloat4(&m_vFontPosition, WorldOffsetPos);
m_fSize = _float3(m_fSize.x, m_fOrigin_Size.y, m_fOrigin_Size.z);
m_fFontSize = 0;
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
}
void CNPCInteraction::Update(_float fTimeDelta)
@@ -132,7 +152,9 @@ void CNPCInteraction::Late_Update(_float fTimeDelta)
{
if (m_bVisible != true)
return;
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
if (m_bActive == true)
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
}
HRESULT CNPCInteraction::Render()
@@ -160,7 +182,7 @@ HRESULT CNPCInteraction::Render()
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
TEXT("Font_size20"),
m_NpcName.c_str(),
m_pInfo.pNPCName.c_str(),
XMLoadFloat4(&m_vFontPosition));
m_pGameInstance->Perspective_Render_Text(
@@ -168,17 +190,12 @@ HRESULT CNPCInteraction::Render()
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
TEXT("Font_size15"),
TEXT("대화하기"),
XMLoadFloat4(&m_vPosition));
XMLoadFloat4(&m_pInfo.pNPCPosition));
return S_OK;
}
_vector CNPCInteraction::Get_WorldPostion()
{
return m_pOwner->Get_WorldPostion();
}
HRESULT CNPCInteraction::Bind_ShaderResources()
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
@@ -36,7 +36,7 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
Describe_Entity();
#endif // _DEBUG
m_pNPCInteraction->Set_Visible(0 < m_iEntered);
// m_pNPCInteraction->Set_Visible(0 < m_iEntered);
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
}
@@ -135,6 +135,11 @@ void CNPC_Ollivander::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _
}
}
_wstring CNPC_Ollivander::Get_Name()
{
return m_pNpcStat->Get_Stat().pNpc_Name;
}
HRESULT CNPC_Ollivander::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
@@ -182,6 +187,8 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg)
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
m_pModelCom->Set_AnimationIndex(0, true);
m_bNpc = true;
return S_OK;
}
@@ -221,11 +228,11 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPCInteraction>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pNPCInteraction))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPCInteraction>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pNPCInteraction))) {
// return E_FAIL;
//}
m_pNPCInteraction->NpcInfo(m_pNpcStat->Get_Stat().pNpc_Name);
//m_pNPCInteraction->NpcInfo(m_pNpcStat->Get_Stat().pNpc_Name);
return S_OK;
}
+84 -30
View File
@@ -111,7 +111,7 @@ HRESULT CPlayer::Initialize(void* pArg)
m_bAI = false;
XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
m_fRayDistance = 60.f;
m_fRayDistance = 5.f;
m_pModelCom->Set_DisableRootMotionScale(true);
return S_OK;
@@ -285,8 +285,11 @@ void CPlayer::Update_CameraShake(_float fTimeDelta)
}
}
}
HRESULT CPlayer::Update_RaycastElements()
{
CGameObject* pFoundNPC = nullptr;
if (E_FAIL == m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER)) {
m_iRayHitCount = 0;
return E_FAIL;
@@ -296,28 +299,81 @@ HRESULT CPlayer::Update_RaycastElements()
vector<PSX::PxRaycastHit> m_vRayHits = {};
m_vRayHits.resize(12);
_bool bHit = m_pGameInstance->RayCast(vCameraPos, vCameraDir, m_fRayDistance, m_vRayHits.data(), (_uint)m_vRayHits.size(), m_iRayHitCount);
if (true == bHit) {
if (true == bHit)
{
NPCINTERACTIONINFO Info{};
CMyTools::SortHitsByDistance(m_vRayHits);
for (_uint i = 0; i < m_iRayHitCount; ++i) {
if (nullptr != m_vRayHits[i].actor->userData) {
PHYSX_USERDATA* pData = (PHYSX_USERDATA*)m_vRayHits[i].actor->userData;
switch (pData->eKind)
{
case PHYSX_KIND::BODY_STATIC:
break;
case PHYSX_KIND::BODY_DYNAMIC:
pData->pBody->OnRayCollision(this, i, m_vRayHits[i].distance, _float3(m_vRayHits[i].position.x, m_vRayHits[i].position.y, m_vRayHits[i].position.z));
break;
case PHYSX_KIND::CCTActor:
break;
default:
break;
}
for (_uint i = 0; i < m_iRayHitCount; ++i)
{
if (nullptr == m_vRayHits[i].actor->userData)
{
continue;
}
PHYSX_USERDATA* pData = (PHYSX_USERDATA*)m_vRayHits[i].actor->userData;
if (pData->eKind != PHYSX_KIND::BODY_DYNAMIC)
{
continue;
}
pData->pBody->OnRayCollision(this, i, m_vRayHits[i].distance, _float3(m_vRayHits[i].position.x, m_vRayHits[i].position.y, m_vRayHits[i].position.z));
CUnit* Npc = dynamic_cast<CUnit*>(pData->pOwner);
if (!Npc)
{
continue;
}
if (!Npc->Get_Npc())
{
continue;
}
pFoundNPC = Npc;
break;
}
if (pFoundNPC)
{
if (m_pCurrentNpcInteraction != pFoundNPC)
{
m_pCurrentNpcInteraction = pFoundNPC;
Info.pOwner = pFoundNPC;
Info.pNPCName = static_cast<CUnit*>(pFoundNPC)->Get_Name();
_float4 Pos{};
XMStoreFloat4(&Pos, static_cast<CUnit*>(pFoundNPC)->Get_WorldPostion());
Info.pNPCPosition = Pos;
m_bNpcInteraction = true;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOn"), &Info);
}
}
else
{
if (m_pCurrentNpcInteraction)
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff"));
}
}
}
else
{
if (m_pCurrentNpcInteraction)
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff"));
}
}
return S_OK;
}
HRESULT CPlayer::Render_Shadow(SHADOW eType)
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
@@ -343,13 +399,11 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)){
#ifdef 기무리
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;
}
#endif // 기무리
}
else {
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
@@ -368,10 +422,10 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
{
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
if (m_pFSM->IsEnable(FSMSTATE::DODGE | FSMSTATE::BLINK) ||
if (m_pFSM->IsEnable(FSMSTATE::DODGE | FSMSTATE::BLINK) ||
m_bShield ||
iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first ||
iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first ||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first ||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first)
return;
@@ -389,8 +443,8 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
else {
m_fHitDegree = -1.f;
}
if(m_eHitType !=ENUM_CLASS(HIT_TYPE::HIT_NONE))
if (m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_NONE))
m_pFSM->Change_State(FSMSTATE::HIT);
}
void CPlayer::OnHit(CGameObject* pOther, CGameObject* pCaller)
@@ -633,12 +687,12 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
for (_uint i = 0; i < MeshBoneCount; ++i)
{
XMStoreFloat4x4(&SkinMatrices[i] ,XMMatrixIdentity());
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();
vector<_int> boneIndices = pMesh->Get_BoneIndices();
for (_uint i = 0; i < MeshBoneCount; ++i)
{
@@ -667,8 +721,8 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
return E_FAIL;
}
}
break;
#endif // 기무리
break;
#endif // _DEBUG
default:
break;
@@ -235,112 +235,6 @@ HRESULT CPlayerRobe::Render_BonePhysX()
}
#endif // _DEBUG
HRESULT CPlayerRobe::Update_RobeJoints()
{
for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
m_JointDescriptions[i].InitFromJoint(*m_pDynamicJoints[i]);
switch (PLAYER_JOINT_ORDER(i))
{
/* From Origin */
case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START:
m_JointDescriptions[i].iMotionTwist = 0;
m_JointDescriptions[i].iMotionSwing1 = 0;
m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 5.f;
break;
case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_END:
m_JointDescriptions[i].iMotionTwist = 0;
m_JointDescriptions[i].iMotionSwing1 = 0;
m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 5.f;
break;
/* From_Middle */
case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START:
case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START:
case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START:
m_JointDescriptions[i].iMotionTwist = 0;
m_JointDescriptions[i].iMotionSwing1 = 0;
m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 10.f;
break;
case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END:
case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END:
case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fSwingDeg = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].bEnableSlerpDrive = true;
m_JointDescriptions[i].fLinearStiffness = 10.f;
m_JointDescriptions[i].fSlerpDamping = 3.f;
m_JointDescriptions[i].fSlerpForceLimit = 40.f;
m_JointDescriptions[i].bSlerpAccel = true;
break;
/* From_Lower */
case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START:
case PLAYER_JOINT_ORDER::RMIDDLE_TO_R_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 15.f;
m_JointDescriptions[i].fSwingDeg = 15.f;
break;
case PLAYER_JOINT_ORDER::RMIDDLE_TO_R_END:
case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_END:
break;
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START:
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 15.f;
m_JointDescriptions[i].fSwingDeg = 15.f;
break;
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_END:
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_END:
break;
case PLAYER_JOINT_ORDER::LMIDDLE_TO_L_START:
case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 15.f;
m_JointDescriptions[i].fSwingDeg = 15.f;
break;
case PLAYER_JOINT_ORDER::LMIDDLE_TO_L_END:
case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END:
break;
default:
break;
}
m_JointDescriptions[i].ApplyToJoint(*m_pDynamicJoints[i]);
}
return S_OK;
}
HRESULT CPlayerRobe::Ready_Components()
{
__super::Ready_Components(nullptr);
@@ -672,7 +566,6 @@ HRESULT CPlayerRobe::Initialize(void* pArg)
JointDesc.ApplyToJoint(*m_pDynamicJoints[i]);
m_JointDescriptions[i] = JointDesc;
}
//Update_RobeJoints();
#ifdef _DEBUG
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.05f, 22, false, false));
@@ -74,17 +74,14 @@ HRESULT CPlayer::InputAction()
|| m_pGameInstance->Key_Down(DIK_Z)
|| m_pGameInstance->Key_Down(DIK_G)
|| m_pGameInstance->Key_Down(DIK_B)
//|| m_pGameInstance->Key_Down(DIK_T)
//|| m_pGameInstance->Key_Down(DIK_TAB)
//|| m_pGameInstance->Key_Down(DIK_ESCAPE)
|| m_pGameInstance->Key_Down(DIK_F)
)
{
//if (m_pGameInstance->Key_Down(DIK_T)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_T));
//if (m_pGameInstance->Key_Down(DIK_TAB)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_TAB));
if (m_pGameInstance->Key_Down(DIK_X)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_X));
if (m_pGameInstance->Key_Down(DIK_G)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_G));
if (m_pGameInstance->Key_Down(DIK_Z)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_Z));
//if (m_pGameInstance->Key_Down(DIK_ESCAPE)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_ESPACE));
if (m_pGameInstance->Key_Down(DIK_F)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_F));
return S_OK;
}
}
@@ -0,0 +1,325 @@
#include "pch.h"
#include "RandomNpc.h"
#include "GameInstance.h"
#include "InfoInstance.h"
#include "Player.h"
#include "NPCInteraction.h"
CRandomNpc::CRandomNpc(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
{
}
CRandomNpc::CRandomNpc(const CRandomNpc& Prototype)
: CUnit(Prototype),
m_pInfoInstance(CInfoInstance::GetInstance())
{
}
HRESULT CRandomNpc::Initialize_Prototype()
{
return S_OK;
}
HRESULT CRandomNpc::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
NPCDESC* pDesc = static_cast<NPCDESC*>(pArg);
m_iIndex = pDesc->iIndex;
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
_vector vPos = XMLoadFloat4(&pDesc->vPos);
m_pTransformCom->Set_State(STATE::POSITION, vPos);
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
m_pModelCom->Set_AnimationIndex(0, true);
m_bNpc = true;
return S_OK;
}
void CRandomNpc::Priority_Update(_float fTimeDelta)
{
m_pTransformCom->RewindMomentum();
m_iEntered -= 1;
if (m_iEntered < 0) {
m_iEntered = 0;
}
__super::Priority_Update(fTimeDelta);
}
void CRandomNpc::Update(_float fTimeDelta)
{
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
/*m_pNPCInteraction->Set_Visible(0 < m_iEntered);*/
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
}
void CRandomNpc::Late_Update(_float fTimeDelta)
{
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
__super::Late_Update(fTimeDelta);
}
HRESULT CRandomNpc::Render()
{
if (FAILED(Bind_ShaderResources())) {
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(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
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;
}
}
return S_OK;
}
HRESULT CRandomNpc::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(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 CRandomNpc::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)
{
CPlayer* pPlayer = dynamic_cast<CPlayer*>(pCaster);
if (nullptr == pPlayer) {
return;
}
if (fDistance < m_fEncounterDistance) {
m_iEntered = 4;
}
}
_wstring CRandomNpc::Get_Name()
{
return m_pNpcStat->Get_Stat().pNpc_Name;
}
HRESULT CRandomNpc::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 CRandomNpc::Ready_Components(void* pArg)
{
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;
}
switch (m_iIndex)
{
case 0:
m_strModelPrototypeTag = TEXT("Prototype_Component_MatildaWeasely_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MATILDAWEASELY"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 1:
m_strModelPrototypeTag = TEXT("Prototype_Component_SatyavatiShah_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("SATYAVATI"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 2:
m_strModelPrototypeTag = TEXT("Prototype_Component_Ghost_Peeves_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PEEVES"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 3:
m_strModelPrototypeTag = TEXT("Prototype_Component_PhineasBlack_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHINEASBLACK"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 4:
m_strModelPrototypeTag = TEXT("Prototype_Component_M_Student_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("M_STUDENT"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 5:
m_strModelPrototypeTag = TEXT("Prototype_Component_F_Student_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("F_STUDENT"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 6:
m_strModelPrototypeTag = TEXT("Prototype_Component_Elf_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
}
/* 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;
}
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
}
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPCInteraction>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pNPCInteraction))) {
// return E_FAIL;
//}
//m_pNPCInteraction->NpcInfo(m_pNpcStat->Get_Stat().pNpc_Name);
return S_OK;
}
CRandomNpc* CRandomNpc::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRandomNpc* pInstance = new CRandomNpc(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRandomNpc");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRandomNpc::Clone(void* pArg, CGameObject* pOwner)
{
CRandomNpc* pInstance = new CRandomNpc(*this);
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRandomNpc");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRandomNpc::Free()
{
__super::Free();
SAFE_RELEASE(m_pNpcStat);
SAFE_RELEASE(m_pRigidBody);
if (nullptr != m_pInfoInstance) {
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
}
}
#ifdef _DEBUG
void CRandomNpc::Describe_Entity()
{
}
#endif // _DEBUG
+169 -21
View File
@@ -11,6 +11,7 @@
#include "TrailObject.h"
#include "MapElement_Interactable.h"
#pragma region STATE
#include "State_Idle.h"
#include "State_Move.h"
@@ -108,14 +109,17 @@ void CRanrok::Update(_float fTimeDelta)
m_pFSM->Update_State(fTimeDelta);
m_vCaptureTimer.x += fTimeDelta;
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
m_vCaptureTimer.x = 0.f;
if (FAILED(m_pModelCom->Capture_BoneBuffer(m_pMotionTrailCom, *m_pTransformCom->Get_WorldMatrixPtr()))) {
assert(false);
if (m_bMotionTrail) {
m_vCaptureTimer.x += fTimeDelta;
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
m_vCaptureTimer.x = 0.f;
if (FAILED(m_pModelCom->Capture_BoneBuffer(m_pMotionTrailCom, *m_pTransformCom->Get_WorldMatrixPtr()))) {
assert(false);
}
}
}
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
@@ -161,6 +165,28 @@ void CRanrok::Update(_float fTimeDelta)
Update_Disolve(fTimeDelta,0.8f);
#pragma region TRAIL_UPDATE
_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
_matrix LeftEyeMatrix = {};
_matrix RightEyeMatrix = {};
LeftEyeMatrix = XMLoadFloat4x4(m_pLeftEye_BoneMat);
RightEyeMatrix = XMLoadFloat4x4(m_pRightEye_BoneMat);
for (int i = 0; i < 3; ++i) {
LeftEyeMatrix.r[i] = XMVector3Normalize(LeftEyeMatrix.r[i]);
RightEyeMatrix.r[i] = XMVector3Normalize(RightEyeMatrix.r[i]);
}
m_pLeftEye_Trail->Trail_Update(LeftEyeMatrix * WorldMat, fTimeDelta);
m_pRightEye_Trail->Trail_Update(RightEyeMatrix * WorldMat, fTimeDelta);
#pragma endregion
}
void CRanrok::Late_Update(_float fTimeDelta)
@@ -275,13 +301,18 @@ HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
_vector CRanrok::Get_LockOnPos()
{
_vector Offset = XMVectorZero();
//if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
//{
// Offset = XMVectorSetY(Offset, 10.f);
//}
if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
return m_pCharacter_Controller->Get_Position();
return m_pCharacter_Controller->Get_Position() + Offset;
}
else if (nullptr != m_pRigidBody) {
return m_pRigidBody->Get_Position();
return m_pRigidBody->Get_Position() + Offset;
}
return Get_WorldPostion();
return Get_WorldPostion() + Offset;
}
void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
@@ -296,7 +327,7 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
//m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
XMStoreFloat4(&m_DamageInfo.vTarget_Pos, m_pCharacter_Controller->Get_HeadPosition());
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
@@ -334,6 +365,8 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
break;
}
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_HIT, this, &CollisionDesc->vWorldPos);
}
else
{
@@ -348,37 +381,67 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
}
/*m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);*/
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
}
_float curr = Get_HpRatio();
pair<_uint, _bool> pairAnimInfo = {};
if (m_fPrevHpRatio > 0.85f && curr <= 0.85f)
{
m_pFSM->Change_State(FSMSTATE::TUCKED);
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2];
m_fPrevHpRatio = curr;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionDesc->vWorldPos);
Add_Event(pairAnimInfo.first,
[&]() {m_bDisolve = true; },
0.75f);
Add_Event(pairAnimInfo.first,
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
0.95f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return;
}
else if (m_fPrevHpRatio > 0.7f && curr <= 0.7f)
{
m_pFSM->Change_State(FSMSTATE::TUCKED);
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2];
m_fPrevHpRatio = curr;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionDesc->vWorldPos);
Add_Event(pairAnimInfo.first,
[&]() {m_bDisolve = true; },
0.75f);
Add_Event(pairAnimInfo.first,
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
0.95f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return;
}
else if (m_fPrevHpRatio > 0.5f && curr <= 0.5f)
{
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2];
m_ePhase = ENUM_CLASS(RANROK_PHASE::PHASE_GROUND);
m_pFSM->Change_State(FSMSTATE::TUCKED);
m_fPrevHpRatio = curr;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionDesc->vWorldPos);
Add_Event(pairAnimInfo.first,
[&]() {m_bDisolve = true; },
0.75f);
Add_Event(pairAnimInfo.first,
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
0.95f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return;
}
m_fPrevHpRatio = curr;
if (IsHitStateDisabled() && IsHitSpellDisabled()) {
if (!IsHitStateDisabled() || IsHitSpellDisabled()) {
m_pFSM->Change_State(FSMSTATE::HIT);
}
}
@@ -437,7 +500,7 @@ HRESULT CRanrok::Ready_Components()
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
@@ -460,6 +523,78 @@ HRESULT CRanrok::Ready_Components()
HRESULT CRanrok::Ready_Parts()
{
#pragma region EFFECT
/* EFFECT */
CPartObject::PARTOBJECT_DESC PartsDesc{};
PartsDesc.pParentTransform = m_pTransformCom;
if (FAILED(Add_PartObject<CEffectParts>("LeftSmoke", g_iStaticLevel, &m_pLeftSmoke, &PartsDesc)))
{
return E_FAIL;
}
m_pLeftSmoke->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSmoke/Smoke", static_cast<LEVEL>(g_iStaticLevel));
m_pLeftSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("wrist_left_target"));
if (FAILED(Add_PartObject<CEffectParts>("RightSmoke", g_iStaticLevel, &m_pRightSmoke, &PartsDesc)))
{
return E_FAIL;
}
m_pRightSmoke->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSmoke/Smoke", static_cast<LEVEL>(g_iStaticLevel));
m_pRightSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("wrist_right_target"));
if (FAILED(Add_PartObject<CEffectParts>("BottomSmoke", g_iStaticLevel, &m_pBottomSmoke, &PartsDesc)))
{
return E_FAIL;
}
m_pBottomSmoke->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSmoke/Smoke_Bottom", static_cast<LEVEL>(g_iStaticLevel));
m_pBottomSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("hip"));
if (FAILED(Add_PartObject<CEffectParts>("LeftParticle", g_iStaticLevel, &m_pLeftPt, &PartsDesc)))
{
return E_FAIL;
}
m_pLeftPt->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Side_PT", static_cast<LEVEL>(g_iStaticLevel));
m_pLeftPt->FollowParents(m_pModelCom->Get_BoneMatrixPtr("indexmiddlewing_04_right"));
if (FAILED(Add_PartObject<CEffectParts>("RightParticle", g_iStaticLevel, &m_pRightPt, &PartsDesc)))
{
return E_FAIL;
}
m_pRightPt->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Side_PT", static_cast<LEVEL>(g_iStaticLevel));
m_pRightPt->FollowParents(m_pModelCom->Get_BoneMatrixPtr("indexmiddlewing_04_left"));
if (FAILED(Add_PartObject<CTrailObject>("Left_Trail", g_iStaticLevel, &m_pLeftEye_Trail, &PartsDesc))) {
return E_FAIL;
}
m_pLeftEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast<LEVEL>(g_iStaticLevel));
m_pLeftEye_Trail->Set_Visible(true);
if (FAILED(Add_PartObject<CTrailObject>("Right_Trail", g_iStaticLevel, &m_pRightEye_Trail, &PartsDesc))) {
return E_FAIL;
}
m_pRightEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast<LEVEL>(g_iStaticLevel));
m_pRightEye_Trail->Set_Visible(true);
m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
#pragma endregion
return S_OK;
}
@@ -527,9 +662,9 @@ HRESULT CRanrok::Render_Nonblend()
}
}
if (m_bDrawOutLine) {
/*if (m_bDrawOutLine) {
Render_OutLine();
}
}*/
#ifdef _DEBUG
if (true == m_pCharacter_Controller->IsActive()) {
@@ -557,9 +692,14 @@ HRESULT CRanrok::Render_Nonblend()
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
}
if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) {
return E_FAIL;
#ifndef 진우
if (m_bMotionTrail) {
if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) {
return E_FAIL;
}
}
#endif
return S_OK;
}
@@ -806,6 +946,14 @@ void CRanrok::Free()
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pEffectPool);
SAFE_RELEASE(m_pRanrok_Point);
SAFE_RELEASE(m_pRightSmoke);
SAFE_RELEASE(m_pLeftSmoke);
SAFE_RELEASE(m_pBottomSmoke);
SAFE_RELEASE(m_pLeftEye_Trail);
SAFE_RELEASE(m_pRightEye_Trail);
SAFE_RELEASE(m_pRightPt);
SAFE_RELEASE(m_pLeftPt);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
}
@@ -0,0 +1,188 @@
#include "pch.h"
#include "Ranrok_Hit.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Hit::CRanrok_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Hit::CRanrok_Hit(const CRanrok_Hit& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Hit::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokHit")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_Hit::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
if (FAILED(Create_Effect()))
return E_FAIL;
m_wstrEffectName = L"RanrokHit";
m_fDuration = 5.f;
return S_OK;
}
void CRanrok_Hit::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Hit::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Hit::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Hit::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
_float4 vHitPos = *static_cast<_float4*>(pArg);
/* 초기 객체 비지블*/
CEffectParts* pHit_PT_R = Get_PartObject<CEffectParts>("Hit_PT_R");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSplatter_Hit = Get_PartObject<CEffectParts>("Splatter_Hit");
pSplatter_Hit->Set_Visible(true);
pHit_PT_R->Set_Visible(true);
pRock_PT->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vHittingPos = XMLoadFloat4(&vHitPos);
pSplatter_Hit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHittingPos);
pHit_PT_R->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHittingPos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHittingPos);
return S_OK;
}
HRESULT CRanrok_Hit::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Hit::Ready_Child()
{
return S_OK;
}
CRanrok_Hit* CRanrok_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Hit* pInstance = new CRanrok_Hit(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Hit");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Hit::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Hit* pInstance = new CRanrok_Hit(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Hit");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Hit::OnCollision(CGameObject* pOther, void* pDesc)
{
if (m_bHit == false)
return;
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
}
void CRanrok_Hit::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Hit::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Hit::Bind_ShaderResources()
{
return S_OK;
}
@@ -0,0 +1,192 @@
#include "pch.h"
#include "Ranrok_Impact.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Impact::CRanrok_Impact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Impact::CRanrok_Impact(const CRanrok_Impact& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Impact::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokBigHit")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_Impact::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
if (FAILED(Create_Effect()))
return E_FAIL;
m_wstrEffectName = L"RanrokImpact";
m_fDuration = 5.f;
return S_OK;
}
void CRanrok_Impact::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Impact::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Impact::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Impact::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pHit_PT0 = Get_PartObject<CEffectParts>("Hit_PT0");
CEffectParts* pHit_Pulse = Get_PartObject<CEffectParts>("Hit_Pulse");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSplash_Hit = Get_PartObject<CEffectParts>("Splash_Hit");
CEffectParts* pSpline0 = Get_PartObject<CEffectParts>("Spline0");
CEffectParts* pSpline1 = Get_PartObject<CEffectParts>("Spline1");
pHit_PT0->Set_Visible(true);
pHit_Pulse->Set_Visible(true);
pRock_PT->Set_Visible(true);
pSplash_Hit->Set_Visible(true);
pSpline0->Set_Visible(true);
pSpline1->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
pHit_PT0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
pHit_Pulse->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
pSplash_Hit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
pSpline0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
pSpline1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
return S_OK;
}
HRESULT CRanrok_Impact::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Impact::Ready_Child()
{
return S_OK;
}
CRanrok_Impact* CRanrok_Impact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Impact* pInstance = new CRanrok_Impact(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Impact");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Impact::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Impact* pInstance = new CRanrok_Impact(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Impact");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Impact::OnCollision(CGameObject* pOther, void* pDesc)
{
if (m_bHit == false)
return;
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
}
void CRanrok_Impact::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Impact::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Impact::Bind_ShaderResources()
{
return S_OK;
}
@@ -97,7 +97,7 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pBottomDecal->Set_Visible(true);
pBottomSplatter->Set_Visible(true);
//pBottomSplatter->Set_Visible(true);
pBottomSplatter2->Set_Visible(true);
pRock_PT->Set_Visible(true);
pSmoke->Set_Visible(true);
@@ -5,6 +5,8 @@
#include "Player.h"
#include "Effect_Container.h"
#include "EffectPool.h"
#include "EffectParts.h"
#include "TrailObject.h"
#pragma region STATE
#include "State_Idle.h"
@@ -625,6 +627,7 @@ void CRanrok::Behavior_SwipeEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::SWIPE);
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
if (m_fCross > 0.f)
@@ -637,6 +640,9 @@ void CRanrok::Behavior_SwipeEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
Add_Event(pairAnimInfo.first,
[this]() {m_bMotionTrail = true; },
0.3f);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -658,6 +664,7 @@ HRESULT CRanrok::Behavior_SwipeExitCheck(_float fTimeDelta)
void CRanrok::Behavior_SwipeExit()
{
m_pFSM->Disable_State(FSMSTATE::SWIPE);
m_bMotionTrail = false;
}
// FireBurst 란록은 평상시에 맞지않는데 특정 구체를 파괴해서 란록한테 피해를 입히면 버스트상태가 해제되고 이제 마법에 맞는다. 그리고 특정시간이 지나면 이 파이어버스트 상태가 되면서 다시 맞지않는다.
void CRanrok::Behavior_SkillEnter()
@@ -784,6 +791,11 @@ void CRanrok::Behavior_PulseEnter()
Add_Event(pairAnimInfo.first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_CHARGE, this);
m_pLeftSmoke->Set_Visible(false);
m_pRightSmoke->Set_Visible(false);
m_pBottomSmoke->Set_Visible(false);
}, 0.f);
}
@@ -802,6 +814,10 @@ HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
else {
m_pFSM->Change_State(FSMSTATE::LAND);
}
m_pLeftSmoke->Set_Visible(true);
m_pRightSmoke->Set_Visible(true);
m_pBottomSmoke->Set_Visible(true);
return E_FAIL;
}
return S_OK;
@@ -824,6 +840,10 @@ void CRanrok::Behavior_TuckedEnter()
Add_Event(pairAnimInfo.first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_POINT, this, nullptr, &m_pRanrok_Point);
m_pLeftEye_Trail->Set_Visible(false);
m_pRightEye_Trail->Set_Visible(false);
}, 0.05f);
}
@@ -832,7 +852,7 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_fDisolveTime >= 0.1f) {
if (m_fDisolveTime >= 0.25f) {
MoveTo(fTimeDelta);
}
@@ -861,8 +881,14 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
void CRanrok::Behavior_TuckedExit()
{
/* 이펙트를 서서히 사라지게 하기위해 도착 이후에 나오는 이펙트를 아래로 떨굼 */
m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
SAFE_RELEASE(m_pRanrok_Point);
if (m_bTucked == true)
{
m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
SAFE_RELEASE(m_pRanrok_Point);
}
m_pLeftEye_Trail->Set_Visible(true);
m_pRightEye_Trail->Set_Visible(true);
m_pFSM->Disable_State(FSMSTATE::TUCKED);
m_bTucked = false;
@@ -908,6 +934,7 @@ void CRanrok::Behavior_HitEnter()
m_pFSM->Enable_State(FSMSTATE::HIT);
m_bLookAt = false;
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; // 스몰
@@ -39,6 +39,7 @@ HRESULT CTerrain::Initialize(void* pArg)
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
Desc.pMeshName = pDesc->strRigidBody_MeshName.c_str();
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
/* Com_RigidBody */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strRigidBody_ComponentTag,
reinterpret_cast<CComponent**>(&m_pRigidBody), &Desc))) {
@@ -354,9 +354,6 @@ HRESULT CTrailObject::Render()
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_TrailInfo.eShaderPass))))
return E_FAIL;
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
return E_FAIL;
if (FAILED(m_pTrailCom->Render()))
return E_FAIL;
@@ -477,6 +474,14 @@ HRESULT CTrailObject::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
@@ -11,6 +11,7 @@
#include "Dialogue_Font.h"
#include "SpellLearn_Canvas.h"
#include "Interaction_Key.h"
#include "NPCInteraction.h"
#include "Broom_TargetGate.h"
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -346,6 +347,11 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("Interaction_Key"), m_pInteraction_Key);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPCInteraction>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CNPCInteraction**>(&m_pNPCInteraction)))) {
return E_FAIL;
}
Add_Canvas(TEXT("NPCInteraction"), m_pNPCInteraction);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Canvas>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Canvas**>(&m_pSpellLearn_Canvas)))) {
return E_FAIL;
}
+5 -1
View File
@@ -39,6 +39,8 @@ class CBroom final : public CUnit
void Set_AISpeed(_float speedMul, _float accelMul);
void Set_Move(_bool bMove) { m_bMove = bMove; }
_bool Get_Move() { return m_bMove; }
void Add_TurboBoost(_float fAmount) { m_fTurboBoost += fAmount; }
_float Get_TurboBoost() { return m_fTurboBoost; }
HRESULT Ready_Child();
private:
@@ -64,6 +66,8 @@ class CBroom final : public CUnit
_float m_fDecel = 1.f;
_float m_fTurnDecel = 0.3f;
_float m_fVerticalSpeed = 0.f;
_float m_fTurboBoost = {5.f};
_float m_fTurboBoostChargeDelay = {};
_float m_fFlyAccel = 1.f;
_float m_fFlyDecel = 1.f;
@@ -96,7 +100,7 @@ class CBroom final : public CUnit
HRESULT Bind_ShaderResources();
void Update_CameraCoordinateSystem();
void PlayerInput();
void PlayerInput(_float fTimeDelta);
public:
static CBroom* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+5 -5
View File
@@ -10,8 +10,8 @@ namespace Client
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO,SPECTOR_WEAPON, GLASS_CUBE, LEVIOSO, DECAL, WIREFRAME, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WB ,DECAL_BLUR , BLEND_CULLING,END};
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, TRAIL_WB, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WB ,DECAL_BLUR , BLEND_CULLING, DECAL_BLEND, END};
enum class SHADER_PASS_UIEDITOR {
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
@@ -78,7 +78,7 @@ namespace Client
/*란록*/
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE,
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT,
END
};
@@ -90,8 +90,8 @@ namespace Client
enum class KEYINPUT
{
INPUT_1 = 1, INPUT_2, INPUT_3, INPUT_4,
INPUT_T, INPUT_G, INPUT_X, INPUT_Z, INPUT_ESPACE,
INPUT_TAB,
INPUT_T, INPUT_G, INPUT_X, INPUT_Z, INPUT_F,
INPUT_ESPACE, INPUT_TAB,
DIM_RBUTTON_UP, DIM_RBUTTON_DOWN,
END
};
@@ -65,6 +65,13 @@ namespace Client
class CMapElement_Chest* pChest = { nullptr };
}LOCKON_INFO;
typedef struct tegNPCInteractionInfo
{
CGameObject* pOwner = { nullptr };
_wstring pNPCName;
_float4 pNPCPosition{};
}NPCINTERACTIONINFO;
typedef struct tagUnitInfo
{
_wstring pUnit_Name;
@@ -258,7 +265,7 @@ namespace Client
_bool isBlurDissolve = {};
_bool isNomalMap = {};
_bool isNoDissolveSmoothStep = {};
_bool isPadding3 = {};
_bool isNonSoftEffect = {};
_float2 vDissolveSmoothRange = { 0.1f , 0.1f };
_float2 vPadding0 = {};
+1 -1
View File
@@ -75,7 +75,7 @@ class CGoblin final : public CMonster
virtual void Add_FSM();
_float m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = {};
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = { 5.f,2.f,15.f };
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = { 10.f,2.f,15.f };
_bool m_bStep = { true };
_float m_fTpTime = {};
@@ -28,6 +28,7 @@ class CGoblin_Assassin final : public CMonster
virtual HRESULT Render() override;
virtual HRESULT Render_OutLine();
virtual HRESULT Render_Shadow(SHADOW eType) override;
HRESULT Render_MotionTrail(ID3D11ShaderResourceView* pSRV);
virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
@@ -74,7 +75,7 @@ class CGoblin_Assassin final : public CMonster
virtual void Add_FSM();
_float m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::END)] = {};
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::END)] = { 8.f,15.f };
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::END)] = { 10.f,15.f };
_bool m_bStep = { true };
_float m_fTpTime = {};
@@ -95,7 +96,7 @@ class CGoblin_Assassin final : public CMonster
_float m_fMoveDecisionLimit = 1.2f;
_float4 m_vDashDir = {};
_float2 m_vCaptureTimer = { 0.f, 0.1f };
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
+11 -6
View File
@@ -16,11 +16,12 @@ class CInstancedProp final : public CGameObject
public:
typedef struct tagInstancedPropDesc
{
_bool isShake;
_float2 vRadius;
_float2 vSpeed;
_wstring strPrototypeTag;
_string strInstanceDataPath;
_bool isShake;
_bool bEnableRigidbody;
_float2 vRadius;
_float2 vSpeed;
_wstring strPrototypeTag;
_string strInstanceDataPath;
}INSTANCE_PROP_DESC;
private:
CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -37,7 +38,9 @@ class CInstancedProp final : public CGameObject
private:
_bool m_isShake = {};
_uint m_iNumMesh = {};
_uint m_iNumInstacne = {};
vector<CRigidBody_Static*> m_RigidBody = { nullptr };
CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
@@ -47,12 +50,14 @@ class CInstancedProp final : public CGameObject
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Bind_ShaderResources() override;
HRESULT Load_InstancedProp(const _char* pFilePath);
HRESULT ReadyForPhysX();
HRESULT Load_InstancedProp(const _char* pFilePath, INSTANCE_PROP_DESC* pDesc);
public:
static CInstancedProp* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
@@ -17,12 +17,14 @@ class CInstancedProp_Light final : public CGameObject
typedef struct tagInstancedPropLightDesc
{
_bool isShake;
_bool bEnableRigidbody;
_uint iGlassMeshIndex{};
_float2 vRadius;
_float2 vSpeed;
_wstring strPrototypeTag;
_string strInstanceDataPath;
_string strInstanceDataPath;
}INSTANCE_PROP_LIGHT_DESC;
private:
CInstancedProp_Light(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CInstancedProp_Light(const CInstancedProp_Light& rhs);
@@ -35,23 +37,25 @@ class CInstancedProp_Light final : public CGameObject
virtual HRESULT Render() override;
virtual HRESULT Render_Bloom() override;
private:
_bool m_bLightOn = { true };
_bool m_bEnableRigidbody = { };
_uint m_iNumMesh = {};
_uint m_iNumInstacne = {};
_uint m_iGlassMeshIndex = {};
_float m_fGlassRatio = { 0.5f };
_float m_fBloomStrength = { 15.f };
CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CTexture* m_pGlassTextureCom = { nullptr };
CTexture* m_pMaskTextureCom = { nullptr };
CTexture* m_pEmissiveTextureCom = { nullptr };
_uint m_iNumMesh = {};
_uint m_iGlassMeshIndex = {};
_float m_fGlassRatio = { 0.5f };
_float m_fBloomStrength = { 15.f };
vector<CRigidBody_Static*> m_RigidBody = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
@@ -59,12 +63,14 @@ class CInstancedProp_Light final : public CGameObject
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Bind_ShaderResources() override;
HRESULT ReadyForPhysX();
HRESULT Load_InstancedProp(const _char* pFilePath);
public:
static CInstancedProp_Light* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
+2
View File
@@ -6,6 +6,7 @@
NS_BEGIN(Engine)
class CGameInstance;
class CModel;
class CVIBuffer_Model_Instance;
NS_END
NS_BEGIN(Client)
@@ -43,6 +44,7 @@ class CLoader final : public CBase
future<vector<FOLDER_LOAD*>*> Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag);
future<pair<_wstring, CModel*>*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag);
void Ready_MapModels(vector<future<vector<FOLDER_LOAD*>*>>& jobMapModels);
HRESULT Ready_RigidBody_Static(CVIBuffer_Model_Instance* pModel_Instance);
public:
static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID);
@@ -17,7 +17,6 @@ class CNPCInteraction final : public CGameObject
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
private:
@@ -29,17 +28,21 @@ class CNPCInteraction final : public CGameObject
private:
_float4 ComputeUV(_tchar Alphabat);
void Set_ImageSizePosition();
void ActiveOff();
public:
void NpcInfo(_wstring Name);
void NpcInfo(void* pArg);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
class CUnit* m_pUnit = { nullptr };
_float4 m_vFontPosition{};
_float4 m_vFontPosition1{};
@@ -58,7 +61,9 @@ class CNPCInteraction final : public CGameObject
_float2 m_fViewPort{};
_float m_fFontSize{};
_bool m_bActive{};
NPCINTERACTIONINFO m_pInfo{};
public:
static CNPCInteraction* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -25,6 +25,8 @@ class CNPC_Ollivander final : public CUnit
virtual HRESULT Render() override;
virtual HRESULT Render_Shadow(SHADOW eType) override;
virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
virtual _wstring Get_Name() override;
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
+4
View File
@@ -50,10 +50,14 @@ class CPlayer final : public CUnit
class CMapElement_Interactable* m_pGrapInteractive = { nullptr };
_float m_fDirectionRadian = 0.f;
CGameObject* m_pCurrentNpcInteraction = { nullptr };
_bool m_bSprintToggle = { false };
_bool m_bWalkToggle = { false };
_bool m_bCameraShake = { false };
_bool m_bNpcInteraction = { false };
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
_float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
_float2 m_vGrapInteratableLerp = { 0.f, TIMER_SHORT_LERP };
+60
View File
@@ -0,0 +1,60 @@
#pragma once
#include "Client_Define.h"
#include "Unit.h"
#include "NPC_Ollivander.h"
NS_BEGIN(Client)
class CRandomNpc final : public CUnit
{
public:
typedef struct tagNpcInitDesc {
_float4 vPos;
_float4 vRotQ;
_int iIndex;
}NPCDESC;
protected:
CRandomNpc(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRandomNpc(const CRandomNpc& Prototype);
virtual ~CRandomNpc() = 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 OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
virtual _wstring Get_Name() override;
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
CUnit* m_pPlayerAllyUnit = { nullptr };
CRandomNpc* m_pNPC_Ollivander = { nullptr };
/*class CNPCInteraction* m_pNPCInteraction = { nullptr };*/
CNPCStat* m_pNpcStat = { nullptr };
_int m_iEntered = { 0 };
_float2 m_vEnteringTimer = { 0.f, 1.f };
_float m_fEncounterDistance = { 8.f };
_int m_iIndex = {};
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
public:
static CRandomNpc* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
+17 -1
View File
@@ -113,12 +113,28 @@ class CRanrok final : public CMonster
_float m_fHeadAimWeight = {};
_float m_fPrevHpRatio = {};
_int m_iBreathRand = {};
_bool m_bMotionTrail = {};
_float2 m_vCaptureTimer = { 0.f, 0.3f };
_float2 m_vCaptureTimer = { 0.f, 0.1f };
class CEffect_Container* m_pRanrok_Point = { nullptr };
_float m_fTuckedSpeed = { 90.f };
class CEffectParts* m_pLeftSmoke = { nullptr };
class CEffectParts* m_pRightSmoke = { nullptr };
class CEffectParts* m_pBottomSmoke = { nullptr };
class CEffectParts* m_pRightPt = { nullptr };
class CEffectParts* m_pLeftPt = { nullptr };
class CTrailObject* m_pRightEye_Trail = { nullptr };
class CTrailObject* m_pLeftEye_Trail = { nullptr };
const _float4x4* m_pLeftEye_BoneMat = { nullptr };
const _float4x4* m_pRightEye_BoneMat = { nullptr };
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
void Behavior_IdleExit();
@@ -0,0 +1,58 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CRanrok_Hit final : public CEffect_Container
{
private:
CRanrok_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Hit(const CRanrok_Hit& rhs);
virtual ~CRanrok_Hit() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
HRESULT Ready_Child();
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
_wstring m_wstrEffectName = {};
class CEffectParts* m_pGooRod_0 = { nullptr };
class CEffectParts* m_pSmoke = { nullptr };
class CEffectParts* m_pSpread_PT = { nullptr };
_float3 m_vLook = {};
_float m_fLinearSpeed = 0.8f;
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
public:
static CRanrok_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // DEBUG
};
NS_END
@@ -0,0 +1,58 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CRanrok_Impact final : public CEffect_Container
{
private:
CRanrok_Impact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Impact(const CRanrok_Impact& rhs);
virtual ~CRanrok_Impact() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
HRESULT Ready_Child();
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
_wstring m_wstrEffectName = {};
class CEffectParts* m_pGooRod_0 = { nullptr };
class CEffectParts* m_pSmoke = { nullptr };
class CEffectParts* m_pSpread_PT = { nullptr };
_float3 m_vLook = {};
_float m_fLinearSpeed = 0.8f;
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
public:
static CRanrok_Impact* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // DEBUG
};
NS_END
@@ -60,6 +60,7 @@ class CUI_Manager final : public CUIObject
CGameObject* m_pDamage_Font = { nullptr };
CGameObject* m_pDialogue_Font = { nullptr };
CGameObject* m_pInteraction_Key = { nullptr };
CGameObject* m_pNPCInteraction = { nullptr };
CGameObject* m_pBroom_TargetGate = { nullptr };
_bool m_bCanvas_Change = { false };
@@ -62,7 +62,7 @@
<!-- HIT -->
<Anim state="HIT_BWD" index="22" loop="false"/>
<!-- Air Small -->
<Anim state="HIT_BWD2" index="37" loop="false"/>
<Anim state="HIT_BWD2" index="13" loop="false"/>
<!-- Air Large -->
<Anim state="HIT_BWD3" index="35" loop="false"/>
<!-- Ground Large -->
@@ -1,4 +1,12 @@
<StatInfo>
<OLLIVENDER ID="0" Name="올리벤더" TAG="1" SizeX="256"/>
<SATYAVATI ID="1" Name="사티아바티" TAG="1" SizeX="256"/>
<MATILDAWEASELY ID="2" Name="마틸다 위즐리" TAG="1" SizeX="256"/>
<ELEAZARFIG ID="3" Name="엘리아자르 피그" TAG="1" SizeX="256"/>
<ELF ID="4" Name="도비" TAG="1" SizeX="256"/>
<PEEVES ID="5" Name="피브스" TAG="1" SizeX="256"/>
<PHINEASBLACK ID="6" Name="피니어스 블랙" TAG="1" SizeX="256"/>
<F_STUDENT ID="7" Name="여학생" TAG="1" SizeX="256"/>
<M_STUDENT ID="8" Name="남학생" TAG="1" SizeX="256"/>
</StatInfo>
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -0,0 +1,250 @@
<Material>
<MI_Professor_ChiyoKogawa_Updated ShaderIndex = "8" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Professor_Chiyo_Kogawa_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Professor_Chiyo_Kogawa_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="T_Professor_Chiyo_Kogawa_MRO" Extension=".dds"/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Professor_ChiyoKogawa_Updated>
<MI_HUM_N_Heads_Eyelash ShaderIndex = "5" OutLineWrite="5">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Hair_PROHair01_Asuka_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_HUM_F_Hair_PROHair01_Asuka_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_Eyelash>
<MI_HUM_N_Heads_EyeOcclusion ShaderIndex = "3" OutLineWrite="3">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Sclera_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_EyeOcclusion>
<MI_Adult_F_ChiyoKogawaHead ShaderIndex = "6" OutLineWrite="16">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Adult_F_Head_ChiyoKogawa_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Adult_F_Head_ChiyoKogawa_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Adult_F_Head_ChiyoKogawa_SRXO" Extension=".dds"/>
</MI_Adult_F_ChiyoKogawaHead>
<MI_HUM_N_Heads_Teeth ShaderIndex = "1" OutLineWrite="1">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_Head_Teeth_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HUM_Head_Teeth_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_HUM_F_Hair_PROHair01_Asuka_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
</MI_HUM_N_Heads_Teeth>
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_Eye>
<MI_Professor_ChiyoKogawaHair ShaderIndex = "5" OutLineWrite="5">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Hair_PROHair01_Asuka_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_HUM_F_Hair_PROHair01_Asuka_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Professor_ChiyoKogawaHair>
<MI_ClothSim ShaderIndex = "8" OutLineWrite="22">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Professor_Chiyo_Kogawa_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Professor_Chiyo_Kogawa_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="T_Professor_Chiyo_Kogawa_MRO" Extension=".dds"/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_ClothSim>
</Material>
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -0,0 +1,217 @@
<Material>
<MI_HouseElf_Body ShaderIndex = "7" OutLineWrite="7">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HouseElf_Body_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HouseElf_Body_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HouseElf_Body_SRXO" Extension=".dds"/>
</MI_HouseElf_Body>
<MI_NPC_HouseElf_M_Head1 ShaderIndex = "6" OutLineWrite="16">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HouseElf_M_Head1_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HouseElf_M_Head1_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HouseElf_M_Head1_SRO" Extension=".dds"/>
</MI_NPC_HouseElf_M_Head1>
<MM_Eyelash ShaderIndex = "5" OutLineWrite="5">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Hair_Fig_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_Old_M_Hair_Fig_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MM_Eyelash>
<MM_Teeth ShaderIndex = "1" OutLineWrite="1">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_Head_Teeth_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HUM_Head_Teeth_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
</MM_Teeth>
<MI_HouseElf_Eye ShaderIndex = "2" OutLineWrite="2">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HouseElf_Eye>
<MM_Eye_Occlusion ShaderIndex = "3" OutLineWrite="3">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Sclera_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MM_Eye_Occlusion>
<MI_HouseElf_M_Upp_Toga01 ShaderIndex = "8" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HouseElf_M_Upp_PillowCase03_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HouseElf_M_Upp_PillowCase03_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HouseElf_M_Upp_PillowCase03_MRO" Extension=".dds"/>
</MI_HouseElf_M_Upp_Toga01>
</Material>
Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Some files were not shown because too many files have changed in this diff Show More