Merge pull request #666 from SpicyGangjeong/Develope

[Follow]
This commit is contained in:
qordlsgur
2026-01-06 11:04:34 +09:00
committed by GitHub
284 changed files with 5296 additions and 980 deletions
+1
View File
@@ -35,6 +35,7 @@ x64/
Release/
Debug/
Inc/
enc_temp_folder/
Jusin154_Team3D/Client/Bin/Resources/
# Imgui 임시 파일
@@ -190,12 +190,15 @@ call Update_Resources.bat
<ClInclude Include="..\public\Dialogue_Font.h" />
<ClInclude Include="..\public\NPCInteraction.h" />
<ClInclude Include="..\public\PointLight.h" />
<ClInclude Include="..\Public\Ranrok_GroundPulse.h" />
<ClInclude Include="..\Public\Ranrok_Hit.h" />
<ClInclude Include="..\Public\Ranrok_Impact.h" />
<ClInclude Include="..\Public\Ranrok_Land.h" />
<ClInclude Include="..\Public\Ranrok_Point.h" />
<ClInclude Include="..\Public\PlayerRobe.h" />
<ClInclude Include="..\Public\Player_ENUM.h" />
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
<ClInclude Include="..\Public\ReparoObject.h" />
<ClInclude Include="..\Public\Ride_BoosterBar.h" />
<ClInclude Include="..\Public\Ride_Booster_Slot.h" />
@@ -456,6 +459,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\PlayerRobe_Initialize.cpp" />
<ClCompile Include="..\Private\RandomNpc.cpp" />
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
@@ -466,11 +470,14 @@ call Update_Resources.bat
<ClCompile Include="..\private\Dialogue_Font.cpp" />
<ClCompile Include="..\private\NPCInteraction.cpp" />
<ClCompile Include="..\private\PointLight.cpp" />
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp" />
<ClCompile Include="..\Private\Ranrok_Hit.cpp" />
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
<ClCompile Include="..\Private\Ranrok_Land.cpp" />
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
<ClCompile Include="..\Private\PlayerRobe.cpp" />
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
<ClCompile Include="..\Private\ReparoObject.cpp" />
<ClCompile Include="..\Private\Ride_BoosterBar.cpp" />
<ClCompile Include="..\Private\Ride_Booster_Slot.cpp" />
@@ -845,6 +845,15 @@
<ClInclude Include="..\Public\RandomNpc.h">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Land.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1749,6 +1758,15 @@
<Filter Include="02.GameObjects\NPC\Ally\RandomNpc">
<UniqueIdentifier>{88b62177-01fc-424d-a444-4fb5fd4b2db5}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land">
<UniqueIdentifier>{9cf44fef-f3be-409e-b530-6aef90db5c0c}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse">
<UniqueIdentifier>{c756e70b-1ba2-4a25-a177-b50bbc1a332a}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush">
<UniqueIdentifier>{eb8e52f5-0283-4acf-8fbb-0e734b7580e9}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot">
<UniqueIdentifier>{9c357e12-18b3-461e-b74c-76f85280796f}</UniqueIdentifier>
</Filter>
@@ -2547,6 +2565,18 @@
<ClCompile Include="..\Private\RandomNpc.cpp">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClCompile>
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp">
<Filter>02.GameObjects\Player\Robe</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Land.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
+23 -1
View File
@@ -29,6 +29,10 @@ HRESULT CBroom::Initialize(void* pArg)
return E_FAIL;
}
if (pArg) {
m_iIndex = *static_cast<_int*>(pArg);
}
if (FAILED(Ready_Components())) {
return E_FAIL;
@@ -224,8 +228,26 @@ HRESULT CBroom::Ready_Components()
__super::Ready_Components(&Desc);
switch (m_iIndex)
{
case 0:
m_strModelPrototypeTag = TEXT("Prototype_Component_Broom_Model");
break;
case 1:
m_strModelPrototypeTag = TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model");
break;
case 2:
m_strModelPrototypeTag = TEXT("Prototype_Component_DarkWizardBroom_Model");
break;
case 3:
m_strModelPrototypeTag = TEXT("Prototype_Component_WildFireBroom_Model");
break;
default:
break;
}
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Broom_Model"),
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
return E_FAIL;
}
@@ -166,10 +166,12 @@ void CBroomRaceManager::Describe_Entity()
{
MSG_BOX("Failed Load RaceRing");
}
for (_uint i = 0; i < 3; i++)
CBroomRacerAI::RacerDesc Desc = {};
for (_uint i = 1; i < 4; i++)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, this)))
Desc.pRacerManager = this;
Desc.iIndex = i;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc)))
return;
}
m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Set_RaceInfo();
+19 -30
View File
@@ -44,6 +44,8 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
m_bAI = true;
m_iIndex = static_cast<RacerDesc*>(pArg)->iIndex;
if (FAILED(Ready_Parts())) {
return E_FAIL;
}
@@ -88,7 +90,7 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
m_pBroom->Set_Ride(true);
m_pBroomRaceManager = static_cast<CBroomRaceManager*>(pArg);
m_pBroomRaceManager = static_cast<RacerDesc*>(pArg)->pRacerManager;
CBroomRaceManager::RacerInfo Info;
@@ -311,7 +313,7 @@ HRESULT CBroomRacerAI::Ready_Components()
HRESULT CBroomRacerAI::Ready_Parts()
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroom>(g_iStaticLevel, NEXT_LEVEL, LAYER_ITEM, nullptr, this, &m_pBroom))) {
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroom>(g_iStaticLevel, NEXT_LEVEL, LAYER_ITEM, &m_iIndex, this, &m_pBroom))) {
return E_FAIL;
}
@@ -350,35 +352,22 @@ HRESULT CBroomRacerAI::Bind_ShaderParameters(_uint iMeshOrder)
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
switch (MESH_ORDER(iMeshOrder))
switch (m_pModelCom->Get_UsingPass(iMeshOrder, m_pShaderCom))
{
case MESH_ORDER::HAIR_MAIN:
case MESH_ORDER::HEAD_EYELASH:
case MESH_ORDER::HAIR_SUB:
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
break;
case MESH_ORDER::LOWER:
bUseColorMixer = true;
iColorParam = 0x292557;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
case MESH_ORDER::SHOES:
bUseColorMixer = true;
iColorParam = 0x614242;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
case MESH_ORDER::UPPER:
bUseColorMixer = true;
iColorParam = 0xBFAC29;
fMixerFactor = 0.658333f;
iColorMixerMethod = 1;
break;
default:
case 23:
if (m_strModelPrototypeTag == TEXT("Prototype_Component_F_Student_Model"))
{
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.00f;
iColorMixerMethod = 1;
}
else {
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
}
break;
}
if (true == bUseColorMixer) {
+16 -14
View File
@@ -360,6 +360,7 @@ void CBroom::Behavior_Broom_FlyEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::FLY);
m_pModelCom->Set_BlendDuration(0.8f);
m_bHoverToggle = false;
pairAnimInfo = pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
@@ -443,23 +444,23 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
if (vInput.x < 0.f)
{
if (vInput.z <= 0.f)
/*if (vInput.z <= 0.f)
{
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
}
else {
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f);
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
}
else {*/
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.2f);
//}
}
else if (vInput.x > 0.f)
{
if (vInput.z <= 0.f)
/*if (vInput.z <= 0.f)
{
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
}
else {
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f);
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
}
else {*/
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.2f);
//}
}
@@ -469,7 +470,6 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
else
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
else if (ax >= az)
{
@@ -489,7 +489,6 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
else
{
@@ -500,12 +499,12 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
else {
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,0.1f);
}
else {
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
}
@@ -552,12 +551,14 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
void CBroom::Behavior_Broom_FlyExit()
{
m_pFSM->Disable_State(FSMSTATE::FLY);
m_pModelCom->Set_BlendDuration(0.3f);
}
void CBroom::Behavior_Broom_TurboFlyEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::TURBOFLY);
m_pModelCom->Set_BlendDuration(0.8f);
m_bTurbo = true;
m_bHoverToggle = false;
pairAnimInfo = pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
@@ -747,6 +748,7 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
void CBroom::Behavior_Broom_TurboFlyExit()
{
m_pFSM->Disable_State(FSMSTATE::TURBOFLY);
m_pModelCom->Set_BlendDuration(0.3f);
}
@@ -91,6 +91,7 @@ HRESULT CCamera_Model::Render()
}
}
else if (RENDER::NONLIGHT == eType) {
#ifdef _DEBUG
m_Batch->Begin();
_vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
@@ -102,16 +103,16 @@ HRESULT CCamera_Model::Render()
static _float fLength = 1.f;
GUI::DragFloat("Length", &fLength, 0.1f, 0.1f, 10.f, "%.1f");
m_Batch->DrawLine(
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
VertexPositionColor(vPosition + vRight * fLength, DirectX::Colors::Green)
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
VertexPositionColor(vPosition + vRight * fLength, DirectX::Colors::Green)
);
m_Batch->DrawLine(
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
VertexPositionColor(vPosition + vUp * fLength, DirectX::Colors::Red)
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
VertexPositionColor(vPosition + vUp * fLength, DirectX::Colors::Red)
);
m_Batch->DrawLine(
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
VertexPositionColor(vPosition + vLook * fLength, DirectX::Colors::Blue)
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
VertexPositionColor(vPosition + vLook * fLength, DirectX::Colors::Blue)
);
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0000, 1.f);
_matrix WorldMatrix;
@@ -132,6 +133,9 @@ HRESULT CCamera_Model::Render()
m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true);
m_Batch->End();
#endif // _DEBUG
}
return S_OK;
+32 -2
View File
@@ -49,7 +49,9 @@
#include "Ranrok_Charge.h"
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "Ranrok_Land.h"
#include "Ranrok_GroundPulse.h"
#include "Ranrok_Rush_Bottom.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -637,7 +639,35 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_LAND, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Land* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Land>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_GroundPulse* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_GroundPulse>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_RUSH_BOTTOM, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Rush_Bottom* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Rush_Bottom>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
return S_OK;
}
@@ -342,25 +342,35 @@ HRESULT CGoblin_Assassin::Render_Shadow(SHADOW eType)
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()))) {
ID3D11RasterizerState* pPrevRS = nullptr;
m_pContext->RSGetState(&pPrevRS);
_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))) {
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom)))
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom)))
return E_FAIL;
}
m_pContext->RSSetState(m_pRS_Wireframe);
m_pContext->VSSetShaderResources(26, 1, &pSRV);
if (FAILED(m_pModelCom->Render(i))) {
if (FAILED(m_pModelCom->Render(i)))
return E_FAIL;
}
}
m_pContext->RSSetState(pPrevRS);
if (pPrevRS) SAFE_RELEASE(pPrevRS);
return S_OK;
}
@@ -540,6 +550,17 @@ HRESULT CGoblin_Assassin::Ready_Components()
}
}
D3D11_RASTERIZER_DESC rsDesc{};
rsDesc.FillMode = D3D11_FILL_WIREFRAME;
rsDesc.CullMode = D3D11_CULL_NONE;
rsDesc.DepthClipEnable = TRUE;
HRESULT hr = m_pDevice->CreateRasterizerState(&rsDesc, &m_pRS_Wireframe);
if (FAILED(hr))
return E_FAIL;
return S_OK;
}
@@ -693,8 +714,10 @@ void CGoblin_Assassin::Free()
SAFE_RELEASE(m_pGoblin_Particle);
SAFE_RELEASE(m_pGoblin_Particle2);
SAFE_RELEASE(m_pEffectPool);
SAFE_RELEASE(m_pRS_Wireframe);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
}
#ifdef _DEBUG
@@ -315,6 +315,11 @@ HRESULT CGoblin_Assassin_Spector::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
_float Intensity = 0.f;
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) {
return E_FAIL;
}
return S_OK;
}
@@ -296,6 +296,10 @@ HRESULT CGoblin_Spector::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
_float Intensity = 0.f;
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) {
return E_FAIL;
}
return S_OK;
}
@@ -340,7 +340,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
#endif //
#ifdef 기무리
isReady_Background = true;
isReady_Hogsmeade = true;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 나
@@ -726,8 +726,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
isLoad_RandomNPC = true;
#endif //
#ifdef 기무리
isLoad_NPC = true;
isLoad_RandomNPC = true;
isLoad_NPC = false;
isLoad_RandomNPC = false;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
@@ -760,13 +760,13 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
if (true == isLoad_NPC)
{
for (_uint i = 0; i < 7; i++)
for (_uint i = 0; i < 12; 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.vPos = _float4(X, 1.f, 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))) {
+49 -1
View File
@@ -215,6 +215,9 @@
#include "Ranrok_Pulse.h"
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "Ranrok_Land.h"
#include "Ranrok_GroundPulse.h"
#include "Ranrok_Rush_Bottom.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -406,7 +409,7 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Background = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = true;
isLoad_NPC = false;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -2069,6 +2072,30 @@ HRESULT CLoader::Loading_For_GamePlay()
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;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Kitchen_Female_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_BaiHowin_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GeorgeOsric_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DinahHecat_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MudiwaOnai_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
}
if (true == isLoad_Monster) {
@@ -2149,6 +2176,18 @@ HRESULT CLoader::Loading_For_GamePlay()
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DarkWizardBroom_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_WildFireBroom_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
return E_FAIL;
@@ -2365,6 +2404,15 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Land>(g_iStaticLevel, CRanrok_Land::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_GroundPulse>(g_iStaticLevel, CRanrok_GroundPulse::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Rush_Bottom>(g_iStaticLevel, CRanrok_Rush_Bottom::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)))) {
@@ -80,6 +80,9 @@ HRESULT CNPC_Ollivander::Render()
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
@@ -185,6 +188,41 @@ HRESULT CNPC_Ollivander::Bind_ShaderResources()
return S_OK;
}
HRESULT CNPC_Ollivander::Bind_ShaderParameters(_uint iMeshOrder)
{
_bool bUseColorMixer = false;
_uint iColorParam = { UINT_MAX };
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
switch (m_pModelCom->Get_UsingPass(iMeshOrder, m_pShaderCom))
{
case 23:
{
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
}
break;
}
if (true == bUseColorMixer) {
if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CNPC_Ollivander::Initialize_Prototype()
{
return S_OK;
+54 -67
View File
@@ -166,7 +166,6 @@ void CPlayer::Update(_float fTimeDelta)
}
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
}
void CPlayer::Late_Update(_float fTimeDelta)
@@ -198,18 +197,6 @@ void CPlayer::Late_Update(_float fTimeDelta)
{
m_pTransformCom->LookAt_Horizontal_Lerp(m_LockOnInfo.pUnit->Get_WorldPostion(), fTimeDelta, 5.f);
}
////////////////////////////////////////////////////////////////////////////
_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
_vector up = XMVector3Normalize(XMVector3Cross(look, right));
m_pTransformCom->Set_State(STATE::RIGHT, right);
m_pTransformCom->Set_State(STATE::UP, up);
m_pTransformCom->Set_State(STATE::LOOK, look);
////////////////////////////////////////////////////////////////////////////
}
@@ -613,15 +600,15 @@ HRESULT CPlayer::Ready_Parts()
//XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("broomSocket"));
#ifdef 기무리
{
CPlayerRobe::PlayerRobe_DESC Desc{};
Desc.pModel = m_pModelCom;
Desc.pParentTransform = m_pTransformCom;
Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth");
if (FAILED(Add_PartObject<CPlayerRobe>("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) {
assert(false);
}
}
//{
// CPlayerRobe::PlayerRobe_DESC Desc{};
// Desc.pModel = m_pModelCom;
// Desc.pParentTransform = m_pTransformCom;
// Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth");
// if (FAILED(Add_PartObject<CPlayerRobe>("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) {
// assert(false);
// }
//}
#endif // 기무리
@@ -691,51 +678,51 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
fMixerFactor = 0.658333f;
iColorMixerMethod = 1;
break;
#ifdef 기무리
case PLAYER_MESH_ORDER::ROBE_CLOTH:
{
CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
_uint MeshBoneCount = pMesh->Get_NumBone();
for (_uint i = 0; i < MeshBoneCount; ++i)
{
XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
}
_uint temp = 0;
vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
vector<_int> boneIndices = pMesh->Get_BoneIndices();
for (_uint i = 0; i < MeshBoneCount; ++i)
{
_uint global = boneIndices[i];
if (global == 38)
continue;
if (globalMask[global] == 1)
{
SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
}
}
GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrices(
"g_BoneMatrices",
SkinMatrices.data(),
(_int)SkinMatrices.size()
)))
{
return E_FAIL;
}
}
break;
#endif // _DEBUG
//#ifdef 기무리
//
// case PLAYER_MESH_ORDER::ROBE_CLOTH:
// {
// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
// _uint MeshBoneCount = pMesh->Get_NumBone();
//
// for (_uint i = 0; i < MeshBoneCount; ++i)
// {
// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
// }
//
// _uint temp = 0;
// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
// vector<_int> boneIndices = pMesh->Get_BoneIndices();
//
// for (_uint i = 0; i < MeshBoneCount; ++i)
// {
// _uint global = boneIndices[i];
// if (global == 38)
// continue;
// if (globalMask[global] == 1)
// {
// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
// }
// }
//
// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
//
// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
// return E_FAIL;
// }
//
//
// if (FAILED(m_pShaderCom->Bind_Matrices(
// "g_BoneMatrices",
// SkinMatrices.data(),
// (_int)SkinMatrices.size()
// )))
// {
// return E_FAIL;
// }
// }
// break;
//#endif // _DEBUG
default:
break;
+177 -464
View File
@@ -2,31 +2,21 @@
#include "PlayerRobe.h"
#include "GameInstance.h"
CPlayerRobe::CPlayerRobe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CPartObject(pDevice, pContext)
{
}
CPlayerRobe::CPlayerRobe(const CPlayerRobe& Prototype)
: CPartObject(Prototype)
{
}
void CPlayerRobe::Priority_Update(_float fTimeDelta)
{
#ifdef _DEBUG
#ifdef 기무리
//Update_RobeJoints();
#endif // 기무리
Describe_Entity();
Update_RobeJoints();
#endif // 기무리
#endif // _DEBUG
}
void CPlayerRobe::Update(_float fTimeDelta)
{
_matrix SocketMatrixFixed = (XMMatrixRotationZ(XM_PI) * XMLoadFloat4x4(m_pSocketMatrix)) *
XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr());
_matrix SocketMatrixFixed = (XMMatrixRotationZ(XM_PI) * XMLoadFloat4x4(m_pSocketMatrix))
* XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr());
m_pRobeMainAnchor->Move_Kinematic(SocketMatrixFixed, false);
//m_pRobeMainAnchor->Get_Actor()->wakeUp();
@@ -44,7 +34,12 @@ HRESULT CPlayerRobe::Render()
{
#ifdef _DEBUG
#ifdef 기무리
//Render_BonePhysX();
if (m_pGameInstance->Key_Up(DIK_8)) {
m_bRenderDebug = !m_bRenderDebug;
}
if (m_bRenderDebug) {
Render_BonePhysX();
}
#endif // 기무리
#endif // _DEBUG
return S_OK;
@@ -56,12 +51,6 @@ HRESULT CPlayerRobe::Update_RobeSocketPosition()
PSX::PxTransform pxTransform = {};
_matrix WorldMatrix = {};
_matrix OwnerInvWorldMatrix = m_pParentTransformCom->Get_WorldMatrixInv();
//{
// pxTransform = m_pRobeMainAnchor->Get_GlobalPosition();
// WorldMatrix = XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f));
// _fmatrix LocalMatrix = WorldMatrix * OwnerInvWorldMatrix;
// m_pModelCom->Set_BoneCombinedTransformation("Hips_Cloth", LocalMatrix);
//}
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
pxTransform = m_pRobeJointAnchor[i]->Get_GlobalPosition();
WorldMatrix = XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f));
@@ -73,29 +62,6 @@ HRESULT CPlayerRobe::Update_RobeSocketPosition()
return S_OK;
}
HRESULT CPlayerRobe::Helper_RouteJointGenerater(CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld)
{
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(xmAnchorMatricesWorld[Desc_Route.iStartBoneIndex].r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iStartBoneIndex]->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
return S_OK;
}
HRESULT CPlayerRobe::Update_LegsPosition()
{
_matrix WorldMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
@@ -137,60 +103,73 @@ HRESULT CPlayerRobe::Update_LegsPosition()
}
#endif // _DEBUG
}
m_pLower0Bound->Move_Kinematic(m_pParentTransformCom->Get_XMWorldMatrix(), false);
m_pLower1Bound->Move_Kinematic(m_pParentTransformCom->Get_XMWorldMatrix(), false);
{
_vector vLegPos = XMVector4Transform(XMLoadFloat4((_float4*)&m_pLeftLegLocalMatrix->m[3][0]), WorldMatrix);
_vector vLegUp = XMVector4Transform(XMLoadFloat4((_float4*)&m_pLeftLegUpLocalMatrix->m[3][0]), WorldMatrix);
m_pLeftThigh->Set_CenterTransform(vLegPos, vLegUp, false);
#ifdef _DEBUG
{
_vector vCenterWorldPos = (vLegPos + vLegUp ) * 0.5f;
_vector vRotQ = XMQuaternionIdentity();
_vector vDir = XMVectorSetW(vLegUp - vLegPos, 0.f);
_float vLength = XMVectorGetX(XMVector3Length(vDir));
if (vLength > FLT_EPSILON5) {
vDir = XMVector3Normalize(vDir);
vRotQ = CMyTools::MakeQuaternionFromTo(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir);
}
XMStoreFloat4x4(&m_LeftThighMatrix, XMMatrixRotationQuaternion(vRotQ) * XMMatrixTranslationFromVector(vCenterWorldPos));
}
#endif // _DEBUG
vLegPos = XMVector4Transform(XMLoadFloat4((_float4*)&m_pRightLegLocalMatrix->m[3][0]), WorldMatrix);
vLegUp = XMVector4Transform(XMLoadFloat4((_float4*)&m_pRightLegUpLocalMatrix->m[3][0]), WorldMatrix);
m_pRightThigh->Set_CenterTransform(vLegPos, vLegUp, false);
#ifdef _DEBUG
{
_vector vCenterWorldPos = (vLegPos + vLegUp) * 0.5f;
_vector vRotQ = XMQuaternionIdentity();
_vector vDir = XMVectorSetW(vLegUp - vLegPos, 0.f);
_float vLength = XMVectorGetX(XMVector3Length(vDir));
if (vLength > FLT_EPSILON5) {
vDir = XMVector3Normalize(vDir);
vRotQ = CMyTools::MakeQuaternionFromTo(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir);
}
XMStoreFloat4x4(&m_RightThighMatrix, XMMatrixRotationQuaternion(vRotQ) * XMMatrixTranslationFromVector(vCenterWorldPos));
}
#endif // _DEBUG
}
m_pLower0Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.2f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower0BoundMatrix) * WorldMatrix, false);
m_pLower1Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.7f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower1BoundMatrix) * WorldMatrix, false);
return S_OK;
}
#ifdef _DEBUG
HRESULT CPlayerRobe::Render_Legs()
HRESULT CPlayerRobe::Render_Legs(_fmatrix LowerMatrix)
{
_float fHeight = 0.25f;
_matrix WorldMatrix = XMLoadFloat4x4(&m_LeftLegMatrix);
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0000, 1.f);
m_pMainShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
m_pMainShape->Draw(LowerMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
[this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
_matrix WorldUp = XMMatrixTranslationFromVector(WorldMatrix.r[1] * fHeight);
_matrix WorldDown = XMMatrixTranslationFromVector(WorldMatrix.r[1] * -fHeight);
m_pSubShape->Draw(WorldUp * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
_matrix WorldUp = XMMatrixTranslationFromVector(LowerMatrix.r[1] * fHeight);
_matrix WorldDown = XMMatrixTranslationFromVector(LowerMatrix.r[1] * -fHeight);
m_pSubShape->Draw(WorldUp * LowerMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
[this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
m_pSubShape->Draw(WorldDown * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
m_pSubShape->Draw(WorldDown * LowerMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
[this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
WorldMatrix = XMLoadFloat4x4(&m_RightLegMatrix);
m_pMainShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
[this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
WorldUp = XMMatrixTranslationFromVector(WorldMatrix.r[1] * fHeight);
WorldDown = XMMatrixTranslationFromVector(WorldMatrix.r[1] * -fHeight);
m_pSubShape->Draw(WorldUp * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
[this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
m_pSubShape->Draw(WorldDown * WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
[this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
m_pLower0Bound->Render([this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
m_pLower1Bound->Render([this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
return S_OK;
}
HRESULT CPlayerRobe::Render_BonePhysX()
@@ -220,7 +199,10 @@ HRESULT CPlayerRobe::Render_BonePhysX()
m_pRobeMainAnchor->Render([this]() {
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
});
Render_Legs();
Render_Legs(XMLoadFloat4x4(&m_LeftLegMatrix));
Render_Legs(XMLoadFloat4x4(&m_RightLegMatrix));
Render_Legs(XMLoadFloat4x4(&m_LeftThighMatrix));
Render_Legs(XMLoadFloat4x4(&m_RightThighMatrix));
_vector vRouteColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f);
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
m_pRobeJointAnchor[i]->Render([this]() {
@@ -231,403 +213,134 @@ HRESULT CPlayerRobe::Render_BonePhysX()
if (pPrevDSS != nullptr) {
pPrevDSS->Release();
}
m_pLower0Bound->Render();
m_pLower1Bound->Render();
return S_OK;
}
#endif // _DEBUG
HRESULT CPlayerRobe::Ready_Components()
HRESULT CPlayerRobe::Update_RobeJoints()
{
__super::Ready_Components(nullptr);
_matrix socketWorld = /*XMMatrixRotationZ(XM_PIDIV2) * */XMLoadFloat4x4(m_pSocketMatrix) * m_pParentTransformCom->Get_XMWorldMatrix();
_matrix xmAnchorMatricesWorld[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { };
for (_uint iBoneIndex = 0; iBoneIndex < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++iBoneIndex) {
xmAnchorMatricesWorld[iBoneIndex] = XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iBoneIndex]) * socketWorld;
}
{ //
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pLeftLeg, &Desc))) {
return E_FAIL;
}
}
{ //
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pRightLeg, &Desc))) {
return E_FAIL;
}
}
{ //
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower0Bound, &Desc))) {
return E_FAIL;
}
}
{ //
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower1Bound, &Desc))) {
return E_FAIL;
}
}
{ // RobeSocket
{ // Fixed_MainAnchor
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeMainAnchor, &Desc))) {
return E_FAIL;
}
m_pRobeMainAnchor->Set_Kinematic(true);
m_pRobeMainAnchor->Set_Transform(socketWorld, true);
#ifdef _DEBUG
m_pRobeMainAnchor->Set_Name("MainAnchor");
#endif // _DEBUG
}
// SubAnchors
for (_int i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeJointAnchor[i], &Desc))) {
return E_FAIL;
}
m_pRobeJointAnchor[i]->Set_Transform(xmAnchorMatricesWorld[i], true);
#ifdef _DEBUG
m_pRobeJointAnchor[i]->Set_Name(PLAYER_JOINT_BONE_NAMES[i]);
#endif // _DEBUG
}
}
{ // RobeRoute
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc_Body = {};
ROUTE_DESC Desc_Route = {};
Desc_Body.bAutoOwnerTranslation = false;
Desc_Body.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ROUTE);
/*Origin_Linked_Routes*/
{
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::ORIGIN_TO_RUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
#ifdef _DEBUG
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_Name("Origin_Linked_Routes");
#endif // _DEBUG
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::ORIGIN_TO_TUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
#ifdef _DEBUG
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_Name("Origin_Linked_Routes");
#endif // _DEBUG
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::ORIGIN_TO_LUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
#ifdef _DEBUG
m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Set_Name("Origin_Linked_Routes");
#endif // _DEBUG
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
}
/*UP_TO_MIDDLE*/
{
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::RUP_TO_RMIDDLE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::TUP_TO_TMIDDLE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::LUP_TO_LMIDDLE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
}
/*MIDDLE_TO_DOWN*/
{
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::RMIDDLE_TO_RR);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWNRIGHT);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::RMIDDLE_TO_R);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RMIDDLE_TO_R_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::TMIDDLE_TO_TR);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::TMIDDLE_TO_TL);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::LMIDDLE_TO_L);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_L_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::LMIDDLE_TO_LL);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWNLEFT);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
}
}
return S_OK;
}
HRESULT CPlayerRobe::Initialize_Prototype()
{
return S_OK;
}
HRESULT CPlayerRobe::Initialize(void* pArg)
{
PlayerRobe_DESC* pDesc = static_cast<PlayerRobe_DESC*> (pArg);
m_pSocketMatrix = pDesc->pSocketMatrix;
m_pModelCom = pDesc->pModel;
m_ReconstructedJointAnchorMatirces.resize(ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END));
m_iBoneNum = m_pModelCom->Get_MeshInfluencedBoneNum(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
m_PrevRobeBoneMatrices.resize(m_iBoneNum);
if (FAILED(m_pModelCom->Capture_BoneMatrices(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH), m_PrevRobeBoneMatrices))) {
return E_FAIL;
}
m_pLeftFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftFoot");
m_pLeftLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftLeg");
m_pRightFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightFoot");
m_pRightLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightLeg");
XMStoreFloat4x4(&m_PreTransformMatrix, XMLoadFloat4x4(m_pModelCom->Get_PreTransformMatrixPtr()));
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
m_RobeJointAnchorMatrices[i] = m_pModelCom->Get_BoneLocalMatrixPtr(PLAYER_JOINT_BONE_NAMES[i]);
}
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i)
{
_uint iParentIndex = UINT_MAX;
_bool bCopyPreTransform = false;
switch ((PLAYER_JOINT_BONE_ORDER)i)
{
case PLAYER_JOINT_BONE_ORDER::RIGHTUP:
case PLAYER_JOINT_BONE_ORDER::TAILUP:
case PLAYER_JOINT_BONE_ORDER::LEFTUP:
bCopyPreTransform = true;
break;
case PLAYER_JOINT_BONE_ORDER::RIGHT:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP);
break;
case PLAYER_JOINT_BONE_ORDER::TAIL:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP);
break;
case PLAYER_JOINT_BONE_ORDER::LEFT:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP);
break;
case PLAYER_JOINT_BONE_ORDER::RIGHTDOWNRIGHT:
case PLAYER_JOINT_BONE_ORDER::RIGHTDOWN:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
break;
case PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN:
case PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
break;
case PLAYER_JOINT_BONE_ORDER::LEFTDOWN:
case PLAYER_JOINT_BONE_ORDER::LEFTDOWNLEFT:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
break;
default:
assert(false);
break;
}
if (true == bCopyPreTransform)
{
_matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i]) * XMLoadFloat4x4(&m_PreTransformMatrix);
XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix);
continue;
}
_matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i])
* XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iParentIndex]);
XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix);
}
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components())) {
return E_FAIL;
}
D6JOINTDESC JointDesc = D6JOINTDESC();
for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
JointDesc.ApplyToJoint(*m_pDynamicJoints[i]);
m_JointDescriptions[i] = JointDesc;
}
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:
case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_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 = 0.f;
m_JointDescriptions[i].fSwingDeg = 40.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:
case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_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].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 40.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:
case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START:
case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_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;
#ifdef _DEBUG
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.05f, 22, false, false));
m_pMainShape = (GeometricPrimitive::CreateCylinder(m_pContext, 0.3f, 0.075f, 22, false));
D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {};
depthStencilDesc.DepthEnable = FALSE;
depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO;
depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS;
depthStencilDesc.StencilEnable = FALSE;
case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END:
case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END:
case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END:
case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_END:
case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_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;
HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone);
if (FAILED(result)){
return E_FAIL;
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::RSIDE_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::RSIDE_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::LSIDE_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::LSIDE_TO_L_END:
case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END:
break;
}
default:
break;
}
//m_JointDescriptions[i].iMotionTwist = 0;
//m_JointDescriptions[i].iMotionSwing1 = 0;
//m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].ApplyToJoint(*m_pDynamicJoints[i]);
}
#endif // _DEBUG
return S_OK;
}
CPlayerRobe* CPlayerRobe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CPlayerRobe* pInstance = new CPlayerRobe(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CPlayerRobe");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CPlayerRobe::Clone(void* pArg, CGameObject* pOwner)
{
CPlayerRobe* pInstance = new CPlayerRobe(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CPlayerRobe");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CPlayerRobe::Free()
{
__super::Free();
#ifdef _DEBUG
SAFE_RELEASE(m_pDepthStencilStateNone);
#endif // _DEBUG
SAFE_RELEASE(m_pRightLeg);
SAFE_RELEASE(m_pLower0Bound);
SAFE_RELEASE(m_pLower1Bound);
SAFE_RELEASE(m_pLeftLeg);
SAFE_RELEASE(m_pRobeMainAnchor);
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::END); ++i) {
SAFE_RELEASE(m_pRobeJointRoute[i]);
}
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
SAFE_RELEASE(m_pRobeJointAnchor[i]);
}
}
#ifdef _DEBUG
void CPlayerRobe::Describe_Entity()
@@ -0,0 +1,548 @@
#include "pch.h"
#include "PlayerRobe.h"
#include "GameInstance.h"
CPlayerRobe::CPlayerRobe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CPartObject(pDevice, pContext) { }
CPlayerRobe::CPlayerRobe(const CPlayerRobe& Prototype) : CPartObject(Prototype) { }
HRESULT CPlayerRobe::Helper_RouteJointGenerater(PHYSX_JOINT eType, CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld)
{
if (PHYSX_JOINT::D6 == eType) {
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(xmAnchorMatricesWorld[Desc_Route.iStartBoneIndex].r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iStartBoneIndex]->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
//else if (PHYSX_JOINT::FIXED == eType) {
// if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
// return E_FAIL;
// }
// m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(xmAnchorMatricesWorld[Desc_Route.iStartBoneIndex].r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
// PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iStartBoneIndex]->Get_Actor();
// PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
// PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
// PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
// PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
// m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxFixedJoint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
// m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxFixedJoint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
//}
return S_OK;
}
HRESULT CPlayerRobe::Ready_Components()
{
__super::Ready_Components(nullptr);
_matrix socketWorld = XMLoadFloat4x4(m_pSocketMatrix) * m_pParentTransformCom->Get_XMWorldMatrix();
_matrix xmAnchorMatricesWorld[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { };
for (_uint iBoneIndex = 0; iBoneIndex < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++iBoneIndex) {
xmAnchorMatricesWorld[iBoneIndex] = XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iBoneIndex]) * socketWorld;
}
#pragma region BASIC_COMP
{ // LLEG
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pLeftLeg, &Desc))) {
return E_FAIL;
}
}
{ // RLEG
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pRightLeg, &Desc))) {
return E_FAIL;
}
}
{ // LTHIGH
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pLeftThigh, &Desc))) {
return E_FAIL;
}
}
{ // RTHIGH
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_Leg"), (CComponent**)&m_pRightThigh, &Desc))) {
return E_FAIL;
}
}
{ // L0BOUND
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower0Bound, &Desc))) {
return E_FAIL;
}
}
{ // L1BOUND
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::LEG);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_Player_LowerBound"), (CComponent**)&m_pLower1Bound, &Desc))) {
return E_FAIL;
}
}
#pragma endregion
#pragma region SOCKET
#pragma region SOCKET_DECLARE
{ // RobeSocket
{ // Fixed_MainAnchor
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeMainAnchor, &Desc))) {
return E_FAIL;
}
m_pRobeMainAnchor->Set_Kinematic(true);
m_pRobeMainAnchor->Set_Transform(socketWorld, true);
#ifdef _DEBUG
m_pRobeMainAnchor->Set_Name("MainAnchor");
#endif // _DEBUG
}
// SubAnchors
for (_int i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ANCHOR);
Desc.bAutoOwnerTranslation = false;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ANCHOR"), (CComponent**)&m_pRobeJointAnchor[i], &Desc))) {
return E_FAIL;
}
m_pRobeJointAnchor[i]->Set_Transform(xmAnchorMatricesWorld[i], true);
#ifdef _DEBUG
m_pRobeJointAnchor[i]->Set_Name(PLAYER_JOINT_BONE_NAMES[i]);
#endif // _DEBUG
}
}
#pragma endregion
{ // RobeRoute
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc_Body = {};
ROUTE_DESC Desc_Route = {};
Desc_Body.bAutoOwnerTranslation = false;
Desc_Body.iSubKind = ENUM_CLASS(PXOBJECT::JOINT_ROUTE);
/*Origin_Linked_Routes*/
{
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_RUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_TUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_LUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_RSIDEUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::ORIGIN_TO_LSIDEUP);
Desc_Route.iStartBoneIndex = -1;
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_JOINT_ROUTE"), (CComponent**)&m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex], &Desc_Body))) {
return E_FAIL;
}
m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Set_CenterTransform(socketWorld.r[3], xmAnchorMatricesWorld[Desc_Route.iEndBoneIndex].r[3], true);
{ // Joint
PSX::PxRigidDynamic* startAnchorRigidActor = m_pRobeMainAnchor->Get_Actor();
PSX::PxRigidDynamic* routeRigidActor = m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_Actor();
PSX::PxRigidDynamic* endAnchorRigidActor = m_pRobeJointAnchor[Desc_Route.iEndBoneIndex]->Get_Actor();
PSX::PxTransform startJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), false); // start y--
PSX::PxTransform endJointWorldPose = CMyTools::Calc_JointPosFromRoute(routeRigidActor, m_pRobeVerticalJointRoute[Desc_Route.iTargetRouteIndex]->Get_HalfGeometryInfo(), true); // end y++
m_pDynamicJoints[Desc_Route.iStartJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(startAnchorRigidActor, routeRigidActor, startJointWorldPose);
m_pDynamicJoints[Desc_Route.iEndJointIndex] = m_pGameInstance->Create_BasicPxD6Joint(routeRigidActor, endAnchorRigidActor, endJointWorldPose);
}
}
}
/*UP_TO_MIDDLE*/
{
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RUP_TO_RMIDDLE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::TUP_TO_TMIDDLE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LUP_TO_LMIDDLE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RSIDEUP_TO_RSIDE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDE);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LSIDEUP_TO_LSIDE);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDE);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
}
/*MIDDLE_TO_DOWN*/
{
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RMIDDLE_TO_RR);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::RSIDE_TO_R);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDE);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTDOWNSIDE);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::RSIDE_TO_R_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::TMIDDLE_TO_TR);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::TMIDDLE_TO_TL);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LSIDE_TO_L);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDE);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWNSIDE);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LSIDE_TO_L_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LMIDDLE_TO_LL);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
{
Desc_Route.iTargetRouteIndex = ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::LMIDDLE_TO_LL);
Desc_Route.iStartBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
Desc_Route.iEndBoneIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTDOWN);
Desc_Route.iStartJointIndex = ENUM_CLASS(PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START);
Desc_Route.iEndJointIndex = Desc_Route.iStartJointIndex + 1;
Helper_RouteJointGenerater(PHYSX_JOINT::D6, Desc_Body, Desc_Route, xmAnchorMatricesWorld);
}
}
}
#pragma endregion
return S_OK;
}
HRESULT CPlayerRobe::Initialize_Prototype() { return S_OK; }
HRESULT CPlayerRobe::Initialize(void* pArg)
{
PlayerRobe_DESC* pDesc = static_cast<PlayerRobe_DESC*> (pArg);
m_pSocketMatrix = pDesc->pSocketMatrix;
m_pModelCom = pDesc->pModel;
m_ReconstructedJointAnchorMatirces.resize(ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END));
m_iBoneNum = m_pModelCom->Get_MeshInfluencedBoneNum(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
m_PrevRobeBoneMatrices.resize(m_iBoneNum);
if (FAILED(m_pModelCom->Capture_BoneMatrices(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH), m_PrevRobeBoneMatrices))) {
return E_FAIL;
}
// Leg-Thigh
m_pLeftFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftFoot");
m_pLeftLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftLeg");
m_pRightFootLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightFoot");
m_pRightLegLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightLeg");
m_pLeftLegUpLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("LeftUpLeg");
m_pRightLegUpLocalMatrix = m_pModelCom->Get_BoneMatrixPtr("RightUpLeg");
// Circle
m_pLower1BoundMatrix = m_pLower0BoundMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips");
#pragma region READY_INITIAL_COMBINED_TRANSFORMATIONMATRIX
XMStoreFloat4x4(&m_PreTransformMatrix, XMLoadFloat4x4(m_pModelCom->Get_PreTransformMatrixPtr()));
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
m_RobeJointAnchorMatrices[i] = m_pModelCom->Get_BoneLocalMatrixPtr(PLAYER_JOINT_BONE_NAMES[i]);
}
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i)
{
_uint iParentIndex = UINT_MAX;
_bool bCopyPreTransform = false;
switch ((PLAYER_JOINT_BONE_ORDER)i)
{
case PLAYER_JOINT_BONE_ORDER::RIGHTUP:
case PLAYER_JOINT_BONE_ORDER::TAILUP:
case PLAYER_JOINT_BONE_ORDER::LEFTUP:
case PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP:
case PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP:
bCopyPreTransform = true;
break;
case PLAYER_JOINT_BONE_ORDER::RIGHT:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTUP);
break;
case PLAYER_JOINT_BONE_ORDER::TAIL:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAILUP);
break;
case PLAYER_JOINT_BONE_ORDER::LEFT:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTUP);
break;
case PLAYER_JOINT_BONE_ORDER::RIGHTSIDE:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDEUP);
break;
case PLAYER_JOINT_BONE_ORDER::LEFTSIDE:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDEUP);
break;
case PLAYER_JOINT_BONE_ORDER::RIGHTDOWN:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHT);
break;
case PLAYER_JOINT_BONE_ORDER::TAILRIGHTDOWN:
case PLAYER_JOINT_BONE_ORDER::TAILLEFTDOWN:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::TAIL);
break;
case PLAYER_JOINT_BONE_ORDER::LEFTDOWN:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFT);
break;
case PLAYER_JOINT_BONE_ORDER::RIGHTDOWNSIDE:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::RIGHTSIDE);
break;
case PLAYER_JOINT_BONE_ORDER::LEFTDOWNSIDE:
iParentIndex = ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::LEFTSIDE);
break;
default:
assert(false);
break;
}
if (true == bCopyPreTransform)
{
_matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i]) * XMLoadFloat4x4(&m_PreTransformMatrix);
XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix);
continue;
}
_matrix constructedMatrix = XMLoadFloat4x4(m_RobeJointAnchorMatrices[i])
* XMLoadFloat4x4(&m_ReconstructedJointAnchorMatirces[iParentIndex]);
XMStoreFloat4x4(&m_ReconstructedJointAnchorMatirces[i], constructedMatrix);
}
#pragma endregion
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components())) {
return E_FAIL;
}
D6JOINTDESC JointDesc = D6JOINTDESC();
for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
JointDesc.ApplyToJoint(*m_pDynamicJoints[i]);
m_JointDescriptions[i] = JointDesc;
}
Update_LegsPosition();
Update_RobeJoints();
#ifdef _DEBUG
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.05f, 22, false, false));
m_pMainShape = (GeometricPrimitive::CreateCylinder(m_pContext, 0.3f, 0.075f, 22, false));
D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {};
depthStencilDesc.DepthEnable = FALSE;
depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO;
depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS;
depthStencilDesc.StencilEnable = FALSE;
HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone);
if (FAILED(result)){
return E_FAIL;
}
#endif // _DEBUG
return S_OK;
}
CPlayerRobe* CPlayerRobe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CPlayerRobe* pInstance = new CPlayerRobe(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CPlayerRobe");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CPlayerRobe::Clone(void* pArg, CGameObject* pOwner)
{
CPlayerRobe* pInstance = new CPlayerRobe(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CPlayerRobe");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CPlayerRobe::Free()
{
__super::Free();
#ifdef _DEBUG
SAFE_RELEASE(m_pDepthStencilStateNone);
#endif // _DEBUG
SAFE_RELEASE(m_pRightLeg);
SAFE_RELEASE(m_pLeftLeg);
SAFE_RELEASE(m_pLeftThigh);
SAFE_RELEASE(m_pRightThigh);
SAFE_RELEASE(m_pLower0Bound);
SAFE_RELEASE(m_pLower1Bound);
SAFE_RELEASE(m_pRobeMainAnchor);
for (_uint i = 0; i < ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::END); ++i) {
SAFE_RELEASE(m_pRobeVerticalJointRoute[i]);
}
for (_uint i = 0; i < ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::END); ++i) {
SAFE_RELEASE(m_pRobeFixedJointRoute[i]);
}
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
SAFE_RELEASE(m_pRobeJointAnchor[i]);
}
if (nullptr != m_pMainShape) {
m_pMainShape.release();
m_pMainShape = nullptr;
}
if (nullptr != m_pSubShape) {
m_pSubShape.release();
m_pSubShape = nullptr;
}
}
@@ -2230,11 +2230,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
if (iCurrAnimIndex != pairAnimInfo.first)
{
m_pModelCom->Set_AnimationIndex(
pairAnimInfo.first,
pairAnimInfo.second,
1.f, false, 1.f, true, true
);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, true);
}
}
else {
@@ -2243,11 +2239,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
if (iCurrAnimIndex != pairAnimInfo.first)
{
m_pModelCom->Set_AnimationIndex(
pairAnimInfo.first,
pairAnimInfo.second,
1.f, false, 1.f, true, true
);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, true);
}
}
@@ -2494,6 +2486,16 @@ HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
void CPlayer::Behavior_Broom_DismountExit()
{
m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT);
_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
_vector up = XMVector3Normalize(XMVector3Cross(look, right));
m_pTransformCom->Set_State(STATE::RIGHT, right);
m_pTransformCom->Set_State(STATE::UP, up);
m_pTransformCom->Set_State(STATE::LOOK, look);
Reset_Event();
}
@@ -2687,7 +2689,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::AVADAKEDAVRA, this); },
0.45f);
0.3f);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::AVADAKEDAVRA_SIDE, Get_PartObject<CWand>()); },
@@ -3097,10 +3099,19 @@ void CPlayer::Add_FSM()
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (!m_bOnce) {
m_pBroomTransform->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix());
m_pBroomTransform->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION) + XMVectorSet(0.f,2.f,0.f,0.f));
m_pBroomTransform->Set_State(
STATE::POSITION,
m_pTransformCom->Get_State(STATE::POSITION) + XMVectorSet(0.f, 2.f, 0.f, 0.f)
);
m_pBroomTransform->Set_State(STATE::LOOK, m_pTransformCom->Get_State(STATE::LOOK));
m_pBroomTransform->Set_State(STATE::UP, m_pTransformCom->Get_State(STATE::UP));
m_pBroomTransform->Set_State(STATE::RIGHT, m_pTransformCom->Get_State(STATE::RIGHT));
_float3 vScale = { 0.3f,0.3f,0.3f };
_float3 vPlayerScale = { 1.f,1.f,1.f };
m_pBroomTransform->Set_Scale(vScale);
m_pTransformCom->Set_Scale(vPlayerScale);
m_bOnce = true;
m_pInfoInstance->Event_CallBack(TEXT("BroomRide"), &m_bOnce);
}
@@ -3111,6 +3122,8 @@ void CPlayer::Add_FSM()
{
m_pBroomTransform->Set_Scale(m_BroomScale);
}
_float3 vPlayerScale = { 1.f,1.f,1.f };
m_pBroomTransform->Set_Scale(vPlayerScale);
Attach_Broom();
};
Desc.funcLateUpdate = nullptr;
+78 -7
View File
@@ -73,7 +73,9 @@ void CRandomNpc::Update(_float fTimeDelta)
m_pCallBack_HitReport->Set_CurrentSlop();
}
/*m_pNPCInteraction->Set_Visible(0 < m_iEntered);*/
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
}
void CRandomNpc::Late_Update(_float fTimeDelta)
@@ -109,6 +111,9 @@ HRESULT CRandomNpc::Render()
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
@@ -204,6 +209,48 @@ HRESULT CRandomNpc::Bind_ShaderResources()
return S_OK;
}
HRESULT CRandomNpc::Bind_ShaderParameters(_uint iMeshOrder)
{
_bool bUseColorMixer = false;
_uint iColorParam = { UINT_MAX };
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
switch (m_pModelCom->Get_UsingPass(iMeshOrder,m_pShaderCom))
{
case 23:
if (m_strModelPrototypeTag == TEXT("Prototype_Component_F_Student_Model"))
{
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.00f;
iColorMixerMethod = 1;
}
else {
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
}
break;
}
if (true == bUseColorMixer) {
if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CRandomNpc::Ready_Components(void* pArg)
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -260,6 +307,36 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
return E_FAIL;
}
break;
case 7:
m_strModelPrototypeTag = TEXT("Prototype_Component_BaiHowin_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BAIHOWIN"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 8:
m_strModelPrototypeTag = TEXT("Prototype_Component_GeorgeOsric_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("GEORGEOSRIC"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 9:
m_strModelPrototypeTag = TEXT("Prototype_Component_DinahHecat_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("DINAHHECAT"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 10:
m_strModelPrototypeTag = TEXT("Prototype_Component_MudiwaOnai_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MUDIWAONAI"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
case 11:
m_strModelPrototypeTag = TEXT("Prototype_Component_Kitchen_Female_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
break;
}
/* Com_Model */
@@ -303,12 +380,6 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
}
}
//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;
}
+9 -6
View File
@@ -399,10 +399,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
Add_Event(pairAnimInfo.first,
[&]() {m_bDisolve = true; },
0.75f);
0.15f);
Add_Event(pairAnimInfo.first,
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
0.95f);
0.5f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return;
}
@@ -415,10 +415,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
Add_Event(pairAnimInfo.first,
[&]() {m_bDisolve = true; },
0.75f);
0.15f);
Add_Event(pairAnimInfo.first,
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
0.95f);
0.5f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return;
}
@@ -432,10 +432,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
Add_Event(pairAnimInfo.first,
[&]() {m_bDisolve = true; },
0.75f);
0.15f);
Add_Event(pairAnimInfo.first,
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
0.95f);
0.5f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return;
}
@@ -660,6 +660,9 @@ HRESULT CRanrok::Render_Nonblend()
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
if (true == m_bDrawOutLine) {
m_pGameInstance->End_OutLine_Write();
}
}
/*if (m_bDrawOutLine) {
@@ -6,6 +6,7 @@
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
#include "Ranrok.h"
CRanrok_Breath::CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -48,11 +49,13 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
m_pBreath_Black = Get_PartObject<CEffectParts>("Breath_Black");
m_pBreathSlog = Get_PartObject<CEffectParts>("BreathSlog");
m_pMouthFire = Get_PartObject<CEffectParts>("MouthFire");
m_pLand_Decal = Get_PartObject<CEffectParts>("Land_Decal");
SAFE_ADDREF(m_pBreath);
SAFE_ADDREF(m_pBreath_Black);
SAFE_ADDREF(m_pBreathSlog);
SAFE_ADDREF(m_pMouthFire);
SAFE_ADDREF(m_pLand_Decal);
m_fDuration = 5.f;
@@ -130,9 +133,9 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
/* 브레스 시간 제어 */
_float fBreathTime = *static_cast<_float*>(pArg);
BREATH_INFO BreathDesc = *static_cast<BREATH_INFO*>(pArg);
Set_BreathTime(fBreathTime);
Set_BreathTime(BreathDesc.fTime);
/* 초기 객체 비지블*/
@@ -146,7 +149,7 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
/* 초기 객체 위치 초기화*/
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("jaw"));
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("tongue_01"));
for (int i = 0; i < 3; ++i) {
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
@@ -180,6 +183,33 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
m_isParticleEnd = false;
m_isStartRayCast = false;
/* 바닥 페이즈 일때*/
if (static_cast<CRanrok::RANROK_PHASE>(BreathDesc.iPase) == CRanrok::RANROK_PHASE::PHASE_GROUND)
{
m_pLand_Decal->Set_Visible(true);
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
if (pPlayer == nullptr)
return E_FAIL;
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
m_pLand_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
m_pLand_Decal->Get_Component<CInstance_Model>()->Set_Loop(true);
}
return S_OK;
}
@@ -254,6 +284,7 @@ void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
pSplatterBottom0->Set_Visible(true);
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos + vDir * 3.f);
m_pLand_Decal->Get_Component<CInstance_Model>()->Set_Loop(false);
XMStoreFloat4(&m_vPreCollisionPos, vPos);
}
@@ -304,7 +335,7 @@ void CRanrok_Breath::Free()
SAFE_RELEASE(m_pBreath_Black);
SAFE_RELEASE(m_pBreathSlog);
SAFE_RELEASE(m_pMouthFire);
SAFE_RELEASE(m_pLand_Decal);
//SAFE_RELEASE(m_pFireBall_Tail);
}
#ifdef _DEBUG
@@ -0,0 +1,207 @@
#include "pch.h"
#include "Ranrok_GroundPulse.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_GroundPulse::CRanrok_GroundPulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_GroundPulse::CRanrok_GroundPulse(const CRanrok_GroundPulse& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_GroundPulse::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokGroundPulse")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_GroundPulse::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"RanrokGroundPulse";
m_fDuration = 10.f;
return S_OK;
}
void CRanrok_GroundPulse::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_GroundPulse::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_GroundPulse::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_GroundPulse::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pBottomDecal = Get_PartObject<CEffectParts>("Bottom_Decal");
CEffectParts* pBottomSplatter = Get_PartObject<CEffectParts>("BottomSplatter");
CEffectParts* pRed_Sphere = Get_PartObject<CEffectParts>("Red_Sphere");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pBottomDecal->Set_Visible(true);
pBottomSplatter->Set_Visible(true);
pRock_PT->Set_Visible(true);
pSmoke->Set_Visible(true);
pRed_Sphere->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
pRed_Sphere->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
pRed_Sphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
if (pPlayer == nullptr)
return E_FAIL;
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
pBottomDecal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pBottomSplatter->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_GroundPulse::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_GroundPulse::Ready_Child()
{
return S_OK;
}
CRanrok_GroundPulse* CRanrok_GroundPulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_GroundPulse* pInstance = new CRanrok_GroundPulse(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_GroundPulse");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_GroundPulse::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_GroundPulse* pInstance = new CRanrok_GroundPulse(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_GroundPulse");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_GroundPulse::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_GroundPulse::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_GroundPulse::Describe_Entity()
{
}
#endif
HRESULT CRanrok_GroundPulse::Bind_ShaderResources()
{
return S_OK;
}
@@ -0,0 +1,201 @@
#include "pch.h"
#include "Ranrok_Land.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Land::CRanrok_Land(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Land::CRanrok_Land(const CRanrok_Land& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Land::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokLand")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_Land::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"RanrokLand";
m_fDuration = 5.f;
return S_OK;
}
void CRanrok_Land::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Land::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Land::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Land::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pBottom_Decal = Get_PartObject<CEffectParts>("Bottom_Decal");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pBottom_Decal->Set_Visible(true);
pSmoke->Set_Visible(true);
pRock_PT->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
if (pPlayer == nullptr)
return E_FAIL;
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
pBottom_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_Land::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Land::Ready_Child()
{
return S_OK;
}
CRanrok_Land* CRanrok_Land::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Land* pInstance = new CRanrok_Land(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Land");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Land::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Land* pInstance = new CRanrok_Land(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Land");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Land::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_Land::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Land::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Land::Bind_ShaderResources()
{
return S_OK;
}
@@ -0,0 +1,202 @@
#include "pch.h"
#include "Ranrok_Rush_Bottom.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Rush_Bottom::CRanrok_Rush_Bottom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Rush_Bottom::CRanrok_Rush_Bottom(const CRanrok_Rush_Bottom& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Rush_Bottom::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokRushBottom")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::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"Ranrok_Rush_Bottom";
m_fDuration = 3.f;
return S_OK;
}
void CRanrok_Rush_Bottom::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Rush_Bottom::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Rush_Bottom::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Rush_Bottom::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pRush_Decal = Get_PartObject<CEffectParts>("Rush_Decal");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pRush_Decal->Set_Visible(true);
pSmoke->Set_Visible(true);
pRock_PT->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vBonePos = XMLoadFloat4(static_cast<_float4*>(pArg));
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
if (pPlayer == nullptr)
return E_FAIL;
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
pRush_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Ready_Child()
{
return S_OK;
}
CRanrok_Rush_Bottom* CRanrok_Rush_Bottom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Rush_Bottom* pInstance = new CRanrok_Rush_Bottom(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Rush_Bottom");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Rush_Bottom::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Rush_Bottom* pInstance = new CRanrok_Rush_Bottom(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Rush_Bottom");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Rush_Bottom::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_Rush_Bottom::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Rush_Bottom::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Rush_Bottom::Bind_ShaderResources()
{
return S_OK;
}
@@ -7,6 +7,7 @@
#include "EffectPool.h"
#include "EffectParts.h"
#include "TrailObject.h"
#include "Ranrok_Breath.h"
#pragma region STATE
#include "State_Idle.h"
@@ -352,9 +353,13 @@ void CRanrok::Behavior_FireBreathEnter()
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[this]() {
_float fBreathTime = 1.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 1.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
}, 0.1f);
@@ -370,8 +375,13 @@ void CRanrok::Behavior_FireBreathEnter()
Add_Event(pairAnimInfo.first,
[this]() {
_float fBreathTime = 5.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 2.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
m_bLookAt = false;
}, 0.2f);
@@ -457,9 +467,13 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
[this]() {
_float fBreathTime = 3.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 2.5f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
}, 0.08f);
@@ -476,8 +490,13 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first,
[this]() {
_float fBreathTime = 5.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 3.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
m_bLookAt = false;
}, 0.2f);
@@ -637,7 +656,7 @@ void CRanrok::Behavior_SwipeEnter()
else {
pairAnimInfo = m_Animation[STATEANIM::GROUND_SWIPE_R];
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.5f);
}
Add_Event(pairAnimInfo.first,
@@ -695,9 +714,34 @@ void CRanrok::Behavior_RushEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::RUSH);
pairAnimInfo = m_Animation[STATEANIM::RUSH_LOOP];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,2.f);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)];
m_bLookAt = false;
Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first,
[this]() {
_matrix LeftBoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("wrist_left_target")) * m_pTransformCom->Get_XMWorldMatrix();
_float4 vLeftPos;
XMStoreFloat4(&vLeftPos, LeftBoneMat.r[3]);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_RUSH_BOTTOM, this, &vLeftPos);
}, 0.5f, true);
Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first,
[this]() {
_matrix RightBoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("wrist_right_target")) * m_pTransformCom->Get_XMWorldMatrix();
_float4 vRightPos;
XMStoreFloat4(&vRightPos, RightBoneMat.r[3]);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_RUSH_BOTTOM, this, &vRightPos);
}, 0.8f, true);
}
HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
@@ -762,6 +806,9 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::GROUND);
return E_FAIL;
}
return S_OK;
}
@@ -782,21 +829,31 @@ void CRanrok::Behavior_PulseEnter()
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(pairAnimInfo.first,
[this]() { CameraShake(10.f, 2.f, 5.f, 1.2f);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
},
0.39f);
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);
}, 0.01f);
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
Add_Event(pairAnimInfo.first,
[this]() {
CameraShake(10.f, 2.f, 5.f, 1.2f);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
}, 0.39f);
}
else
{
Add_Event(pairAnimInfo.first,
[this]() {
CameraShake(10.f, 2.f, 5.f, 1.2f);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_GROUNDPULSE, this);
}, 0.39f);
}
}
@@ -908,8 +965,11 @@ void CRanrok::Behavior_LandEnter()
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,fAnimSpeed);
Add_Event(pairAnimInfo.first,
[this]() { CameraShake(30.f, 5.f, 10.f, 1.2f); },
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_LAND, this);
CameraShake(30.f, 5.f, 10.f, 1.2f); },
0.53f);
}
@@ -378,8 +378,6 @@ HRESULT CTrailObject::Render_Blur()
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR))))
return E_FAIL;
if (FAILED(m_pTrailCom->Render()))
return E_FAIL;
@@ -470,10 +468,6 @@ HRESULT CTrailObject::Bind_ShaderResources()
if (FAILED(m_pTrailCom->Bind_Resources()))
return E_FAIL;
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
return E_FAIL;
}
@@ -482,6 +476,11 @@ HRESULT CTrailObject::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
@@ -641,15 +641,18 @@ void CTroll::Behavior_HitEnter()
{
m_pFSM->Enable_State(FSMSTATE::HIT);
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
pair<_uint, _bool> pairAnimInfo;
m_bLookAt = false;
if (iCurrAnimIndex == m_Animation[STATEANIM::SLAM].first)
{
pairAnimInfo = m_Animation[STATEANIM::HIT_FACE];
Add_Event(pairAnimInfo.first,
[this]() {CameraShake(10.f, 2.f, 3.f, 0.3f); },
0.1f);
if (fRatio >= 0.75f) {
pairAnimInfo = m_Animation[STATEANIM::HIT_FACE];
Add_Event(pairAnimInfo.first,
[this]() {CameraShake(10.f, 2.f, 3.f, 0.3f); },
0.1f);
}
}
else {
_int RandIndex = m_pGameInstance->Real_Random_Int(0, 2);
+3
View File
@@ -76,6 +76,9 @@ class CBroom final : public CUnit
_float m_fTurboDecel = 0.6f;
_bool m_bMove = { true };
_int m_iIndex = {};
#pragma region AI
_float m_fAISpeedMul = 1.f;
+8 -1
View File
@@ -7,6 +7,12 @@ NS_BEGIN(Client)
class CBroomRacerAI final : public CUnit
{
public:
struct RacerDesc
{
class CBroomRaceManager* pRacerManager = {nullptr};
_int iIndex = { 0 };
};
enum MESH_ORDER {
HEAD_EYE_OCC,
HEAD_FACE,
@@ -101,7 +107,8 @@ class CBroomRacerAI final : public CUnit
_float m_LaneOffsetX = 0.f;
_float m_LaneOffsetY = 0.f;
_float m_TurnGain = 1.f;
_float m_HeightGain =1.f;
_float m_HeightGain = 1.f;
_int m_iIndex = {};
void Behavior_Broom_Ride_MoveEnter();
HRESULT Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta);
+2 -1
View File
@@ -78,7 +78,8 @@ namespace Client
/*란록*/
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT,
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM,
RANROK_GROUNDPULSE,
END
};
@@ -54,6 +54,8 @@ class CGoblin_Assassin final : public CMonster
class CEffectParts* m_pGoblin_Particle = { nullptr };
class CEffectParts* m_pGoblin_Particle2 = { nullptr };
class CGoblin_Assassin_Spector* m_pGoblinSpector = { nullptr };
ID3D11RasterizerState* m_pRS_Wireframe = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -52,6 +52,7 @@ class CNPC_Ollivander final : public CUnit
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
public:
static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+15 -3
View File
@@ -40,8 +40,12 @@ class CPlayerRobe final : public CPartObject
const _float4x4* m_pSocketMatrix = { nullptr };
const _float4x4* m_pLeftFootLocalMatrix = { nullptr };
const _float4x4* m_pLeftLegLocalMatrix = { nullptr };
const _float4x4* m_pLeftLegUpLocalMatrix = { nullptr };
const _float4x4* m_pRightFootLocalMatrix = { nullptr };
const _float4x4* m_pRightLegLocalMatrix = { nullptr };
const _float4x4* m_pRightLegUpLocalMatrix = { nullptr };
const _float4x4* m_pLower0BoundMatrix = { nullptr };
const _float4x4* m_pLower1BoundMatrix = { nullptr };
const _float4x4* m_RobeJointAnchorMatrices[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { nullptr };
vector<_float4x4> m_ReconstructedJointAnchorMatirces = { };
//_float4x4 m_ReconstructedJointAnchorMatirces[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { };
@@ -50,12 +54,17 @@ class CPlayerRobe final : public CPartObject
_int m_iBoneNum = -1;
CRigidBody_Dynamic* m_pRightLeg = { nullptr };
CRigidBody_Dynamic* m_pLeftLeg = { nullptr };
CRigidBody_Dynamic* m_pLeftThigh = { nullptr };
CRigidBody_Dynamic* m_pRightThigh = { nullptr };
CRigidBody_Dynamic* m_pLower0Bound = { nullptr };
CRigidBody_Dynamic* m_pLower1Bound = { nullptr };
CRigidBody_Dynamic* m_pRobeMainAnchor = { nullptr };
CRigidBody_Dynamic* m_pRobeJointRoute[ENUM_CLASS(PLAYER_JOINT_ROUTE_ORDER::END)] = { nullptr };
CRigidBody_Dynamic* m_pRobeVerticalJointRoute[ENUM_CLASS(PLAYER_ROUTE_VERTICAL_ORDER::END)] = { nullptr };
CRigidBody_Dynamic* m_pRobeFixedJointRoute[ENUM_CLASS(PLAYER_ROUTE_HORIZONTAL_ORDER::END)] = { nullptr };
CRigidBody_Dynamic* m_pRobeJointAnchor[ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END)] = { nullptr };
PSX::PxD6Joint* m_pDynamicJoints[ENUM_CLASS(PLAYER_JOINT_ORDER::END)] = { nullptr };
PSX::PxFixedJoint* m_pFixedJoints[ENUM_CLASS(PLAYER_JOINT_HORIZONTAL_ORDER::END)] = { nullptr };
D6JOINTDESC m_JointDescriptions[ENUM_CLASS(PLAYER_JOINT_ORDER::END)] = { };
vector<_float4x4> m_PrevRobeBoneMatrices = { };
@@ -65,6 +74,9 @@ class CPlayerRobe final : public CPartObject
ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr };
_float4x4 m_LeftLegMatrix = {};
_float4x4 m_RightLegMatrix = {};
_float4x4 m_LeftThighMatrix = {};
_float4x4 m_RightThighMatrix = {};
_bool m_bRenderDebug = { true };
#endif // _DEBUG
private:
virtual HRESULT Initialize_Prototype() override;
@@ -73,11 +85,11 @@ class CPlayerRobe final : public CPartObject
HRESULT Bind_ShaderResources() { return S_OK; }
HRESULT Update_LegsPosition();
HRESULT Helper_RouteJointGenerater(PHYSX_JOINT eType, CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld);
HRESULT Update_RobeJoints();
HRESULT Helper_RouteJointGenerater(CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld);
#ifdef _DEBUG
HRESULT Render_BonePhysX();
HRESULT Render_Legs();
HRESULT Render_Legs(_fmatrix LowerMatrix);
#endif // _DEBUG
public:
static CPlayerRobe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+84 -15
View File
@@ -23,44 +23,90 @@ enum class PLAYER_MESH_ORDER {
END
};
static const _char* PLAYER_JOINT_BONE_NAMES[12] = {
static const _char* PLAYER_JOINT_BONE_NAMES[16] = {
"RightUpLeg_Cloth"
, "RightLeg_Cloth"
, "RightDownLeg_Cloth"
, "RightDownRightLeg_Cloth"
, "LeftUpLeg_Cloth"
, "LeftLeg_Cloth"
, "LeftDownLeg_Cloth"
, "LeftDownLeftLeg_Cloth"
, "TailUp_Cloth"
, "Tail_Cloth"
, "TailLeftDown_Cloth"
, "TailRightDown_Cloth"
, "RightSideUpLeg_Cloth"
, "RightSideLeg_Cloth"
, "RightDownSideLeg_Cloth"
, "LeftSideUpLeg_Cloth"
, "LeftSideLeg_Cloth"
, "LeftDownSideLeg_Cloth"
};
enum class PLAYER_JOINT_BONE_ORDER {
RIGHTUP
, RIGHT
, RIGHTDOWN
, RIGHTDOWNRIGHT
, LEFTUP
, LEFT
, LEFTDOWN
, LEFTDOWNLEFT
, TAILUP
, TAIL
, TAILLEFTDOWN
, TAILRIGHTDOWN
, RIGHTSIDEUP
, RIGHTSIDE
, RIGHTDOWNSIDE
, LEFTSIDEUP
, LEFTSIDE
, LEFTDOWNSIDE
, END
};
enum class PLAYER_JOINT_HORIZONTAL_ORDER {
#pragma region UP_HORIZONTAL
UP_R_RS_START
, UP_R_RS_END
, UP_RS_T_START
, UP_RS_T_END
, UP_T_LS_START
, UP_T_LS_END
, UP_LS_L_START
, UP_LS_L_END
#pragma endregion
#pragma region MIDDLE_HORIZONTAL
, MIDDLE_R_RS_START
, MIDDLE_R_RS_END
, MIDDLE_RS_T_START
, MIDDLE_RS_T_END
, MIDDLE_T_LS_START
, MIDDLE_T_LS_END
, MIDDLE_LS_L_START
, MIDDLE_LS_L_END
#pragma endregion
#pragma region DOWN_HORIZONTAL
, DOWN_R_RS_START
, DOWN_R_RS_END
, DOWN_RS_T_START
, DOWN_RS_T_END
, DOWN_T_LS_START
, DOWN_T_LS_END
, DOWN_LS_L_START
, DOWN_LS_L_END
#pragma endregion
, END
};
enum class PLAYER_JOINT_ORDER {
#pragma region ORIGIN_TO_UP
ORIGIN_TO_RUP_START
, ORIGIN_TO_RUP_END
@@ -70,7 +116,13 @@ enum class PLAYER_JOINT_ORDER {
, ORIGIN_TO_LUP_START
, ORIGIN_TO_LUP_END
, ORIGIN_TO_RSIDEUP_START
, ORIGIN_TO_RSIDEUP_END
, ORIGIN_TO_LSIDEUP_START
, ORIGIN_TO_LSIDEUP_END
#pragma endregion
#pragma region UP_TO_MIDDLE
, RUP_TO_RMIDDLE_START
, RUP_TO_RMIDDLE_END
@@ -80,44 +132,61 @@ enum class PLAYER_JOINT_ORDER {
, LUP_TO_LMIDDLE_START
, LUP_TO_LMIDDLE_END
, RSIDEUP_TO_RSIDE_START
, RSIDEUP_TO_RSIDE_END
, LSIDEUP_TO_LSIDE_START
, LSIDEUP_TO_LSIDE_END
#pragma endregion
#pragma region MIDDLE_TO_BOTTOM
, RMIDDLE_TO_RR_START
, RMIDDLE_TO_RR_END
, RMIDDLE_TO_R_START
, RMIDDLE_TO_R_END
, TMIDDLE_TO_TR_START
, TMIDDLE_TO_TR_END
, TMIDDLE_TO_TL_START
, TMIDDLE_TO_TL_END
, LMIDDLE_TO_L_START
, LMIDDLE_TO_L_END
, LMIDDLE_TO_LL_START
, LMIDDLE_TO_LL_END
, RSIDE_TO_R_START
, RSIDE_TO_R_END
, LSIDE_TO_L_START
, LSIDE_TO_L_END
#pragma endregion
, END
};
enum class PLAYER_JOINT_ROUTE_ORDER {
enum class PLAYER_ROUTE_HORIZONTAL_ORDER {
da,
END
};
enum class PLAYER_ROUTE_VERTICAL_ORDER {
ORIGIN_TO_RUP
, ORIGIN_TO_TUP
, ORIGIN_TO_LUP
, ORIGIN_TO_RSIDEUP
, ORIGIN_TO_LSIDEUP
, RUP_TO_RMIDDLE
, TUP_TO_TMIDDLE
, LUP_TO_LMIDDLE
, RSIDEUP_TO_RSIDE
, LSIDEUP_TO_LSIDE
, RMIDDLE_TO_RR
, RMIDDLE_TO_R
, TMIDDLE_TO_TR
, TMIDDLE_TO_TL
, LMIDDLE_TO_L
, LMIDDLE_TO_LL
, RSIDE_TO_R
, LSIDE_TO_L
, END
};
@@ -48,6 +48,7 @@ class CRandomNpc final : public CUnit
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
public:
static CRandomNpc* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+1 -1
View File
@@ -31,7 +31,7 @@ class CRanrok final : public CMonster
BODY,
END
};
public:
enum class RANROK_PHASE
{
PHASE_AIR,
@@ -10,6 +10,13 @@ NS_BEGIN(Client)
class CRanrok_Breath final : public CEffect_Container
{
public:
typedef struct tagBreathInfo
{
_float fTime;
_int iPase;
}BREATH_INFO;
private:
CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Breath(const CRanrok_Breath& rhs);
@@ -38,6 +45,7 @@ class CRanrok_Breath final : public CEffect_Container
class CEffectParts* m_pBreath_Black = { nullptr };
class CEffectParts* m_pBreathSlog = { nullptr };
class CEffectParts* m_pMouthFire = { nullptr };
class CEffectParts* m_pLand_Decal = { nullptr };
_float3 m_vLook = {};
_float m_fLinearSpeed = 0.8f;
@@ -0,0 +1,55 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CRanrok_GroundPulse final : public CEffect_Container
{
private:
CRanrok_GroundPulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_GroundPulse(const CRanrok_GroundPulse& rhs);
virtual ~CRanrok_GroundPulse() = 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 = {};
_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_GroundPulse* 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_Land final : public CEffect_Container
{
private:
CRanrok_Land(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Land(const CRanrok_Land& rhs);
virtual ~CRanrok_Land() = 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_Land* 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_Rush_Bottom final : public CEffect_Container
{
private:
CRanrok_Rush_Bottom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Rush_Bottom(const CRanrok_Rush_Bottom& rhs);
virtual ~CRanrok_Rush_Bottom() = 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_Rush_Bottom* 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,305 @@
<Material>
<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_Old_F_Head_BaiHowin ShaderIndex = "6" OutLineWrite="16">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_F_Head_BaiHowin_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_Old_F_Head_BaiHowin_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_Old_F_Head_BaiHowin_SRXO" Extension=".dds"/>
</MI_Old_F_Head_BaiHowin>
<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="" 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"/>
</MI_HUM_N_Heads_Teeth>
<MI_HUM_N_Heads_Eyelash ShaderIndex = "23" 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_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_Howin_clothes ShaderIndex = "8" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Howin_Clothes_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_Howin_Clothes_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_Howin_Clothes_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="T_Howin_Clothes_MROS" 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_Howin_clothes>
<MI_OLD_F_Hair_BaiHowin ShaderIndex = "23" OutLineWrite="5">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Hair_BaiHowin_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_BaiHowin_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_OLD_F_Hair_BaiHowin>
<MI_HUM_F_Hat_HowinHat_Fur ShaderIndex = "7" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Hat_HowinHat_Fur_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_F_Hat_HowinHat_Fur_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_F_Hat_HowinHat_Fur_SROA" Extension=".dds"/>
</MI_HUM_F_Hat_HowinHat_Fur>
<MI_HUM_F_Upp_HowinSmock02_Fur ShaderIndex = "7" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Upp_HowinSmock02_Fur_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_HUM_F_Upp_HowinSmock02_Fur_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_F_Upp_HowinSmock02_Fur_SROA" Extension=".dds"/>
</MI_HUM_F_Upp_HowinSmock02_Fur>
<MI_ClothSim ShaderIndex = "8" OutLineWrite="22">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Howin_Clothes_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_Howin_Clothes_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_Howin_Clothes_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="T_Howin_Clothes_MROS" 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: 69 B

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: 2.6 MiB

@@ -30,7 +30,7 @@
</MI_Professor_ChiyoKogawa_Updated>
<MI_HUM_N_Heads_Eyelash ShaderIndex = "5" OutLineWrite="5">
<MI_HUM_N_Heads_Eyelash ShaderIndex = "23" 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=""/>
@@ -187,7 +187,7 @@
</MI_HUM_N_Heads_Eye>
<MI_Professor_ChiyoKogawaHair ShaderIndex = "5" OutLineWrite="5">
<MI_Professor_ChiyoKogawaHair ShaderIndex = "23" 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=""/>
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -0,0 +1,278 @@
<Material>
<MI_Professor_DinahHecat ShaderIndex = "8" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Professor_DinahHecat_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_DinahHecat_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_DinahHecat_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_DinahHecat>
<MI_HUM_N_Heads_Eyelash ShaderIndex = "23" 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_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_Old_F_DinahHecatHead ShaderIndex = "6" OutLineWrite="16">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_F_Head_DinahHecat_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_Old_F_Head_DinahHecat_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_Old_F_Head_DinahHecat_SRXO" Extension=".dds"/>
</MI_Old_F_DinahHecatHead>
<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_M_Hair_Hecat_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_OLD_F_Body_DinahHecatArms ShaderIndex = "6" OutLineWrite="6">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Arms_Ivory_Hecat_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_Old_M_Arms_Ivory_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_Old_M_Arms_Ivory_Hecat_SRXO" Extension=".dds"/>
</MI_OLD_F_Body_DinahHecatArms>
<MI_HUM_F_Hair_Hecat ShaderIndex = "23" OutLineWrite="5">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Hair_Hecat_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_M_Hair_Hecat_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_F_Hair_Hecat>
<MI_ClothSim ShaderIndex = "8" OutLineWrite="22">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Professor_DinahHecat_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_DinahHecat_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_DinahHecat_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: 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