[add] Load BroomRace Bubble

[add] Sound tool 추가
[add] Sound Event 분리
This commit is contained in:
Chanbin Kim
2026-01-14 17:35:16 +09:00
parent 8ac1e718b0
commit 83dbe5d433
20 changed files with 410 additions and 94 deletions
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<EffectParts>
<Object>
<Position x="-557.4693" y="1.7081518" z="-404.99838"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-546.97711" y="3.4388852" z="-405.45068"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-533.41187" y="5.8523626" z="-407.15222"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-422.68542" y="12.297935" z="-423.10046"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-438.46686" y="11.288605" z="-419.94629"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-272.8252" y="11.575071" z="-466.4433"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-233.60553" y="4.5245433" z="-438.84055"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-116.56883" y="-5.2835941" z="-457.04156"/>
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-115.49762" y="-4.3404284" z="-462.14432"/>
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-114.33831" y="-2.8634744" z="-469.75327"/>
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-114.49501" y="8.9647017" z="-630.75684"/>
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-122.38454" y="9.379631" z="-632.39172"/>
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-141.58109" y="9.3517723" z="-635.36981"/>
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-358.02856" y="21.008039" z="-564.20557"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-381.73807" y="18.154875" z="-551.83118"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-420.54446" y="14.254954" z="-531.81177"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
<Object>
<Position x="-470.04022" y="7.4956679" z="-506.46667"/>
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
<Rotation x="0" y="0" z="0"/>
</Object>
</EffectParts>
@@ -0,0 +1,8 @@
<KeyFrames>
<Animation Index="206">
<KeyFrame Event="Player/Voice/avadakedavra_voice.wav" Ratio="0.265" Volume="0.8"/>
</Animation>
<Animation Index="858">
<KeyFrame Event="Player/Voice/decendo_voice.wav" Ratio="0.022" Volume="1"/>
</Animation>
</KeyFrames>
@@ -806,9 +806,9 @@ HRESULT CLevel_MapViewer::Ready_Layer_MapObjectManager(const _wstring& strLayerT
HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok()
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
// return E_FAIL;
//}
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
@@ -20,6 +20,8 @@
#include "Goblin.h"
#include "Broom.h"
#include "ReparoObject.h"
#include "Sound_Manager.h"
#include "Unit.h"
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
{
@@ -42,6 +44,7 @@ HRESULT CLevel_ObjectViewer::Initialize()
return E_FAIL;
}
m_fVolume = 0.8f;
return S_OK;
}
@@ -59,6 +62,9 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta)
Parts_Object_Setting();
Find_Anim();
for(auto& pObject : m_Objects)
dynamic_cast<CUnit*>(pObject)->Play_Event();
}
HRESULT CLevel_ObjectViewer::Render()
@@ -362,6 +368,7 @@ void CLevel_ObjectViewer::Show_AnimList()
GUI::End();
}
void CLevel_ObjectViewer::Show_ObjectList()
{
for (size_t i = 0; i < m_Objects.size(); i++)
@@ -428,6 +435,7 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
_int iIndex = pModel->Get_AnimIndex();
if (GUI::InputInt("Anim Index", &iIndex))
{
m_iCurAnimIndex = iIndex;
pModel->Set_AnimationIndex(iIndex);
}
@@ -438,8 +446,15 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
Load_KeyFrame(szName);
}
static _char EventName[64] = {};
if(GUI::Button("Load KeyFrame_"))
{
for (auto& pObject : m_Objects)
{
dynamic_cast<CUnit*>(pObject)->Reset_SoundEvent();
dynamic_cast<CUnit*>(m_Objects[m_iObjectIndex])->Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml");
}
}
static _char EventName[256] = {};
GUI::InputText("EventName", EventName, sizeof(EventName));
GUI::SameLine();
@@ -456,6 +471,31 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
EventName[0] = '\0';
}
}
GUI::InputFloat("Volume", &m_fVolume);
static _char SoundFilter[256] = {};
if (GUI::Button("Stop Sound"))
m_pGameInstance->Sound_StopAll();
if (GUI::CollapsingHeader("Sound list"))
{
GUI::InputText("Filter", SoundFilter, sizeof(SoundFilter));
_wstring soudnfilter = CMyTools::ToWstring(SoundFilter);
for (_uint i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i)
{
_wstring Name = SOUND::SD_PATH::SD_KIND_PATHS[i];
if (string::npos != Name.find(soudnfilter))
{
if (GUI::Button(("S_" + CMyTools::ToString(Name)).c_str()))
{
strcpy_s(EventName, CMyTools::ToString(Name).c_str());
m_pGameInstance->Sound_Play(static_cast<SOUND::SD_KIND>(i), SD_CHANNEL_GROUP::EFFECT, false, m_fVolume);
}
}
}
}
for (auto& iter : m_KeyFrames)
@@ -702,6 +742,7 @@ void CLevel_ObjectViewer::Find_Anim()
void CLevel_ObjectViewer::Save_KeyFrame()
{
_char szDrive[MAX_PATH] = {};
_char szDir[MAX_PATH] = {};
_splitpath_s(m_DummyPath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0);
@@ -736,17 +777,17 @@ void CLevel_ObjectViewer::Save_KeyFrame()
}
}
if (!pAnimNode)
if (nullptr == pAnimNode)
{
pAnimNode = doc.NewElement("Animation");
pAnimNode->SetAttribute("Index", m_iCurAnimIndex);
pRoot->InsertEndChild(pAnimNode);
}
while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame"))
{
pAnimNode->DeleteChild(pKey);
}
//while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame"))
//{
// pAnimNode->DeleteChild(pKey);
//}
for (auto& iter : m_KeyFrames)
{
@@ -757,9 +798,20 @@ void CLevel_ObjectViewer::Save_KeyFrame()
pKey->SetAttribute("Ratio", buf);
pKey->SetAttribute("Volume", m_fVolume);
pAnimNode->InsertEndChild(pKey);
SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(Path));
if(nullptr != m_Objects[m_iObjectIndex])
{
dynamic_cast<CUnit*>(m_Objects[m_iObjectIndex])->Add_Sound_Event(m_iCurAnimIndex,
[this, eSoundKind, iter]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, m_fVolume); },
iter.second, true);
}
}
m_KeyFrames.clear();
doc.SaveFile(Path.c_str());
}
HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
+26 -17
View File
@@ -418,6 +418,15 @@ HRESULT CLoader::Loading_For_Logo()
m_strMessage = TEXT("Model Loading..");
m_strMessage = TEXT("Sound Loading..");
const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_PATHS[iIndex]).c_str(), FMOD_DEFAULT))) {
return E_FAIL;
}
}
m_strMessage = TEXT("Shader Loading..");
@@ -2858,25 +2867,25 @@ HRESULT CLoader::Loading_For_MapViewer()
// return E_FAIL;
//}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
// return E_FAIL;
//}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
// return E_FAIL;
//}
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
return E_FAIL;
//if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
// return E_FAIL;
/* For.Prototype_GameObject_Player */
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
return E_FAIL;
///* For.Prototype_GameObject_Player */
//if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
// return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
// return E_FAIL;
//}
/* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
@@ -3490,7 +3499,7 @@ _bool bLoadHogsmeade = true;
}
#pragma region HOGWART
_bool bHogwartLoad = { false };
_bool bHogwartLoad = { true };
/* Hogwart LOD */
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
@@ -3833,7 +3842,7 @@ vector<future<void>> jobFutures;
_uint iLoadCount = 44;
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
_bool isLoad_Map = { true };
_bool isLoad_Map = { false };
if(isLoad_Map)
{
{ /* Terrain */
@@ -75,14 +75,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
#pragma region MONSTER
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_BattleAxe01.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
@@ -76,7 +76,7 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
/*if (FAILED(Load_LightObject("LightElement")))
return E_FAIL;*/
if (FAILED(Load_InteractObject("E_INTER_Barrel")))
/*if (FAILED(Load_InteractObject("E_INTER_Barrel")))
return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
return E_FAIL;
@@ -85,11 +85,11 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
return E_FAIL;
if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
return E_FAIL;
return E_FAIL;*/
#pragma region HOGSMEADE
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
return E_FAIL;
//if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
// return E_FAIL;
#pragma endregion
#pragma region DUNGEON
@@ -100,10 +100,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
#pragma endregion
#pragma region HOGWART
//if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
// return E_FAIL;
//if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
// return E_FAIL;
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
return E_FAIL;
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
return E_FAIL;
#pragma endregion
#pragma region Light
@@ -277,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
//Update_LightSpawer();
//Update_Decal();
//Update_RaceRing();
//Update_EditEffect();
Update_EditEffect();
//Update_Balloon();
Update_DummyNpc();
//Update_DummyNpc();
Update_Unified();
@@ -2766,7 +2766,7 @@ void CMapObject_Manager::Update_EditEffect()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEditEffect>(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_Effect_EDIT"), &PartsDesc, nullptr, &pEffect)))
return;
pEffect->Load("../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35",LEVEL::MAP);
pEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Bubble",LEVEL::MAP);
pEffect->Set_Visible(true);
}