This commit is contained in:
hyunbin14
2026-01-01 11:34:06 +09:00
parent 816fc76ae3
commit ea9717a6b4
8 changed files with 220 additions and 168 deletions
@@ -42,6 +42,9 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg)
Add_FSM();
//Load_AnimXML("../Bin/Resources/Data/AnimIndex/Goblin_Assassin.xml");
Set_Anim();
{
@@ -944,6 +944,26 @@ void CGoblin_Assassin::Add_FSM()
}
//
//void CGoblin_Assassin::Load_AnimXML(const string& path)
//{
// tinyxml2::XMLDocument doc;
// doc.LoadFile(path.c_str());
//
// tinyxml2::XMLElement* root = doc.FirstChildElement("Animations");
// for (tinyxml2::XMLElement* elem = root->FirstChildElement("Anim");
// elem; elem = elem->NextSiblingElement("Anim"))
// {
// const char* stateStr = elem->Attribute("state");
// _int index = elem->IntAttribute("index");
// _bool loop = elem->BoolAttribute("loop");
//
// STATEANIM::ESTATE state = StringToStateAnim(stateStr);
// m_Animation[state] = { index, loop };
// }
//}
void CGoblin_Assassin::Set_Anim()
{
m_Animation[STATEANIM::IDLE] = { 22,true };
@@ -1035,48 +1055,4 @@ void CGoblin_Assassin::Set_Anim()
m_Animation[STATEANIM::DEAD_L2] = { 322, false };
m_Animation[STATEANIM::DEAD_R] = { 323, false };
m_Animation[STATEANIM::DEAD_R2] = { 324, false };
//Tp 426
// Tp Start 428
// 76 공격끝
// 걷기 시작 57
// 걷기 루프 50
// 뛰기 시작 157
// 뛰기 루프 45
// 나이프 던지기 85
// 도끼 공격 444
// 도끼 공격 후 76
// 도끼 찍기 439
//
// 텀블링 히트 380
// 디센도 찍기전 띄우기 371
// 디센도 찍기 372
// 레비오소 피격 381
// 착지 376
//
// Shuffle1 211
// Shuffle2 215
// Shuffle3 219
// Shuffle4 223
//Jog 112도 L 148
//Jog 112도 R 152
// Jog 90 L 151
// Jog 90 R 155
// L 394
// R 395
// fwd 396
}
+15 -29
View File
@@ -121,7 +121,7 @@ HRESULT CPlayer::Initialize(void* pArg)
m_bAI = false;
XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
//XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
m_pModelCom->Set_Temp(true);
@@ -603,14 +603,11 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
#ifdef 기무리
#elif Bin
case PLAYER_MESH_ORDER::ROBE_CLOTH:
{//if (FAILED(m_pModelCom->Bind_BoneMatrices(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH), m_pShaderCom, "g_BoneMatrices"))) {
// return E_FAIL;
//}
{
CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
_uint paletteCount = pMesh->Get_NumBone();
_uint MeshBoneCount = pMesh->Get_NumBone();
for (_uint i = 0; i < paletteCount; ++i)
for (_uint i = 0; i < MeshBoneCount; ++i)
{
XMStoreFloat4x4(&SkinMatrices[i] ,XMMatrixIdentity());
}
@@ -619,7 +616,7 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
vector<_int> boneIndices = pMesh->Get_BoneIndices();
for (_uint i = 0; i < paletteCount; ++i)
for (_uint i = 0; i < MeshBoneCount; ++i)
{
_uint global = boneIndices[i];
if (global == 38)
@@ -630,30 +627,19 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
}
}
array<_int, 256> paletteMask{};
paletteMask.fill(0);
//array<_int, 256> paletteMask{};
//paletteMask.fill(0);
for (_uint i = 0; i < paletteCount; ++i)
{
if (i == 29)
continue;
_uint global = boneIndices[i];
paletteMask[i] = globalMask[global];
}
//for (_uint i = 0; i < paletteCount; ++i)
//{
// if (i == 29)
// continue;
// _uint global = boneIndices[i];
// paletteMask[i] = globalMask[global];
//}
m_pShaderCom->Bind_IntArray("g_RobeBoneMask", paletteMask.data(), 256);
//m_pShaderCom->Bind_IntArray("g_RobeBoneMask", paletteMask.data(), 256);
// Bind_Matrices("g_BoneMatrices", SkinMatrices.data(), 256);
/* if (FAILED(m_pShaderCom->Bind_RawValue(
"g_RobeBoneMask",
robeIdx.data(),
sizeof(_uint) *(_int)robeIdx.size()
)))
{
return E_FAIL;
}*/
GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
@@ -79,6 +79,7 @@ class CGoblin_Assassin final : public CMonster
private:
virtual void Add_FSM();
void Load_AnimXML(const string& path);
virtual void Set_Anim();
_float m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::END)] = {};
-1
View File
@@ -164,7 +164,6 @@ class CPlayer final : public CUnit
_float m_fNoInputTime = 0.f;
_float m_fNeutralTime = 0.f;
array<_float4x4, 256> SkinMatrices;
_int Temp = {0};
/* 무적 불 변수*/
#ifdef _DEBUG