diff --git a/Jusin154_Team3D/Client/Bin/AnimIndex.txt b/Jusin154_Team3D/Client/Bin/AnimIndex.txt new file mode 100644 index 000000000..19265b101 --- /dev/null +++ b/Jusin154_Team3D/Client/Bin/AnimIndex.txt @@ -0,0 +1,157 @@ +0 Drgn_Cnjrd_Atk_Fire_01_anm +1 Drgn_Cnjrd_Atk_Fire_02_anm +2 Drgn_Cnjrd_Atk_Ground_FireBall_anm +3 Drgn_Cnjrd_Atk_GroundSwipeL_anm +4 Drgn_Cnjrd_Atk_GroundSwipeR_anm +5 Drgn_Cnjrd_Cmbt_Atk_Fireball_Taunt_anm +6 Drgn_Cnjrd_Cmbt_Atk_GroundBreath_anm +7 Drgn_Cnjrd_Cmbt_Atk_GroundStraight_anm +8 Drgn_Cnjrd_Cmbt_Recenter_anm +9 Drgn_Cnjrd_FireBreath_Breath_anm +10 Drgn_Cnjrd_FireBreath_CoolDown_anm +11 Drgn_Cnjrd_FireBreath_WindUp_anm +12 Drgn_Cnjrd_FireBurst_Recovery_anm +13 Drgn_Cnjrd_FireBurst_Reel_anm +14 Drgn_Cnjrd_FireBurstGround_Reel_anm +15 Drgn_Cnjrd_FireSweep_Breath_anm +16 Drgn_Cnjrd_FireSweep_CoolDown_anm +17 Drgn_Cnjrd_FireSweep_WindUp_anm +18 Drgn_Cnjrd_Flap_anm +19 Drgn_Cnjrd_Fly_Glide_Loop_anm +20 Drgn_Cnjrd_Fly_To_Hover_anm +21 Drgn_Cnjrd_Fly_Tucked_Loop_anm +22 Drgn_Cnjrd_Hit_Small_anm +23 Drgn_Cnjrd_Hover_Dash_Bwd_anm +24 Drgn_Cnjrd_Hover_Dash_Fwd_anm +25 Drgn_Cnjrd_Hover_Dash_Lft_anm +26 Drgn_Cnjrd_Hover_Dash_Rht_anm +27 Drgn_Cnjrd_Hover_Idle_Break_01_anm +28 Drgn_Cnjrd_Hover_Idle_Break_02_anm +29 Drgn_Cnjrd_Hover_Loop_anm +30 Drgn_Cnjrd_Hover_LoopBackward_anm +31 Drgn_Cnjrd_Hover_To_Glide_anm +32 Drgn_Cnjrd_Landing_To_Cmbt_anm +33 Drgn_Cnjrd_Pulse_anm +34 Drgn_Cnjrd_Rct_Death_anm +35 Drgn_Cnjrd_Rct_GroundLarge_anm +36 Drgn_Cnjrd_Rct_GroundSmall_anm +37 Drgn_Cnjrd_Rct_Large_anm +38 Drgn_Cnjrd_Rct_Med_anm +39 Drgn_Cnjrd_Taunt_End_anm +40 Drgn_Cnjrd_Taunt_Loop_anm +41 Drgn_Cnjrd_Taunt_Start_anm +42 Drgn_Arena_A1_anm +43 Drgn_Arena_A2_anm +44 Drgn_Arena_Intro_A1_anm +45 Drgn_Arena_Intro_A2_anm +46 Drgn_BM_Caged_IdleAngry_v01_anm +47 Drgn_BM_Fly_Glide_Grab_anm +48 Drgn_BM_Fly_Glide_Loop_anm +49 Drgn_BM_Fly_Glide_Outof_anm +50 Drgn_BM_Fly_Loop_anm +51 Drgn_BM_Sleeping_To_Standing_anm +52 Drgn_BM_Standing_Idle_anm +53 Drgn_BM_Standing_IdleBreak_01_anm +54 Drgn_BM_Standing_To_Cmbt_180L_anm +55 Drgn_BM_Standing_To_Cmbt_180R_anm +56 Drgn_BM_Standing_To_Cmbt_90L_anm +57 Drgn_BM_Standing_To_Cmbt_90R_anm +58 Drgn_BM_Standing_To_Cmbt_anm +59 Drgn_BM_Standing_To_Walk_180L_anm +60 Drgn_BM_Standing_To_Walk_180R_anm +61 Drgn_BM_Standing_To_Walk_90L_anm +62 Drgn_BM_Standing_To_Walk_90R_anm +63 Drgn_BM_Standing_To_Walk_anm +64 Drgn_BM_Walk_180L_anm +65 Drgn_BM_Walk_180R_anm +66 Drgn_BM_Walk_90L_anm +67 Drgn_BM_Walk_90R_anm +68 Drgn_BM_Walk_anm +69 Drgn_BM_Walk_To_Standing_anm +70 Drgn_CIV_Arena_01_A2_anm +71 Drgn_CIV_Arena_02_A01_anm +72 Drgn_CIV_Arena_02_A02_anm +73 Drgn_CIV_Arena_03_A1_anm +74 Drgn_CIV_Arena_03_A2_anm +75 Drgn_CIV_Arena_03b_A1_anm +76 Drgn_CIV_Arena_03b_A2_anm +77 Drgn_Cmbt_Atk_3FireBall_anm +78 Drgn_Cmbt_Atk_Bite_anm +79 Drgn_Cmbt_Atk_Fire_Hover_anm +80 Drgn_Cmbt_Atk_Fire_Hover_Ball_anm +81 Drgn_Cmbt_Atk_Fire_Hover_Ball_Single_anm +82 Drgn_Cmbt_Atk_Fire_Long_01_Loop_anm +83 Drgn_Cmbt_Atk_Fire_Long_01_Start_anm +84 Drgn_Cmbt_Atk_Fire_Long_01_Stop_anm +85 Drgn_Cmbt_Atk_Fire_Short_L2R_anm +86 Drgn_Cmbt_Atk_Fire_Short_R2L_anm +87 Drgn_Cmbt_Atk_FireBall_End_anm +88 Drgn_Cmbt_Atk_FireBall_Small_Loop_anm +89 Drgn_Cmbt_Atk_FireBall_Start_anm +90 Drgn_Cmbt_Atk_Tail_360_Rht_anm +91 Drgn_Cmbt_Charge_anm +92 Drgn_Cmbt_Charge_To_Cmbt_anm +93 Drgn_Cmbt_Hop_Bwd_anm +94 Drgn_Cmbt_Hop_Fwd_anm +95 Drgn_Cmbt_Hop_Lft_anm +96 Drgn_Cmbt_Hop_Rht_anm +97 Drgn_Cmbt_Hover_Land_anm +98 Drgn_Cmbt_Hover_Loop_anm +99 Drgn_Cmbt_Hover_Start_anm +100 Drgn_Cmbt_Idle_01_anm +101 Drgn_Cmbt_Idle_02_anm +102 Drgn_Cmbt_Idle_03_anm +103 Drgn_Cmbt_Idle_04_anm +104 Drgn_Cmbt_IdleBreak_03_anm +105 Drgn_Cmbt_IdleBreak_04_anm +106 Drgn_Cmbt_Jump_Fwd_Land_anm +107 Drgn_Cmbt_Jump_Fwd_Loop_anm +108 Drgn_Cmbt_Jump_Fwd_Start_anm +109 Drgn_Cmbt_Jump_InPlace_anm +110 Drgn_Cmbt_Perch_Enter_01_anm +111 Drgn_Cmbt_Perch_Exit_01_anm +112 Drgn_Cmbt_Step_Bwd_anm +113 Drgn_Cmbt_Step_Fwd_anm +114 Drgn_Cmbt_Step_Lft_anm +115 Drgn_Cmbt_Step_Rht_anm +116 Drgn_Cmbt_Taunt_01_anm +117 Drgn_Cmbt_Taunt_02_anm +118 Drgn_Cmbt_Taunt_04_anm +119 Drgn_Cmbt_To_Charge_anm +120 Drgn_Cmbt_TurnInPlace_180L_anm +121 Drgn_Cmbt_TurnInPlace_180R_anm +122 Drgn_Cmbt_TurnInPlace_45L_anm +123 Drgn_Cmbt_TurnInPlace_45R_anm +124 Drgn_Cmbt_TurnInPlace_90L_anm +125 Drgn_Cmbt_TurnInPlace_90R_anm +126 Drgn_Rct_Death_02_anm +127 Drgn_Rct_Death_anm +128 Drgn_Rct_Death_Pose_anm +129 Drgn_Rct_Hitch_Bwd_ADD_anm +130 Drgn_Rct_Hitch_Bwd_anm +131 Drgn_Rct_Hitch_Fwd_ADD_anm +132 Drgn_Rct_Hitch_Lft_ADD_anm +133 Drgn_Rct_Hitch_Rht_ADD_anm +134 Drgn_Rct_Mandrake_End_anm +135 Drgn_Rct_Mandrake_Loop_anm +136 Drgn_Rct_Mandrake_Start_anm +137 Drgn_Rct_Stumble_Bwd_anm +138 Drgn_Rct_Stumble_Fwd_anm +139 Drgn_Rct_Stumble_Lft_anm +140 Drgn_Rct_Stumble_Rht_anm +141 Drgn_Torture_Restrained_Accio_Release_anm +142 Drgn_Torture_Restrained_Pain_A_anm +143 Drgn_Torture_Restrained_Pain_B_anm +144 Drgn_Torture_Restrained_Struggle_A_anm +145 Drgn_Torture_Restrained_Struggle_B_anm +146 Drgn_Torture_Restrained_To_Unrestrained_anm +147 Drgn_Torture_Restrained_To_Unrestrained_Bite_Down_anm +148 Drgn_Torture_Unrestrained_Bite_Down_Center_anm +149 Drgn_Torture_Unrestrained_Bite_Down_Left_anm +150 Drgn_Torture_Unrestrained_Bite_Down_Right_anm +151 Drgn_Torture_Unrestrained_Breakout_FlyAway_anm +152 Drgn_Torture_Unrestrained_Fire_Sweep_Left_anm +153 Drgn_Torture_Unrestrained_Fire_Sweep_Right_anm +154 Drgn_Torture_Unrestrained_Idle_A_anm +155 Drgn_Torture_Unrestrained_Idle_B_anm +156 Drgn_Torture_Unrestrained_Idle_C_anm diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index 75797926c..377b55015 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -164,10 +164,14 @@ call Update_Resources.bat + + + + @@ -348,6 +352,7 @@ call Update_Resources.bat + @@ -482,10 +487,15 @@ call Update_Resources.bat + + + + + @@ -671,6 +681,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 9829b8e17..c858204f5 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -955,9 +955,6 @@ 04.Mechanic\State\Focus\Spell_Learning - - 02.GameObjects\Environment\Prop\SkyBox\TriggerBox - 02.GameObjects\Effect\Effects\Potion\PotionScreen @@ -976,7 +973,24 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit - + + 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Fire + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Smoke + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Shout + + + 04.Mechanic\20.TriggerBox + @@ -2010,6 +2024,24 @@ {2561df42-3dfa-4045-a30c-85f44cd65e09} + + {b31f467c-d66f-4da4-bddb-a55ec8f2bcbb} + + + {9db6926a-d4a6-4ed3-a5d8-67aaf5cbdb5c} + + + {a3530fbc-6ba9-433d-9d8d-0090bf8b3367} + + + {79c6e3f5-c4f3-4e81-8444-f3b7a2f9287d} + + + {6997eb06-b74d-42e1-b68a-5072f677fefd} + + + {abf505b2-d91f-4ab1-ad69-ff571a74c035} + @@ -2904,7 +2936,27 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit - + + 04.Mechanic\20.TriggerBox + + + 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether + + + 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Fire + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Smoke + + + 02.GameObjects\Effect\CutSceneEffect\CutScene_Shout + @@ -2919,7 +2971,6 @@ 04.Mechanic\State\State_Combat\State_Parry - 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp index 834213de4..f633a9dff 100644 --- a/Jusin154_Team3D/Client/Private/Accio.cpp +++ b/Jusin154_Team3D/Client/Private/Accio.cpp @@ -289,6 +289,9 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc) { if (m_bHit == false) return; + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT); + + m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_7, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); dynamic_cast(m_pOwner)->Set_SpellHit(true); diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index f0d558da7..606894aed 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -11,7 +11,7 @@ #include "InfoInstance.h" #include "InstancedProp.h" #include "EffectPool.h" - +#include "EffectParts.h" CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) { @@ -49,6 +49,10 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); + for (auto& RaceEnd : m_pRaceEndEffects) + { + RaceEnd->Priority_Update(fTimeDelta); + } switch (m_eRaceState) { case ENUM_CLASS(RACE_STATE::COUNTDOWN): @@ -89,6 +93,11 @@ void CBroomRaceManager::Update(_float fTimeDelta) { __super::Update(fTimeDelta); + for (auto& RaceEnd : m_pRaceEndEffects) + { + RaceEnd->Update(fTimeDelta); + } + if (m_bRaceReady == true) { m_fRedayTime += fTimeDelta; @@ -114,6 +123,19 @@ void CBroomRaceManager::Update(_float fTimeDelta) m_fRacingTimer = 0.f; if (m_bRaceStart == true) { + CTransform* pRingTransform = m_pRaceRings[m_pRaceRings.size() - 1]->Get_Component(); + for (auto& RaceEnd : m_pRaceEndEffects) + { + RaceEnd->Set_Visible(true); + + _vector LastRingPos = pRingTransform->Get_State(STATE::POSITION); + _vector ringRIght = pRingTransform->Get_State(STATE::RIGHT); + ringRIght = XMVector3Normalize(ringRIght); + + _vector spawnPos = LastRingPos - ringRIght * 27.f; + + RaceEnd->Get_Component()->Set_WorldMatrix(XMMatrixTranslationFromVector(spawnPos)); + } m_pInfoInstance->Event_CallBack(TEXT("RaceEnd")); m_iCount = 3; m_bRaceStart = false; @@ -138,6 +160,8 @@ void CBroomRaceManager::Update(_float fTimeDelta) m_bRaceEnd = false; m_fDelay = 0.f; m_bCurrentRace = false; + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT); + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_NORMAL, SD_CHANNEL_GROUP::EFFECT); } } } @@ -152,6 +176,10 @@ void CBroomRaceManager::Update(_float fTimeDelta) void CBroomRaceManager::Late_Update(_float fTimeDelta) { __super::Late_Update(fTimeDelta); + for (auto& RaceEnd : m_pRaceEndEffects) + { + RaceEnd->Late_Update(fTimeDelta); + } } HRESULT CBroomRaceManager::Render() @@ -171,6 +199,39 @@ HRESULT CBroomRaceManager::Ready_Components() return E_FAIL; } + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + { + _string BasePath = "../Bin/Resources/Data/Effect/BroomRace/"; + + array<_string, 3> Colors = + { + "Firewark_Blue", + "Firewark_Red", + "Firewark_Yellow" + }; + + for (_uint i = 0; i < m_pRaceEndEffects.size(); ++i) + { + _string EffectFinal = BasePath + Colors[i]; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer( + g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECT, &PartsDesc, this, &m_pRaceEndEffects[i]))) + { + return E_FAIL; + } + + SAFE_ADDREF(m_pRaceEndEffects[i]); + m_pRaceEndEffects[i]->Load(EffectFinal.c_str(), static_cast(g_iStaticLevel)); + m_pRaceEndEffects[i]->Set_Visible(false); + } + } + + return S_OK; } @@ -218,6 +279,11 @@ void CBroomRaceManager::Free() SAFE_RELEASE(Ring); } m_pRaceRings.clear(); + + for (auto& RaceEndEffects : m_pRaceEndEffects) + { + SAFE_RELEASE(RaceEndEffects); + } } #ifdef _DEBUG @@ -313,6 +379,8 @@ void CBroomRaceManager::Check_RingPassed() { racer.curRing = (_uint)m_pRaceRings.size(); + + if (racer.pAI) { racer.pAI->Get_Broom()->Set_Hover(true); racer.pAI->Get_Broom()->Set_Move(false); @@ -323,11 +391,15 @@ void CBroomRaceManager::Check_RingPassed() racer.pRacer->Get_Broom()->Set_Move(false); } + + XMStoreFloat4(&racer.prevPos, currPos); continue; } racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer); + + } } @@ -402,15 +474,12 @@ void CBroomRaceManager::RaceReady() if (racer.pAI) { CTransform* pTransform = - racer.pAI->Get_Broom()->Get_Component(); - - const _float fSpacing = 3.0f; - const _float fJitter = 0.5f; + racer.pAI->Get_Broom()->Get_Component(); _float lane = (_float)i - (_float)(m_Racers.size() - 1) * 0.5f; - _float side = lane * fSpacing; + _float side = lane * 3.0f; - side += m_pGameInstance->Real_Random_Float(-fJitter, fJitter); + side += m_pGameInstance->Real_Random_Float(-0.5f, 0.5f); _vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * side; @@ -423,8 +492,7 @@ void CBroomRaceManager::RaceReady() } else if (racer.pRacer) { - CTransform* pTransform = - racer.pRacer->Get_Component(); + CTransform* pTransform = racer.pRacer->Get_Component(); CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); XMStoreFloat4(&m_OriginPos, XMVectorSet(-552.794f, -27.676f, -396.840f, 1.f)); pCharacter->Set_Position(spawnPos); @@ -432,6 +500,7 @@ void CBroomRaceManager::RaceReady() pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); racer.pRacer->Get_Broom()->Set_Ride(true); racer.pRacer->Get_Broom()->Set_Move(false); + m_pRaceRings[racer.curRing]->Set_Target(true);; } } @@ -457,9 +526,15 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer) { if (racer.pRacer == pRacer) { + + m_pRaceRings[racer.curRing-1]->Set_Target(false); + racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]); m_pInfoInstance->Event_CallBack(TEXT("CurrentRing")); m_iLastRing++; + + m_pRaceRings[racer.curRing]->Set_Target(true); + } } diff --git a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp index 846adfb5c..39a76043e 100644 --- a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp +++ b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp @@ -56,6 +56,7 @@ void CCallBack_Troll_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) _uint iAnimIndex = pModel->Get_AnimIndex(); if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) { CFSM* pFSM = pOwner->Get_Component(); + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_83, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); pFSM->Change_State(FSMSTATE::STUN); /**/ @@ -150,6 +151,7 @@ void CCallBack_Troll_HitReport::onControllerHit(const PSX::PxControllersHit& hit if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) { if (false == *m_pCollisionPlayer) { *m_pCollisionPlayer = true; + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_83, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); pTargetActorData->pCharacter->Get_Owner()->OnCollision(pOwner,&tagCollInfo); } } diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index a16c9ed45..6672b9a01 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -354,23 +354,20 @@ void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex) _vector CCamPosition_Shoulder::Get_ShoulderGlobalPos() { // Right/Left 숄더를 로컬 X 부호로 결정 - _float shoulderSideSign = (true == m_bRightShoulderActive) ? 1.f : -1.f; + _float fShoulderSide = (true == m_bRightShoulderActive) ? 1.f : -1.f; - _float3 shoulderLocalPosition = m_vShoulderLocalPos; - shoulderLocalPosition.x *= shoulderSideSign; + _float3 vShoulderLocalPos = m_vShoulderLocalPos; + vShoulderLocalPos.x *= fShoulderSide; - _vector shoulderLocalOffset = XMLoadFloat3(&shoulderLocalPosition); + _vector vShoulderLocalOffset = XMLoadFloat3(&vShoulderLocalPos); // 카메라 회전(현재 마우스로 누적된 pitch/yaw) - _vector cameraRotationQuaternion = XMQuaternionRotationRollPitchYaw( + _vector vCameraRotQ = XMQuaternionRotationRollPitchYaw( XMConvertToRadians(m_vAccRotDegrees.x + m_vAccRealDegrees.x), XMConvertToRadians(m_vAccRotDegrees.y + m_vAccRealDegrees.y), 0.f ); - // 카메라 로컬 오프셋을 카메라 회전에 맞춰 월드로 회전 - _vector shoulderWorldOffset = XMVector3Rotate(shoulderLocalOffset, cameraRotationQuaternion); - - return shoulderWorldOffset; + return XMVector3Rotate(vShoulderLocalOffset, vCameraRotQ); } diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp index c42135acc..9203fcdb8 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp @@ -12,11 +12,15 @@ CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs void CCamera_Cinematic::Priority_Update(_float fTimeDelta) { + Update_CameraShake(fTimeDelta); if (false == m_bIsCurrentTransition) { m_pLookTargetPart->Priority_Update(fTimeDelta); m_pFollowTargetPart->Priority_Update(fTimeDelta); m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTargetPart->Get_WorldPostion()); m_pTransformCom->LookAt(m_pLookTargetPart->Get_WorldPostion()); + _vector vRPY = m_pTransformCom->Get_RollPitchYawVector(); + vRPY += XMLoadFloat2(&m_vAccRealRadians); + m_pTransformCom->Rotation(vRPY); } else { Transition(fTimeDelta); @@ -170,7 +174,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket) case TIMESOCKET_FUNC::ROTATION_LERP: { Clear_Lerp_Rotation(); - Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform); + Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform, pContents->vFlags.b[0]); } break; case TIMESOCKET_FUNC::LOOK_AT: { @@ -216,6 +220,10 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket) Start_Lerp_FovY(pContents->vParam_11.z, { pContents->vParam_11.x, pContents->vParam_11.y }); Set_Fov(XMConvertToRadians(pContents->vParam_11.x)); }break; + case TIMESOCKET_FUNC::SHAKE: + { + Start_CameraShake(pContents->vParam_11.x, pContents->vParam_11.y); + }break; case TIMESOCKET_FUNC::END_CINEMATIC: { m_pGameInstance->Bind_Camera(CURRENT_LEVEL, Socket.m_Contents.wstrKeyName, true); @@ -308,6 +316,32 @@ HRESULT CCamera_Cinematic::Bind_ShaderResources() return S_OK; } +void CCamera_Cinematic::Update_CameraShake(_float fTimeDelta) +{ + if (true == m_bCameraShake) { + m_vCameraShakeTimer.x += fTimeDelta; + if (m_vCameraShakeTimer.x > m_vCameraShakeTimer.y) { + m_vCameraShakeTimer.x = 0.f; + m_vAccRealRadians = { 0.f, 0.f }; + m_bCameraShake = false; + } + else { + _float fIntense = { 1.f - m_vCameraShakeTimer.x / m_vCameraShakeTimer.y }; + fIntense *= fIntense; + m_vAccRealRadians = _float2( + fIntense * m_pGameInstance->Real_Random_Float(-m_fCameraShakeIntense, m_fCameraShakeIntense), + fIntense * m_pGameInstance->Real_Random_Float(-m_fCameraShakeIntense, m_fCameraShakeIntense) + ); + } + } +} +void CCamera_Cinematic::Start_CameraShake(_float fTime, _float fIntense) +{ + m_bCameraShake = true; + m_vCameraShakeTimer.x = 0.f; + m_vCameraShakeTimer.y = fTime; + m_fCameraShakeIntense = XMConvertToRadians(fIntense); +} void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta) { if (true == m_bLerpTranslation) { @@ -352,24 +386,34 @@ void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta) Rotation(vRotQ); } } -void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform) +void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance) { _float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w }; - Start_Lerp_Rotation(fTimeMaximum, vRotQ); + Start_Lerp_Rotation(fTimeMaximum, vRotQ, bMainTainDistance); + } -void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ) +void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance) { m_bLerpRotiation = { fTimeMaximum != 0 }; m_vLerpRotiationTimer = { 0.f, fTimeMaximum }; XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector()); m_vLerpRotQEnd = vRotQ; + _vector vPos = m_pFollowTargetPart->Get_WorldPostion(); + _vector vLookPos = m_pLookTargetPart->Get_WorldPostion(); + + m_bMainTainDistance = bMainTainDistance; + if (m_bMainTainDistance) { + m_fMaintainingDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos)); + } } void CCamera_Cinematic::Clear_Lerp_Rotation() { m_bLerpRotiation = { false }; + m_bMainTainDistance = { false }; m_vLerpRotiationTimer = {}; m_vLerpRotQStart = {}; m_vLerpRotQEnd = {}; + m_fMaintainingDistance = {}; } void CCamera_Cinematic::Lerp_FovY(_float fTimeDelta) { @@ -427,6 +471,9 @@ void CCamera_Cinematic::Rotation(_fvector vRotQ) _vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ); if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임 + if (true == m_bLerpRotiation && true == m_bMainTainDistance) { + fDistance = m_fMaintainingDistance; + } m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f)); } else { diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp index 184c98758..07388152a 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -254,6 +254,10 @@ void CCamera_Gaze::Describe_Entity() m_iPriority = iPriority; } if (GUI::CollapsingHeader("Camera_Gaze_Describe")) { + _float fFovYDegree = XMConvertToDegrees(m_fFovy); + if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) { + m_fFovy = XMConvertToRadians(fFovYDegree); + } m_pTransformCom->Describe_Entity(); GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z); GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z); diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp index 1fecb9d22..f51a6c948 100644 --- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp +++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp @@ -17,6 +17,7 @@ CCutSceneInfo::CCutSceneInfo() } void CCutSceneInfo::Update(_float fTimeDelta) { + m_bIsActiveCutScene = false; if (m_pGameInstance->Key_Pressing(DIK_LCONTROL) && m_pGameInstance->Key_Pressing(DIK_RCONTROL) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)&& m_pGameInstance->Key_Pressing(DIK_RSHIFT) && m_pGameInstance->Key_Pressing(DIK_LALT) && m_pGameInstance->Key_Pressing(DIK_RALT)) { Set_AllActiveEventsExit(); } @@ -81,7 +82,11 @@ void CCutSceneInfo::Load_Events(pair<_string, TimeLine*>& pairTimeLine) void CCutSceneInfo::Update_ActiveEvents(_float fTimeDelta) { _float fRatio = 0.f; - for (map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); iter != m_funcActiveEvents.end();) { + map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); + if (iter != m_funcActiveEvents.end()) { + m_bIsActiveCutScene = true; + } + for (; iter != m_funcActiveEvents.end();) { list* pSockets = &iter->second->m_Sockets; iter->second->m_vTimer.x += fTimeDelta; fRatio = CMyTools::Saturate(iter->second->m_vTimer.x / iter->second->m_vTimer.y); @@ -115,6 +120,11 @@ void CCutSceneInfo::Update_ActiveEvents(_float fTimeDelta) iter++; } } + + iter = m_funcActiveEvents.begin(); + if (iter != m_funcActiveEvents.end()) { + m_bIsActiveCutScene = true; + } } void CCutSceneInfo::Update_WaitEvents(_float fTimeDelta) @@ -580,7 +590,7 @@ void CCutSceneInfo::Set_AllActiveEventsExit() { map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); for (; iter != m_funcActiveEvents.end();++iter) { - iter->second->m_vTimer.x = 1.f - FLT_EPSILON; + iter->second->m_vTimer.x = iter->second->m_vTimer.y - FLT_EPSILON; for (list::iterator socketIter = (*iter).second->m_Sockets.begin(); socketIter != (*iter).second->m_Sockets.end(); ++socketIter) { (*socketIter)->Trigger(1.f - FLT_EPSILON); diff --git a/Jusin154_Team3D/Client/Private/CutScene_Fire.cpp b/Jusin154_Team3D/Client/Private/CutScene_Fire.cpp new file mode 100644 index 000000000..615d3a547 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CutScene_Fire.cpp @@ -0,0 +1,158 @@ +#include "pch.h" +#include "CutScene_Fire.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" + +CCutScene_Fire::CCutScene_Fire(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CCutScene_Fire::CCutScene_Fire(const CCutScene_Fire& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CCutScene_Fire::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/CutSceneFire"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CCutScene_Fire::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"CutSceneFire"; + + + m_fDuration = 999.f; + return S_OK; +} + +void CCutScene_Fire::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CCutScene_Fire::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CCutScene_Fire::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CCutScene_Fire::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject))) + return E_FAIL; + + CEffectParts* pFire = Get_PartObject("Fire"); + + _float4* vPos = static_cast<_float4*>(pArg); + _vector vPosVector = XMLoadFloat4(vPos); + pFire->Set_Visible(true); + + + pFire->Get_Component()->Set_State(STATE::POSITION, vPosVector); + + return S_OK; +} + +HRESULT CCutScene_Fire::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCutScene_Fire::Ready_Child() +{ + return S_OK; +} + +CCutScene_Fire* CCutScene_Fire::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCutScene_Fire* pInstance = new CCutScene_Fire(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCutScene_Fire"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CCutScene_Fire::Clone(void* pArg, CGameObject* pOwner) +{ + CCutScene_Fire* pInstance = new CCutScene_Fire(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCutScene_Fire"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCutScene_Fire::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CCutScene_Fire::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG + +void CCutScene_Fire::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CCutScene_Fire::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/CutScene_Lightning.cpp b/Jusin154_Team3D/Client/Private/CutScene_Lightning.cpp new file mode 100644 index 000000000..0873bcc37 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CutScene_Lightning.cpp @@ -0,0 +1,161 @@ +#include "pch.h" +#include "CutScene_Lightning.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" + +CCutScene_Lightning::CCutScene_Lightning(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CCutScene_Lightning::CCutScene_Lightning(const CCutScene_Lightning& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CCutScene_Lightning::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/CutSceneLightning"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CCutScene_Lightning::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"CutScene_Lightning"; + + + m_fDuration = 3.f; + + return S_OK; +} + +void CCutScene_Lightning::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CCutScene_Lightning::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CCutScene_Lightning::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CCutScene_Lightning::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject))) + return E_FAIL; + + CEffectParts* pLightning = Get_PartObject("Lightning_1"); + CEffectParts* pScreenFlash = Get_PartObject("Screen_Flash"); + + _float4* vPos = static_cast<_float4*>(pArg); + _vector vPosVector = XMLoadFloat4(vPos); + pLightning->Set_Visible(true); + pScreenFlash->Set_Visible(true); + + + pLightning->Get_Component()->Set_State(STATE::POSITION, vPosVector); + + return S_OK; +} + +HRESULT CCutScene_Lightning::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCutScene_Lightning::Ready_Child() +{ + return S_OK; +} + +CCutScene_Lightning* CCutScene_Lightning::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCutScene_Lightning* pInstance = new CCutScene_Lightning(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCutScene_Lightning"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CCutScene_Lightning::Clone(void* pArg, CGameObject* pOwner) +{ + CCutScene_Lightning* pInstance = new CCutScene_Lightning(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCutScene_Lightning"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCutScene_Lightning::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CCutScene_Lightning::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG + +void CCutScene_Lightning::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CCutScene_Lightning::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/CutScene_Shout.cpp b/Jusin154_Team3D/Client/Private/CutScene_Shout.cpp new file mode 100644 index 000000000..e2a518baf --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CutScene_Shout.cpp @@ -0,0 +1,156 @@ +#include "pch.h" +#include "CutScene_Shout.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" + +CCutScene_Shout::CCutScene_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CCutScene_Shout::CCutScene_Shout(const CCutScene_Shout& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CCutScene_Shout::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Ranrok_Shout"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CCutScene_Shout::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_Shout"; + + + return S_OK; +} + +void CCutScene_Shout::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CCutScene_Shout::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CCutScene_Shout::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CCutScene_Shout::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject))) + return E_FAIL; + + CEffectParts* pShout = Get_PartObject("Shout"); + + _float4* vPos = static_cast<_float4*>(pArg); + _vector vPosVector = XMLoadFloat4(vPos); + pShout->Set_Visible(true); + + pShout->Get_Component()->Set_State(STATE::POSITION, vPosVector); + + return S_OK; +} + +HRESULT CCutScene_Shout::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCutScene_Shout::Ready_Child() +{ + return S_OK; +} + +CCutScene_Shout* CCutScene_Shout::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCutScene_Shout* pInstance = new CCutScene_Shout(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCutScene_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CCutScene_Shout::Clone(void* pArg, CGameObject* pOwner) +{ + CCutScene_Shout* pInstance = new CCutScene_Shout(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCutScene_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCutScene_Shout::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CCutScene_Shout::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG + +void CCutScene_Shout::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CCutScene_Shout::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/CutScene_Smoke.cpp b/Jusin154_Team3D/Client/Private/CutScene_Smoke.cpp new file mode 100644 index 000000000..52dd516cf --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CutScene_Smoke.cpp @@ -0,0 +1,158 @@ +#include "pch.h" +#include "CutScene_Smoke.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" + +CCutScene_Smoke::CCutScene_Smoke(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CCutScene_Smoke::CCutScene_Smoke(const CCutScene_Smoke& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CCutScene_Smoke::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/CutSceneSmoke"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CCutScene_Smoke::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"CutSceneSmoke"; + + m_fDuration = 999.f; + return S_OK; +} + +void CCutScene_Smoke::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CCutScene_Smoke::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CCutScene_Smoke::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CCutScene_Smoke::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject))) + return E_FAIL; + + CEffectParts* pSmoke = Get_PartObject("Smoke"); + + _float4* vPos = static_cast<_float4*>(pArg); + _vector vPosVector = XMLoadFloat4(vPos); + + pSmoke->Set_Visible(true); + + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPosVector); + + return S_OK; +} + +HRESULT CCutScene_Smoke::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCutScene_Smoke::Ready_Child() +{ + return S_OK; +} + +CCutScene_Smoke* CCutScene_Smoke::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCutScene_Smoke* pInstance = new CCutScene_Smoke(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCutScene_Smoke"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CCutScene_Smoke::Clone(void* pArg, CGameObject* pOwner) +{ + CCutScene_Smoke* pInstance = new CCutScene_Smoke(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCutScene_Smoke"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCutScene_Smoke::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CCutScene_Smoke::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG + +void CCutScene_Smoke::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CCutScene_Smoke::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp index aeb9c6fb6..4030d74ac 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp @@ -67,6 +67,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath) if (choiceText) choice.pText = CMyTools::ToWstring(choiceText); pChoice->QueryIntAttribute("NextID", &choice.NextTypeID); + pChoice->QueryIntAttribute("QuestID", &choice.QuestID); line.ChoiceInfo.push_back(choice); pChoice = pChoice->NextSiblingElement("Choice"); diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp index bcc8a1299..46942e414 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp @@ -69,12 +69,15 @@ void CDialogue_Font::Update(_float fTimeDelta) case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT): ENDText(); break; + case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): NextText(); break; + case ENUM_CLASS(NPCTEXTTYPE::CHOICE): CHoice(); break; + case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT): break; @@ -88,14 +91,15 @@ void CDialogue_Font::Update(_float fTimeDelta) case ENUM_CLASS(NPCTEXTTYPE::BROOM): m_bRace = true; m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace); - ReSet(); + ENDText(); break; case ENUM_CLASS(NPCTEXTTYPE::BATTLE): m_bBattle = true; m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle); - ReSet(); + ENDText(); break; + default: break; } @@ -110,7 +114,7 @@ void CDialogue_Font::Update(_float fTimeDelta) { case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT): m_fTime = 0.5f; - ReSet(); + ENDText(); break; case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): m_fTime = 0.5f; @@ -333,22 +337,50 @@ void CDialogue_Font::SpellLearn() void CDialogue_Font::Quest() { - m_pInfoInstance->Set_AcceptQuest(m_iNextID); - _bool Interact = false; - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); - m_pCurrentDialogue[0]->Set_Hover(Interact); - m_pCurrentDialogue[0]->Visible(Interact); - m_DialoguInfo.push_back(m_pCurrentDialogue[0]); - m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); - if (m_bChoiceText == true) + _int Index = m_pInfoInstance->Set_AcceptQuest(m_iQuestID); + NPCINTERACT Interact{}; + + switch (Index) { - m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); - ReSet(); + case 0: + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + if (m_bChoiceText == true) + { + m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); + ReSet(); + } + break; + + case 1: + NextText(999); + break; + + case 2: + Quest_Complete(); + break; + + default: + break; } + } -void CDialogue_Font::ReSet() +void CDialogue_Font::ENDText() { + NPCINTERACT Interact{}; + Interact.bInteract = false; + Interact.fAlpha = 0.5f; + m_pNpc->Set_NextID(m_iNextID); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact.bInteract); m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); m_bChoiceText = false; m_bCurrentChoiceText = false; @@ -363,10 +395,67 @@ void CDialogue_Font::ReSet() m_DialoguInfo.push_back((*it)); it = m_pCurrentDialogue.erase(it); } - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bChoiceText); + //if (m_iTextID < m_iNextID) + m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha); +} + +void CDialogue_Font::ReSet() +{ + NPCINTERACT Interact{}; + Interact.bInteract = false; + Interact.fAlpha = 0.5f; + m_pNpc->Set_NextID(m_iTextID); + m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact.bInteract); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + m_bChoiceText = false; + m_bCurrentChoiceText = false; + m_bRace = false; + m_bBattle = false; + vector<_int> Dummy; + m_NextLevel.swap(Dummy); + for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();) + { + (*it)->Set_Hover(false); + (*it)->Visible(false); + m_DialoguInfo.push_back((*it)); + it = m_pCurrentDialogue.erase(it); + } +} + +void CDialogue_Font::Quest_Complete() +{ + NpcNextText(); + ENDText(); } void CDialogue_Font::NextText() +{ + m_pCurrentDialogue[0]->Visible(false); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + NpcDialogue(); +} + +void CDialogue_Font::NextLevel(CHOICEINFO Choice) +{ + m_iNextID = m_NextLevel[Choice.iChoice]; + m_iType = Choice.iType; + m_iQuestID = Choice.QuestID; + m_bChoiceText = true; + NpcNextText(); + + if (m_iType == ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT)) + ReSet(); + else + ENDText(); +} + +void CDialogue_Font::NextText(_int Index) { m_pCurrentDialogue[0]->Visible(false); m_DialoguInfo.push_back(m_pCurrentDialogue[0]); @@ -375,29 +464,28 @@ void CDialogue_Font::NextText() { ReSet(); } - NpcDialogue(); + NpcDialogue(Index); } -void CDialogue_Font::NextLevel(CHOICEINFO Choice) +void CDialogue_Font::NpcDialogue(_int Index) { - m_iNextID = m_NextLevel[Choice.iChoice]; - m_iType = Choice.iType; - m_bChoiceText = true; - m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1); - NpcNextText(); -} - -void CDialogue_Font::ENDText() -{ - _bool Interact = false; - m_pNpc->Set_NextID(m_iTextID); - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); - m_pCurrentDialogue[0]->Set_Hover(Interact); - m_pCurrentDialogue[0]->Visible(Interact); - m_DialoguInfo.push_back(m_pCurrentDialogue[0]); - m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); - m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); - ReSet(); + auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, Index); + m_bTag = Info.bTag; + if (m_bTag == false) + { + m_Info.pName = m_pInfoInstance->Get_PlayerStatPtr()->Get_Stat().pUnit_Name; + } + else + { + m_Info.pName = m_pName; + } + m_Info.pText = Info.pText; + m_Info.fTime = 99999.f; + m_iType = Info.iType; + m_iNextID = Info.NextTextID; + m_iTextID = Info.iLineID; + m_pNpc->Set_NextID(m_iNextID); + Npc_Dialogue(m_Info); } CDialogue_Font* CDialogue_Font::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index dc6df249b..891429d46 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -78,6 +78,12 @@ #include "Ranrok_DeadImpact.h" #include "Ranrok_Prop.h" + +#include "CutScene_Fire.h" +#include "CutScene_Lightning.h" +#include "CutScene_Shout.h" +#include "CutScene_Smoke.h" + CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) { @@ -121,7 +127,7 @@ HRESULT CEffectPool::Initialize(void* pArg) #endif // #ifdef 기무리 m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = false; + m_isActiveMonsterEffectCreate = true; #endif // #ifdef 나 m_isActiveEffectCreate = true; @@ -564,6 +570,45 @@ HRESULT CEffectPool::Ready_Effect() ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_FIRE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CCutScene_Fire* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_LIGHTNING, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CCutScene_Lightning* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_SHOUT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CCutScene_Shout* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_SMOKE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CCutScene_Smoke* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp index b6ee97c6b..0a4585677 100644 --- a/Jusin154_Team3D/Client/Private/Elf.cpp +++ b/Jusin154_Team3D/Client/Private/Elf.cpp @@ -71,11 +71,23 @@ void CElf::Update(_float fTimeDelta) Set_Anim(); - if (m_pGameInstance->Key_Up(DIK_U)) + if (m_pGameInstance->Key_Down(DIK_U)) { m_iCurrentFlow++; } + if (m_bFlow == true) + { + m_fFlowTime -= fTimeDelta; + } + + if (m_fFlowTime <= 0.f && m_bFlow == true) + { + m_bFlow = false; + m_fFlowTime = 0.f; + m_iCurrentFlow = m_iFlowIndex; + } + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); @@ -227,9 +239,11 @@ void CElf::Set_Target(CUnit& pTarget, CTransform& pTransform) m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir)); } -void CElf::Set_Flow(_int Index) +void CElf::Set_Flow(_int Index, _float fTime) { - m_iCurrentFlow = Index; + m_iFlowIndex = Index; + m_fFlowTime = fTime; + m_bFlow = true; } _int CElf::Get_Flow() @@ -472,14 +486,14 @@ HRESULT CElf::Ready_Components(void* pArg) Desc.eBodyType = ACTOR::CAPSULE; Desc.fContactOffset = 0.0001f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; - Desc.bAutoStepping = { true }; - Desc.fStepOffset = { 0.08f }; - Desc.fRadius = 0.2f; - Desc.fHeight = 0.3f; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.02f }; + Desc.fRadius = 0.225f; + Desc.fHeight = 0.35f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create(); Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create(); Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; - Desc.fWalkableSlope = 45.f; + Desc.fWalkableSlope = 80.f; if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index 9c6cf2014..d4727e9a9 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -178,10 +178,10 @@ HRESULT CGoblin_Assassin::Render() { RENDER ePass = m_pGameInstance->Get_CurrentRenderPass(); - - if (m_bMotionTrail) + if (ePass == RENDER::BLEND) { - if (ePass == RENDER::BLEND) + if (m_bMotionTrail) + { if (FAILED(Bind_ShaderResources())) { return E_FAIL; @@ -192,9 +192,12 @@ HRESULT CGoblin_Assassin::Render() return E_FAIL; } - return S_OK; } + + return S_OK; } + + diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp index fbdc51268..3b93d4721 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp @@ -609,6 +609,19 @@ HRESULT CGoblin_Assassin::Behavior_HitExitCheck(_float fTimeDelta) if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_14, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 1: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 2: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_20, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + } CameraShake(10.f, 1.f, 2.f, 0.3f); m_bCameraShake = false; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp index dfbb8f51c..4f61c00f6 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp @@ -486,6 +486,19 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_14, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 1: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 2: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_20, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + } CameraShake(10.f, 1.f, 2.f, 0.3f); m_bCameraShake = false; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp index 870f452ec..cf2501ca4 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp @@ -575,6 +575,19 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta) if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_14, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 1: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 2: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_20, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + } CameraShake(10.f, 1.f, 2.f, 0.3f); m_bCameraShake = false; } diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 6533fc22f..f2984ba48 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -541,9 +541,21 @@ void CHuman_Duelist::Check_BattleLose() { if (true == m_pCharacter_Controller->IsOnGround()) { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_14, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 1: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 2: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_20, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + } m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this); m_bBattle = false; - m_bBattleEnd = true; } } diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp index 81c84552b..231a594f8 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -350,6 +350,19 @@ HRESULT CHuman_Duelist::Behavior_HitExitCheck(_float fTimeDelta) iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first) { if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_14, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 1: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + case 2: + m_pGameInstance->Sound_Play(SOUND::SD_KIND::TROLL_20, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + break; + } CameraShake(10.f, 1.f, 2.f, 0.3f); m_bCameraShake = false; } diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index b7b5f8e0b..eab3a560f 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -118,6 +118,11 @@ void CInfoInstance::Get_LockOnInfo(LOCKON_INFO& Info) Info.pEffect = m_pEffectInfo->Get_LockOnEffect(); } +void CInfoInstance::Get_LockOnInfoOnlyUnit(CUnit* pUnit) +{ + pUnit = m_pMonsterInfo->Get_LockOnUnit(); +} + void CInfoInstance::Set_SearchLockOnFlag(_bool bLockOn) { m_bSearchLockOnTarget = bLockOn; @@ -344,6 +349,11 @@ _int CInfoInstance::Get_SpellLearnIndex() return m_pSpellLearn_Data->Get_Index(); } +void CInfoInstance::Spell_UnLock(_int SpellID) +{ + m_pSkillInfo->Spell_UnLock(SpellID); +} + //void CInfoInstance::Set_Font(void* pArg) //{ // m_pDialogue_Font->Add_Text(pArg); @@ -415,6 +425,11 @@ void CInfoInstance::Load_Events(pair<_string, TimeLine*>& pairTimeLine) m_pCutSceneInfo->Load_Events(pairTimeLine); } +_bool CInfoInstance::IsActiveCutScene() +{ + return m_pCutSceneInfo->IsActiveCutScene(); +} + #pragma endregion LEVEL CInfoInstance::Get_RestartLevel() { diff --git a/Jusin154_Team3D/Client/Private/InstancedProp.cpp b/Jusin154_Team3D/Client/Private/InstancedProp.cpp index 1d7d39eb3..ae093962e 100644 --- a/Jusin154_Team3D/Client/Private/InstancedProp.cpp +++ b/Jusin154_Team3D/Client/Private/InstancedProp.cpp @@ -27,10 +27,10 @@ void CInstancedProp::Late_Update(_float fTimeDelta) } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef Bin - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); -#endif // Bin +//#ifdef Bin +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +//#endif // Bin } HRESULT CInstancedProp::Render() diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp index 7bbf48841..32b5f7e63 100644 --- a/Jusin154_Team3D/Client/Private/Land.cpp +++ b/Jusin154_Team3D/Client/Private/Land.cpp @@ -32,10 +32,10 @@ void CLand::Late_Update(_float fTimeDelta) if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis)) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef Bin - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); -#endif // Bin +//#ifdef Bin +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +//#endif // Bin for (auto& pInstanceProp : m_InstanceProps){ pInstanceProp->Late_Update(fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index c50ebb648..071be2213 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -21,7 +21,6 @@ #include "ReparoObject.h" #include "ThestralCarriage.h" #include "Camera_Cinematic.h" - #pragma region ACTOR #include "Player.h" #include "Human_Duelist.h" @@ -126,7 +125,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) _bool bLoadNPC = { true }; #ifdef _DEBUG #ifdef 기무리 - bLoadNPC = true; + bLoadNPC = false; #endif #endif // _DEBUG if (true == bLoadNPC) { @@ -177,6 +176,8 @@ void CLevel_GamePlay::Update(_float fTimeDelta) bStartCinematic = false; #elif gimch bStartCinematic = false; +#elif 나 + bStartCinematic = false; #endif #endif // _DEBUG @@ -363,9 +364,9 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Hogwart = false; #endif // #ifdef 기무리 - isReady_Background = true; - isReady_Hogsmeade = true; - isReady_Hogwart = true; + isReady_Background = false; + isReady_Hogsmeade = false; + isReady_Hogwart = false; #endif // #ifdef 나 isReady_Background = false; @@ -1158,8 +1159,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() isLoad_NPC = false; #endif // #ifdef 기무리 - isLoad_NPC = true; - isLoad_RandomNPC = true; + isLoad_NPC = false; + isLoad_RandomNPC = false; #endif // #ifdef 나 isLoad_RandomNPC = true; diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index 639653c91..d1a866af9 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -160,7 +160,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } } - m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LEVIOSO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 59e8c346e..4323d8c1e 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -257,6 +257,11 @@ #include "LightningSide.h" #include "Transformation.h" +#include "CutScene_Fire.h" +#include "CutScene_Lightning.h" +#include "CutScene_Shout.h" +#include "CutScene_Smoke.h" + #pragma endregion #pragma region MAP @@ -296,7 +301,6 @@ CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) SAFE_ADDREF(m_pDevice); SAFE_ADDREF(m_pContext); } - unsigned int APIENTRY LoadingMain(void* pArg) { CLoader* pLoader = static_cast(pArg); @@ -309,7 +313,6 @@ unsigned int APIENTRY LoadingMain(void* pArg) return 0; } - HRESULT CLoader::Initialize(LEVEL eNextLevelID) { m_eNextLevelID = eNextLevelID; @@ -318,7 +321,6 @@ HRESULT CLoader::Initialize(LEVEL eNextLevelID) return S_OK; } - HRESULT CLoader::Loading() { @@ -354,12 +356,10 @@ HRESULT CLoader::Loading() return S_OK; } - void CLoader::Output() { SetWindowText(g_hWnd, m_strMessage.c_str()); } - HRESULT CLoader::Loading_For_Logo() { m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); @@ -455,6 +455,12 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_RANROK_ETHER, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"), + VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { + return E_FAIL; + } + #endif // 기무리 #if 진우 @@ -492,6 +498,9 @@ HRESULT CLoader::Loading_For_Logo() jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, FX_VTXPOS, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_RANROK_ETHER, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); } for (auto& JobMapShader : jobMapShaders) @@ -563,10 +572,10 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_UI_SEQUANTIAL = false; #endif // #ifdef 기무리 - isLoad_Background = true; - isLoad_Hogwart = true; - isLoad_UI_SEQUANTIAL = true; - isLoad_NPC = true; + isLoad_Background = false; + isLoad_Hogwart = false; + isLoad_UI_SEQUANTIAL = false; + isLoad_NPC = false; isLoad_Monster = true; #endif // #ifdef 나 @@ -1343,7 +1352,7 @@ HRESULT CLoader::Loading_For_GamePlay() TEXT("Prototype_Component_Troll_Model") )); jobCharacterModels.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin",XMMatrixScaling(0.01f,0.01f,0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Ranrok_Model") )); } @@ -1470,6 +1479,9 @@ HRESULT CLoader::Loading_For_GamePlay() jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, FX_VTXPOS, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_RANROK_ETHER, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); } { @@ -1913,6 +1925,7 @@ HRESULT CLoader::Loading_For_GamePlay() }); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) { return E_FAIL; @@ -2344,7 +2357,20 @@ HRESULT CLoader::Loading_For_GamePlay() }); + Asset_FileLoad("../Bin/Resources/Textures/Effect/RanrokEther", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); #pragma endregion m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); @@ -2598,22 +2624,26 @@ HRESULT CLoader::Loading_For_GamePlay() Desc1.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; Desc1.vLocalTranslation = { 0.f, 0.f, 0.f }; } - - CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC DESC_Ranrok_Body{}; { - DESC_Ranrok_Body.eType = ACTOR::SPHERE; - DESC_Ranrok_Body.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC }; - DESC_Ranrok_Body.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; - DESC_Ranrok_Body.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; - DESC_Ranrok_Body.vMatInfo = { 0.5f, 0.5f, 0.6f }; - DESC_Ranrok_Body.fContactOffset = { 0.05f }; - DESC_Ranrok_Body.vhalfGeometryInfo = { 1.1f, 1.1f, 1.1f }; - DESC_Ranrok_Body.fDensity = 1.f; - DESC_Ranrok_Body.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); - DESC_Ranrok_Body.eLockFlag = {}; - DESC_Ranrok_Body.vAutoDamping = { 1.f, 1.f }; - DESC_Ranrok_Body.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; - DESC_Ranrok_Body.vLocalTranslation = { 0.f, 0.f, 0.f }; + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC DESC_Ranrok_Body{}; + { + DESC_Ranrok_Body.eType = ACTOR::SPHERE; + DESC_Ranrok_Body.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC }; + DESC_Ranrok_Body.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + DESC_Ranrok_Body.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + DESC_Ranrok_Body.vMatInfo = { 0.5f, 0.5f, 0.6f }; + DESC_Ranrok_Body.fContactOffset = { 0.05f }; + DESC_Ranrok_Body.vhalfGeometryInfo = { 2.1f, 2.1f, 2.1f }; + DESC_Ranrok_Body.fDensity = 1.f; + DESC_Ranrok_Body.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + DESC_Ranrok_Body.eLockFlag = {}; + DESC_Ranrok_Body.vAutoDamping = { 1.f, 1.f }; + DESC_Ranrok_Body.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; + DESC_Ranrok_Body.vLocalTranslation = { 0.f, 0.f, 0.f }; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK_BODY"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, DESC_Ranrok_Body)))) { + return E_FAIL; + } } CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC PotionDesc{}; @@ -2657,9 +2687,6 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROKPROP"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK_BODY"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, DESC_Ranrok_Body)))) { - return E_FAIL; - } if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_POTION"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, PotionDesc)))) { return E_FAIL; @@ -2971,8 +2998,23 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Fire::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Lightning::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Shout::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Smoke::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) { diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp index 3be107150..ec233874a 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp @@ -72,10 +72,10 @@ void CMapElement_Cave::Late_Update(_float fTimeDelta) if (m_bVisible) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef Bin - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); -#endif // Bin +//#ifdef Bin +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +//#endif // Bin #ifdef _DEBUG m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox); #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp index 8e9c8d0f3..9bf92e59c 100644 --- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp +++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp @@ -89,10 +89,10 @@ void CMapObject_Render::Late_Update(_float fTimeDelta) m_iNumMeshe = m_pModelComs[m_iLodIndex]->Get_NumMeshes(); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef Bin - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); -#endif // Bin +//#ifdef Bin +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +//#endif // Bin } } diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp index e3f09a8b8..1b197b476 100644 --- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp +++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp @@ -95,6 +95,7 @@ void CNPCInteraction::ActiveOff() void CNPCInteraction::BoxOff() { m_bBoxActive = false; + m_pBoxInfo.pOwner = nullptr; } void CNPCInteraction::NpcInfo(void* pArg) diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 90a651c97..bd937b963 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -58,6 +58,10 @@ HRESULT CPlayer::Initialize(void* pArg) #if 진우 m_isDebugMode = false; // 디버그 무적 모드 #endif + +#if 기무리 + m_isDebugMode = false; // 디버그 무적 모드 +#endif #if 나 m_isDebugMode = true; // 디버그 무적 모드 #endif @@ -119,6 +123,7 @@ HRESULT CPlayer::Initialize(void* pArg) m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("NpcInteraction"), [this](void* p) {this->Set_Interaction(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("SpellLearningSuccess"), [this](void* p) {this->Set_Spell_Learning_Success(); }); m_bAI = false; @@ -171,8 +176,11 @@ void CPlayer::Update(_float fTimeDelta) { if (m_bNpcInteraction == true) { + NPCINTERACT Interact{}; m_bCurrentInteraction = true; - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction); + Interact.bInteract = true; + Interact.fAlpha = 0.f; + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); } } if (m_bGuarding) { @@ -693,6 +701,10 @@ HRESULT CPlayer::Ready_Components() Desc.fStepOffset = { 0.02f }; Desc.fRadius = 0.5f; Desc.fHeight = 0.6f; + if (ENUM_CLASS(LEVEL::FIELD) == NEXT_LEVEL) { + Desc.fRadius = 1.f; + Desc.fHeight = 0.3f; + } Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create(); Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; @@ -840,6 +852,19 @@ void CPlayer::CheckMouseInput() void CPlayer::ReLockOnTarget() { + // 락온조건 1. 컷씬중 아닐 때 + if (true == m_pInfoInstance->IsActiveCutScene()) { + m_LockOnInfo.pChest = nullptr; + m_LockOnInfo.pEffect = nullptr; + m_LockOnInfo.pInteractive = nullptr; + m_LockOnInfo.pUnit = nullptr; + return; + } + //// 락온조건2. 던지는중일때나 집어들었을 땐 몬스터 락온만 가능 + //if (m_pGrapInteractive && m_pGrapInteractive->Is_Throwing()) { + // m_pInfoInstance->Get_LockOnInfoOnlyUnit(m_LockOnInfo.pUnit); + // return; + //} m_pInfoInstance->Get_LockOnInfo(m_LockOnInfo); if (nullptr != m_LockOnInfo.pUnit) { if (true == m_LockOnInfo.pUnit->isDead()) { @@ -856,8 +881,6 @@ void CPlayer::ReLockOnTarget() m_LockOnInfo.pEffect = nullptr; } } - - //m_pLockOnMonster->Get_State } void CPlayer::SetGravity() @@ -951,6 +974,85 @@ void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta) Update_CameraShake(fTimeDelta); } +void CPlayer::UpdateFootStepSound() +{ + _uint AnimIndex = m_pModelCom->Get_AnimIndex(); + _float ratio = m_pModelCom->Get_CurrentTrackProgressRatio(); + + if (!m_pFSM->IsEnable(FSMSTATE::WALK | FSMSTATE::JOG | FSMSTATE::SPRINT)) + return; + + auto timings = GetFootStepTiming(AnimIndex); + if (timings.empty()) + return; + + if (m_iPrevAnimIndex != AnimIndex) + { + m_iFootStepIndex = 0; + m_iFootStepIndex++; + m_fPrevMoveRatio = ratio; + m_iPrevAnimIndex = AnimIndex; + return; + } + + _bool bWrapped = (ratio < m_fPrevMoveRatio); + + if (bWrapped) + m_iFootStepIndex = 0; + + while (m_iFootStepIndex < timings.size() && ratio >= timings[m_iFootStepIndex]) + { + PlayFootStepSound(); + m_iFootStepIndex++; + } + + m_fPrevMoveRatio = ratio; + m_iPrevAnimIndex = AnimIndex; +} + + + +vector<_float> CPlayer::GetFootStepTiming(_uint AnimIndex) +{ + { + if (AnimIndex == m_Animation[STATEANIM::WALK_FWD].first) + return { 0.15f, 0.65f }; + + if (AnimIndex == m_Animation[STATEANIM::JOG_FWD].first) + return { 0.01f, 0.17f, 0.33f,0.49f,0.66f,0.84f }; + + if (AnimIndex == m_Animation[STATEANIM::SPRINT].first) + return { 0.01f, 0.17f, 0.33f,0.49f,0.66f,0.84f }; + + return { 0.12f, 0.62f }; + } +} + +void CPlayer::PlayFootStepSound() +{ + if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::GAMEPLAY)) + { + m_pGameInstance->Sound_Play(SOUND::SD_KIND::STEP_TERRAIN, SD_CHANNEL_GROUP::EFFECT, false, 0.3f); + } + else if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::FIELD)) + { + m_pGameInstance->Sound_Play(SOUND::SD_KIND::STEP_ROCK, SD_CHANNEL_GROUP::EFFECT, false, 0.3f); + } +} + +void CPlayer::StopFootStepSound() +{ + if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::GAMEPLAY)) + { + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::STEP_TERRAIN, SD_CHANNEL_GROUP::EFFECT); + } + else if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::FIELD)) + { + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::STEP_ROCK, SD_CHANNEL_GROUP::EFFECT); + } +} + + _matrix CPlayer::Get_WandPos() { CWand* pWand = Get_PartObject(); diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 8bb680b32..047788a06 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -49,6 +49,11 @@ #pragma region States +void CPlayer::Set_Spell_Learning_Success() +{ + m_bSpell_Learning_Success = true; +} + // UI 연동 추가 void CPlayer::Get_Spell(_int SkillIndex) { @@ -673,6 +678,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) } Player_InterpTurn(fTimeDelta); + UpdateFootStepSound(); return S_OK; } @@ -739,6 +745,9 @@ void CPlayer::Behavior_MoveExit() m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP); Reset_Event(); Get_PartObject()->Set_Visible(true); + m_iFootStepIndex = 0; + m_fPrevMoveRatio = 0.f; + } void CPlayer::Behavior_JumpEnter() @@ -1712,9 +1721,9 @@ void CPlayer::Behavior_ShieldEnter() [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); }, 0.1f); - Add_Sound_Event(pairAnimInfo.first, - [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); }, - 0.01f); + //Add_Sound_Event(pairAnimInfo.first, + // [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); }, + // 0.01f); Add_Sound_Event(pairAnimInfo.first, [this]() { @@ -1973,14 +1982,17 @@ void CPlayer::Behavior_ParryEnter() m_pGameInstance->SlowMotion(0.4f, 0.2f); }, 0.01f); - Add_Sound_Event(pairAnimInfo.first, - [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_STUPEFY, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);}, - 0.01f); - Add_Event(pairAnimInfo.first, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); }, fEventRatio); + Add_Sound_Event(pairAnimInfo.first, + [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_STUPEFY, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); }, + 0.01f); + + Add_Sound_Event(pairAnimInfo.first, + [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_24, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); }, 0.01f); + m_bShield = false; } @@ -2742,7 +2754,10 @@ void CPlayer::Behavior_Broom_DismountExit() { m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT); Reset_Event(); + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT); + m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_NORMAL, SD_CHANNEL_GROUP::EFFECT); m_bOnce = false; + } @@ -3068,7 +3083,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) Add_Sound_Event(AnimIndex, [this]() { m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); }, - 0.26f); + 0.35f); Info.pText = TEXT("아씨오!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp index 6c2dcab10..324333e62 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -126,8 +126,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg) m_fSizeAccTime = 0.f; - m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp index eedfdcc01..d4aff28b1 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp @@ -150,22 +150,31 @@ _int CQuest_Data::Get_Count(_int Index) } } -HRESULT CQuest_Data::Set_AcceptQuest(_int Index) +_int CQuest_Data::Set_AcceptQuest(_int Index) { - if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED)) - return S_OK; + if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED)) + { + return 1; + } + if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED)) + { + return 2; + } + + HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance)); + if (FAILED(hr)) + { + return -1; + } + QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::ACCEPTED); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance)))) - { - return E_FAIL; - } m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); }); m_AcceptedInfo.QeustData = m_pQuestInstance; m_AcceptedInfo.QeustInfo = QuestInfos[Index]; m_QuestAcceptedInfos.push_back(m_AcceptedInfo); m_iAcceptQeustCount++; - return S_OK; + return 0; } void CQuest_Data::Set_ClearQuest(_int Index) diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp index 31de7eb35..e5e3810aa 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp @@ -54,9 +54,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg) Visible(true); ElementAllVisible(true); Set_Status(); - m_pInfoInstance->Set_AcceptQuest(0); + //m_pInfoInstance->Set_AcceptQuest(0); //m_pInfoInstance->Set_AcceptQuest(1); - //m_pInfoInstance->Set_AcceptQuest(2); + m_pInfoInstance->Set_AcceptQuest(6); Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); return S_OK; diff --git a/Jusin154_Team3D/Client/Private/RaceRing.cpp b/Jusin154_Team3D/Client/Private/RaceRing.cpp index 877fd0186..73c8388cd 100644 --- a/Jusin154_Team3D/Client/Private/RaceRing.cpp +++ b/Jusin154_Team3D/Client/Private/RaceRing.cpp @@ -3,14 +3,16 @@ #include "BroomRaceManager.h" #include "GameInstance.h" +#include "PartObject.h" +#include "EffectParts.h" CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CGameObject(pDevice, pContext) + : CContainerObject(pDevice, pContext) { } CRaceRing::CRaceRing(const CRaceRing& Prototype) - : CGameObject(Prototype) + : CContainerObject(Prototype) { } @@ -30,6 +32,10 @@ HRESULT CRaceRing::Initialize(void* pArg) return E_FAIL; } + if (FAILED(Ready_Parts())) { + return E_FAIL; + } + //m_iIndex = static_cast(pArg)->iIndex; //_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f); @@ -54,6 +60,8 @@ void CRaceRing::Priority_Update(_float fTimeDelta) Describe_Entity(); #endif // _DEBUG + + __super::Priority_Update(fTimeDelta); } void CRaceRing::Update(_float fTimeDelta) @@ -61,10 +69,22 @@ void CRaceRing::Update(_float fTimeDelta) m_pModelCom->Combined_BoneMatrix(); World_to_ScreenUI(); + + __super::Update(fTimeDelta); + + if (m_bTarget == true) + { + m_pRingEffect->Set_Visible(true); + m_pRingEffect->Get_Component()->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix()); + } + else { + m_pRingEffect->Set_Visible(false); + } } void CRaceRing::Late_Update(_float fTimeDelta) { + __super::Late_Update(fTimeDelta); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } @@ -238,6 +258,24 @@ HRESULT CRaceRing::Bind_ShaderResources() return S_OK; } +HRESULT CRaceRing::Ready_Parts() +{ + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + if (FAILED(Add_PartObject("Ring_Blur", g_iStaticLevel, &m_pRingEffect, &PartsDesc))) + { + return E_FAIL; + } + + m_pRingEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Ring_Blur", static_cast(g_iStaticLevel)); + m_pRingEffect->Set_Visible(false); + + return S_OK; +} + CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -272,6 +310,7 @@ void CRaceRing::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pRingEffect); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 646ba28a8..fececb605 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -14,6 +14,7 @@ #include "Layer.h" #include "Ranrok_Prop.h" +#include "Ranrok_EtherInfo.h" #pragma region STATE #include "State_Idle.h" @@ -88,6 +89,10 @@ HRESULT CRanrok::Initialize(void* pArg) m_fRimPower = 2.3f; m_vRimColor = _float4(0.333f, 0.235f, 0.184f, 0.059f); + Ether_Create(); + + Ready_Sound_Events("../Bin/Resources/Models/Monster/ConjuredDragon/KeyFrame.xml"); + return S_OK; } @@ -179,25 +184,26 @@ void CRanrok::Update(_float fTimeDelta) Update_Disolve(fTimeDelta, 0.8f); m_pMotionTrailCom->Update_Capture(fTimeDelta); + Ether_Update(fTimeDelta); #pragma region TRAIL_UPDATE - _matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix(); + //_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix(); - _matrix LeftEyeMatrix = {}; - _matrix RightEyeMatrix = {}; + //_matrix LeftEyeMatrix = {}; + //_matrix RightEyeMatrix = {}; - LeftEyeMatrix = XMLoadFloat4x4(m_pLeftEye_BoneMat); - RightEyeMatrix = XMLoadFloat4x4(m_pRightEye_BoneMat); + //LeftEyeMatrix = XMLoadFloat4x4(m_pLeftEye_BoneMat); + //RightEyeMatrix = XMLoadFloat4x4(m_pRightEye_BoneMat); - for (int i = 0; i < 3; ++i) { - LeftEyeMatrix.r[i] = XMVector3Normalize(LeftEyeMatrix.r[i]); - RightEyeMatrix.r[i] = XMVector3Normalize(RightEyeMatrix.r[i]); - } + //for (int i = 0; i < 3; ++i) { + // LeftEyeMatrix.r[i] = XMVector3Normalize(LeftEyeMatrix.r[i]); + // RightEyeMatrix.r[i] = XMVector3Normalize(RightEyeMatrix.r[i]); + //} - m_pLeftEye_Trail->Trail_Update(LeftEyeMatrix * WorldMat, fTimeDelta); - m_pRightEye_Trail->Trail_Update(RightEyeMatrix * WorldMat, fTimeDelta); + //m_pLeftEye_Trail->Trail_Update(LeftEyeMatrix * WorldMat, fTimeDelta); + //m_pRightEye_Trail->Trail_Update(RightEyeMatrix * WorldMat, fTimeDelta); #pragma endregion @@ -285,6 +291,10 @@ void CRanrok::Late_Update(_float fTimeDelta) m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); + m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this); + Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); } @@ -298,7 +308,7 @@ HRESULT CRanrok::Render() if (RENDER::NONBLEND == eCurrentPass) { hr = Render_Nonblend(); } - else if (RENDER::BLEND == eCurrentPass) { + else if (RENDER::BLEND == eCurrentPass || RENDER::EFFECT == eCurrentPass) { hr = Render_Blend(); hr = S_OK; } @@ -364,6 +374,14 @@ void CRanrok::Trigger(CTimeSocket& Socket) }break; case TIMESOCKET_FUNC::SET_ANIMSTATE: { + pair<_uint, _bool> pairAnimInfo = {}; + if (Socket.m_Contents.vFlags.b[0]) { + pairAnimInfo = m_Animation[STATEANIM::PULSE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + else if (Socket.m_Contents.vFlags.b[1]) { + //m_pModelCom->Set_AnimationIndex(); + } }break; case TIMESOCKET_FUNC::SET_FSMSTATE: { @@ -563,6 +581,11 @@ HRESULT CRanrok::Ready_Components() return E_FAIL; } + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_RANROK_ETHER, + reinterpret_cast(&m_pEther_Shader)))) { + return E_FAIL; + } + { // CCT CCharacter_Controller::Character_Controller_DESC Desc{}; @@ -607,6 +630,9 @@ HRESULT CRanrok::Ready_Components() } } + + + return S_OK; } @@ -842,36 +868,62 @@ HRESULT CRanrok::Update_CollidersPosition() HRESULT CRanrok::Render_Blend() { - _float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y); - if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) { - return E_FAIL; - } + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i) { - if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix", + RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass(); + + if (m_pEtherInfo[i]->Get_RenderOrder() != eCurrentPass || m_pEtherInfo[i]->Get_Visible() == false) + continue; + + if (FAILED(m_pEther_Shader->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))) { + m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader); + + _float4x4 WorldInv = {}; + + XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv()); + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) { return E_FAIL; } - if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix"))) + return E_FAIL; + + + + if (FAILED(m_pEtherInfo[i]->Ether_Begin(m_pEther_Shader))) { return E_FAIL; } m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + + if (true == m_bDrawOutLine) { + m_pGameInstance->Begin_OutLine_Write(2); + } if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; } + + if (true == m_bDrawOutLine) { + m_pGameInstance->End_OutLine_Write(); + } } if (m_bMotionTrail) { - if (FAILED(Bind_ShaderResources())) { return E_FAIL; } @@ -949,6 +1001,104 @@ HRESULT CRanrok::Render_OutLine() return S_OK; } +HRESULT CRanrok::Render_Blur() +{ + + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i) + { + + if (m_pEtherInfo[i]->isBlur() == false) + continue; + + if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) + { + return E_FAIL; + } + + m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader); + + _float4x4 WorldInv = {}; + + XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv()); + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) { + return E_FAIL; + } + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix"))) + return E_FAIL; + + + + if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLUR)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + + } + + return S_OK; +} + +HRESULT CRanrok::Render_Bloom() +{ + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i) + { + + if (m_pEtherInfo[i]->isBloom() == false) + continue; + + if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) + { + return E_FAIL; + } + + m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader); + + _float4x4 WorldInv = {}; + + XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv()); + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) { + return E_FAIL; + } + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix"))) + return E_FAIL; + + + if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLOOM)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + + } + return S_OK; +} void CRanrok::MoveTo(_float fTimeDelta) { if (!m_pFSM->IsEnable(FSMSTATE::TUCKED)) @@ -1115,9 +1265,16 @@ void CRanrok::Free() SAFE_RELEASE(m_pRightEye_Trail); SAFE_RELEASE(m_pRightPt); SAFE_RELEASE(m_pLeftPt); + SAFE_RELEASE(m_pEther_Shader); Safe_Delete(m_pCallBack_Behavior); Safe_Delete(m_pCallBack_HitReport); + + for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++) + { + SAFE_RELEASE(m_pEtherInfo[i]); + } + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Ether.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Ether.cpp new file mode 100644 index 000000000..76a53760b --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Ranrok_Ether.cpp @@ -0,0 +1,26 @@ +#include "pch.h" +#include "Ranrok.h" +#include "InfoInstance.h" +#include "GameInstance.h" +#include "Ranrok_EtherInfo.h" + +void CRanrok::Ether_Create() +{ + for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++) + { + m_pEtherInfo[i] = CRanrok_EtherInfo::Create(m_pDevice, m_pContext); + m_pEtherInfo[i]->Set_Visible(false); + } + + m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_EYES)]->Load_Info("../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye" , static_cast(g_iStaticLevel)); + m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_AURA)]->Load_Info("../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura", static_cast(g_iStaticLevel)); + m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_WINGS)]->Load_Info("../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing", static_cast(g_iStaticLevel)); +} + +void CRanrok::Ether_Update(_float fTimeDelata) +{ + for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++) + { + m_pEtherInfo[i]->Update(fTimeDelata); + } +} diff --git a/Jusin154_Team3D/Client/Private/Ranrok_EtherInfo.cpp b/Jusin154_Team3D/Client/Private/Ranrok_EtherInfo.cpp new file mode 100644 index 000000000..9dfde9cf8 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Ranrok_EtherInfo.cpp @@ -0,0 +1,883 @@ +#include "pch.h" +#include "Ranrok_EtherInfo.h" + +#include "GameInstance.h" + +CRanrok_EtherInfo::CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CRanrok_EtherInfo::CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype) + : CGameObject(Prototype) +{ +} + +HRESULT CRanrok_EtherInfo::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + m_Ether_Info.eRenderOrder = RENDER::BLEND; + + return S_OK; +} + +void CRanrok_EtherInfo::Priority_Update(_float fTimeDelta) +{ + +} + +void CRanrok_EtherInfo::Update(_float fTimeDelta) +{ + Update_Time(fTimeDelta); +} + +void CRanrok_EtherInfo::Late_Update(_float fTimeDelta) +{ + +} + +HRESULT CRanrok_EtherInfo::Render() +{ + return S_OK; +} + + + +void CRanrok_EtherInfo::Update_Time(_float fTimeDelta) +{ + + m_ErherTimeInfo.vAnimTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vAnimTime.x >= m_ErherTimeInfo.vAnimTime.y) + { + m_ErherTimeInfo.vAnimTime.x = 0.f; + + m_ErherTimeInfo.vAnimIndex.x += 1.f; + + if (m_ErherTimeInfo.vAnimIndex.x > m_ErherTimeInfo.vAnimIndex.y) // 애니메이션에 끝에 다다랐다면 + { + m_ErherTimeInfo.vAnimIndex.x = 0.f; // 인덱스 초기화 + + } + } + + m_ErherTimeInfo.vLifeTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vLifeTime.x >= m_ErherTimeInfo.vLifeTime.y) + { + m_ErherTimeInfo.vLifeTime.x = 0.f; + } + + m_ErherTimeInfo.vDiffuseUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vDiffuseUVMoveTime.x >= m_ErherTimeInfo.vDiffuseUVMoveTime.y) + { + m_ErherTimeInfo.vDiffuseUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vMaskingUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vMaskingUVMoveTime.x >= m_ErherTimeInfo.vMaskingUVMoveTime.y) + { + m_ErherTimeInfo.vMaskingUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vNoiseUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vNoiseUVMoveTime.x >= m_ErherTimeInfo.vNoiseUVMoveTime.y) + { + m_ErherTimeInfo.vNoiseUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vDistortionUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vDistortionUVMoveTime.x >= m_ErherTimeInfo.vDistortionUVMoveTime.y) + { + m_ErherTimeInfo.vDistortionUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vDissolveUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vDissolveUVMoveTime.x >= m_ErherTimeInfo.vDissolveUVMoveTime.y) + { + m_ErherTimeInfo.vDissolveUVMoveTime.x = 0.f; + } + +} + +void CRanrok_EtherInfo::Edit_Ether() +{ + +} + +HRESULT CRanrok_EtherInfo::Bind_Ether_ShaderResources(CShader* pShader) +{ + + if (FAILED(pShader->Bind_RawValue("g_fAnimIndex", &m_ErherTimeInfo.vAnimIndex.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vLifeTime", &m_ErherTimeInfo.vLifeTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVMoveTime", &m_ErherTimeInfo.vDiffuseUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vMaskingUVMoveTime", &m_ErherTimeInfo.vMaskingUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vNoiseUVMoveTime", &m_ErherTimeInfo.vNoiseUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vDistortionUVMoveTime", &m_ErherTimeInfo.vDistortionUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vDissolveUVMoveTime", &m_ErherTimeInfo.vDissolveUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + + + + if (m_Ether_Info.eRenderOrder != RENDER::BULR_MESH) + { + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), pShader, "g_DepthTexture"))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), pShader, "g_NormalMapTexture"))) { + return E_FAIL; + } + } + + _float2 vViewPortSize = m_pGameInstance->Get_ViewPortSize(); + + if (FAILED(pShader->Bind_RawValue("g_fWinSizeX", &vViewPortSize.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fWinSizeY", &vViewPortSize.y, sizeof(_float)))) { + return E_FAIL; + } + + + + if (FAILED(pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } + + if (m_Ether_Info.isMotionBlur == true || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT) + { + + if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + + + if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + + + + } + + if (m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_WB || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_BLUR) + { + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Normal"), pShader, "g_NormalMapTexture"))) { + return E_FAIL; + } + + } + + if (FAILED(pShader->Bind_RawValue("g_isDiffuse", &m_Ether_Info.isDiffuse, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isMasking", &m_Ether_Info.isMasking, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDissolve", &m_Ether_Info.isDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoise", &m_Ether_Info.isNoise, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isEmissive", &m_Ether_Info.isEmissive, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDistortion", &m_Ether_Info.isDistortion, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDiffuseUVMove", &m_Ether_Info.isDiffuseUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isMaskUVMove", &m_Ether_Info.isMaskUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoiseUVMove", &m_Ether_Info.isNoiseUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isReverseDissolve", &m_Ether_Info.isReverseDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolve", &m_Ether_Info.isEmissiveDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isMaskClampSample", &m_Ether_Info.isMaskClampSample, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoiseColor", &m_Ether_Info.isNoiseColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoiseAlpha", &m_Ether_Info.isNoiseAlpha, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNomalDissolve", &m_Ether_Info.isNomalDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolveReverse", &m_Ether_Info.isEmissiveDissolveReverse, sizeof(_bool)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_isBlurNoEmissive", &m_Ether_Info.isBlurNoEmissive, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vColor", &m_Ether_Info.vColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vEmissive", &m_Ether_Info.vEmissive, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fEmissiveStrength", &m_Ether_Info.fEmissiveStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fNoiseDistortionIntensity", &m_Ether_Info.fNoiseDistortionIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVGainAmount", &m_Ether_Info.vDiffuseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vMaskingUVGainAmount", &m_Ether_Info.vMaskingUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vNoiseUVGainAmount", &m_Ether_Info.vNoiseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDistortionTime", &m_Ether_Info.vDistortionTime, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_Ether_Info.vMaskDistortionUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + + + if (FAILED(pShader->Bind_RawValue("g_vUVCutting", &m_Ether_Info.vUVCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vUVMaskCutting", &m_Ether_Info.vUVMaskCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_iMaskMoveLerpOption", &m_Ether_Info.iMaskMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_Ether_Info.iDiffuseMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_iMaskDistortionMoveLerpOption", &m_Ether_Info.iMaskDistortionMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_iDiffuseDistortionMoveLerpOption", &m_Ether_Info.iDiffuseDistortionMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + + if (FAILED(pShader->Bind_RawValue("g_fDiffuseAlpha", &m_Ether_Info.fDiffuseAlpha, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftenExp", &m_Ether_Info.fSoftenExp, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftStrength", &m_Ether_Info.fSoftStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fCoreBoost", &m_Ether_Info.fCoreBoost, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fRadius", &m_Ether_Info.fRadius, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftMaskEdge", &m_Ether_Info.fSoftMaskEdge, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftMask", &m_Ether_Info.fSoftMask, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveDelay", &m_Ether_Info.fDissolveDelay, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fReverseDissolveDelay", &m_Ether_Info.fReverseDissolveDelay, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDissolveUVGainAmount", &m_Ether_Info.vDissolveUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDissolveMove", &m_Ether_Info.isDissolveMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoDissolveSmoothStep", &m_Ether_Info.isNoDissolveSmoothStep, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveMaskEdge", &m_Ether_Info.vDissolveValue.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveSoftMask", &m_Ether_Info.vDissolveValue.y, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveCutRatio", &m_Ether_Info.vDissolveValue.z, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBlurColor", &m_Ether_Info.isBlurColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vBlurColor", &m_Ether_Info.vBlurColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vNoiseColor", &m_Ether_Info.vNoiseColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fEmissiveColorCut", &m_Ether_Info.fEmissiveColorCut, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isRimLight", &m_Ether_Info.isRimLight, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vRimLightColor", &m_Ether_Info.vRimLightColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fRimLightPower", &m_Ether_Info.fRimLightPower, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fRimLightStrength", &m_Ether_Info.fRimLightStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fModelDistortIntensity", &m_Ether_Info.fModelDistortIntensity, sizeof(_float)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_vMaskOffset", &m_Ether_Info.vMaskOffset, sizeof(_float2)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_vUVNoiseCutting", &m_Ether_Info.vUVNoiseCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDissolveSmoothRange", &m_Ether_Info.vDissolveSmoothRange, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fModelBlurIntensity", &m_Ether_Info.fModelBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + + + + if (FAILED(pShader->Bind_RawValue("g_isMask_G", &m_Ether_Info.isMask_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isMask_B", &m_Ether_Info.isMask_B, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoise_G", &m_Ether_Info.isNoise_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isNoise_B", &m_Ether_Info.isNoise_B, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDissolve_G", &m_Ether_Info.isDissolve_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDissolve_B", &m_Ether_Info.isDissolve_B, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDiffuse_R", &m_Ether_Info.isDiffuse_R, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDiffuse_G", &m_Ether_Info.isDiffuse_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDiffuse_B", &m_Ether_Info.isDiffuse_B, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBlurDissolve", &m_Ether_Info.isBlurDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNonSoftEffect", &m_Ether_Info.isNonSoftEffect, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isScreenFX", &m_Ether_Info.isScreenFX, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fBlurIntensity", &m_Ether_Info.fBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fBloomStrength", &m_Ether_Info.fBloomStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_iBloomType", &m_Ether_Info.eBloomType, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBloomDissolve", &m_Ether_Info.isBloomDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBloomReverseDissolve", &m_Ether_Info.isBloomReverseDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (m_pDiffuse_TextureCom != nullptr) + { + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(pShader, "g_DiffuseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pNoise_TextureCom != nullptr) + { + if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(pShader, "g_NoiseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pMasking_TextureCom != nullptr) + { + if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(pShader, "g_MaskingTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDissolve_TextureCom != nullptr) + { + if (FAILED(m_pDissolve_TextureCom->Bind_ShaderResource(pShader, "g_DissolveTexture", 0))) { + return E_FAIL; + } + } + + if (m_pEmissive_TextureCom != nullptr) + { + if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(pShader, "g_EmissiveTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDistortion_TextureCom != nullptr) + { + if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(pShader, "g_DistortionTexture", 0))) { + return E_FAIL; + } + } + + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Ether_Begin(CShader* pShader) +{ + if(FAILED(pShader->Begin(ENUM_CLASS(m_Ether_Info.eShaderPass)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Ready_Components() +{ + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Bind_ShaderResources() +{ + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Load_Info(const _char* pFilePath, LEVEL eLevel) +{ + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); + + _string strPerfectFilePath = pFilePath; + + m_strPath = strPerfectFilePath; + + strPerfectFilePath += ".bin"; + + HANDLE hFile = CreateFileW( + CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름 + GENERIC_READ, // 읽기 모드 + FILE_SHARE_READ, // 다른 프로세스도 읽기 가능 + NULL, + OPEN_EXISTING, // 기존 파일 열기 + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"에테르 읽기 실패", L"System Message", MB_OK); + return E_FAIL; + } + + + + DWORD dwByte(0); + + if (!ReadFile(hFile, &m_Ether_Info, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (m_Ether_Info.isDiffuse) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDiffuseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + } + } + + if (m_Ether_Info.isNoise) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; + } + + + } + + if (m_Ether_Info.isMasking) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (m_Ether_Info.isDissolve) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDissolveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), + reinterpret_cast(&m_pDissolve_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + + } + + + } + + if (m_Ether_Info.isEmissive) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strEmissiveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), + reinterpret_cast(&m_pEmissive_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (m_Ether_Info.isDistortion) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (!ReadFile(hFile, &m_ErherTimeInfo, sizeof(TIME_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + CloseHandle(hFile); + + + Set_Visible(true); + + return S_OK; +} + + +CRanrok_EtherInfo* CRanrok_EtherInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_EtherInfo"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CRanrok_EtherInfo::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_EtherInfo"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_EtherInfo::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); +} +#ifdef _DEBUG + + +void CRanrok_EtherInfo::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index db61fec5d..bab566f50 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -82,8 +82,6 @@ void CRanrok_Prop::Update(_float fTimeDelta) __super::Update(fTimeDelta); - m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); - Update_Event(fTimeDelta); /* 시작 사이즈 러프 */ @@ -138,7 +136,7 @@ HRESULT CRanrok_Prop::Render() _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); - _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, 1.f); + _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, 0.25f); _matrix WorldMatrix = XMMatrixScaling(m_pRigidBody->Get_HalfGeometryInfo().x, m_pRigidBody->Get_HalfGeometryInfo().x, m_pRigidBody->Get_HalfGeometryInfo().x) * m_pTransformCom->Get_XMWorldMatrix(); m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true); @@ -201,6 +199,7 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg) m_fHp = 3.f; m_fDuration = 10000.f; + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); return S_OK; } @@ -218,8 +217,8 @@ HRESULT CRanrok_Prop::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROKPROP"), (CComponent**)&m_pRigidBody, &Desc))) { return E_FAIL; } - - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pRigidBody->Detach_Actor(NEXT_LEVEL); + //m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; @@ -286,7 +285,7 @@ void CRanrok_Prop::OnCollision(CGameObject* pOther, void* pDesc) } else { - + m_pRigidBody->Detach_Actor(NEXT_LEVEL); for (auto& pPart : m_PartObjects) { pPart.second->Set_Visible(false); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp index 1e87b6306..61cf65517 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp @@ -963,6 +963,7 @@ void CRanrok::Behavior_TuckedExit() m_pFSM->Disable_State(FSMSTATE::TUCKED); m_bTucked = false; + m_vCreatePropTime.x = m_vCreatePropTime.y; } void CRanrok::Behavior_LandEnter() diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp index 23182e4a1..8b661c9c8 100644 --- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp @@ -20,7 +20,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon Spell_UnLock(3); Spell_UnLock(4); Spell_UnLock(6); - Spell_UnLock(11); + //Spell_UnLock(11); Spell_UnLock(14); Spell_UnLock(15); Spell_UnLock(20); diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp index 4fcfde3c2..fd30e3d24 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp @@ -92,6 +92,9 @@ void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse) m_bMoveStart = false; Set_FadeOut(); static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear")); + m_pInfoInstance->Spell_UnLock(m_iSpellID); + m_pInfoInstance->Event_CallBack(TEXT("SpellLearningSuccess")); + } } } @@ -104,6 +107,11 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg) m_bBooster = m_Booster.bBoosterOn; } +void CSpellLearn_MovePointer::Set_ID(_int Index) +{ + m_iSpellID = Index; +} + void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp index d16532b7c..1bd670db2 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp @@ -75,6 +75,7 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg) void CSpellLearn_Panel::Set_Learn(_int Index) { m_fTime = 0.f; + static_cast(m_pSpellLearn_MovePointer)->Set_ID(m_pInfoInstance->Get_SpellLearn(Index).iSpellID); static_cast(m_pSpellLearn)->Change_Image(Index); static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index); static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index); diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index 75a9bf618..7cd102742 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -242,6 +242,8 @@ void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) if (m_bHit == false) return; + m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_46, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); @@ -258,7 +260,6 @@ void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) pHitFlare->Set_Visible(true); pHitFlare->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp index cb0a8599d..6a1f29155 100644 --- a/Jusin154_Team3D/Client/Private/Terrain.cpp +++ b/Jusin154_Team3D/Client/Private/Terrain.cpp @@ -63,10 +63,10 @@ void CTerrain::Late_Update(_float fTimeDelta) { //if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef Bin - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); -#endif // Bin +//#ifdef Bin +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +//#endif // Bin //} } diff --git a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp index c0f442291..c15f1cf2d 100644 --- a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp +++ b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp @@ -74,7 +74,9 @@ void CThestralCarriage::Update(_float fTimeDelta) { __super::Update(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); - + + m_pTransformCom->Go_Straight(fTimeDelta * m_iStraight); + #ifdef _DEBUG Describe_Entity(); #endif // _DEBUG @@ -197,25 +199,34 @@ void CThestralCarriage::Trigger(CTimeSocket& Socket) } break; case TIMESOCKET_FUNC::SET_ANIMSTATE: { - + if (pContents->vFlags.b[0]) { + m_iStraight = 1; + } + else if (pContents->vFlags.b[1]) { + m_iStraight = 3; + } + else { + m_iStraight = 0; + } + } break; case TIMESOCKET_FUNC::SET_FSMSTATE: { - // if (pContents->vFlags.b[0]) { - // m_iAnimationIndex = 0; - // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); - // m_pModelCom->IsRootBone(false); - // } - // else if (pContents->vFlags.b[1]) { - // m_iAnimationIndex = 1; - // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); - // m_pModelCom->IsRootBone(false); - // } - // else if (pContents->vFlags.b[2]) { - // m_iAnimationIndex = 2; - // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); - // m_pModelCom->IsRootBone(false); - // } + if (pContents->vFlags.b[0]) { + m_iAnimationIndex = 0; + m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); + m_pModelCom->IsRootBone(false); + } + else if (pContents->vFlags.b[1]) { + m_iAnimationIndex = 1; + m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); + m_pModelCom->IsRootBone(false); + } + else if (pContents->vFlags.b[2]) { + m_iAnimationIndex = 2; + m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); + m_pModelCom->IsRootBone(false); + } } break; case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX: { @@ -298,7 +309,7 @@ void CThestralCarriage::Lerp_Transform(_float fTimeDelta) CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, 1.f); } else { - CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, m_vLerpTimer.x/m_vLerpTimer.y); + CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, m_vLerpTimer.x / m_vLerpTimer.y); } m_pTransformCom->Set_WorldMatrix(vLerpResult); } @@ -419,7 +430,7 @@ void CThestralCarriage::Describe_Entity() _float RotR, RotU, RotL; RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT)); - RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP)); + RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP)); RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK)); float Rot3[3] = { RotR, RotU,RotL }; diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 6cdb56ab1..6b494ba88 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -75,6 +75,8 @@ HRESULT CTroll::Initialize(void* pArg) m_pRightHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("RightHand"); m_pWeapon_BoneMat = Get_PartObject()->Get_Component()->Get_BoneMatrixPtr("Bone"); + Ready_Sound_Events("../Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml"); + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 0d52d46f4..1bef673ba 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -725,7 +725,7 @@ void CTroll::Behavior_HitEnter() m_bLookAt = false; if (iCurrAnimIndex == m_Animation[STATEANIM::SLAM].first) { - if (fRatio >= 0.29f && fRatio <= 0.6f) { + if (fRatio >= 0.29f && fRatio <= 0.7f) { pairAnimInfo = m_Animation[STATEANIM::HIT_FACE]; Add_Event(pairAnimInfo.first, [this]() { @@ -808,8 +808,6 @@ void CTroll::Behavior_DeadEnter() m_pDead_Smoke->Get_Component()->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION)); }, 0.55f); - Get_PartObject()->Set_Disolve(true); - } HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) @@ -820,6 +818,7 @@ HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) { m_fDeadRatio += fTimeDelta / 3.f; m_fDeadRatio = min(1.f, m_fDeadRatio); + Get_PartObject()->Set_Disolve(true); } return S_OK; diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index 11478a023..8c6f554bb 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -62,7 +62,7 @@ HRESULT CUI_Manager::Initialize(void* pArg) m_bActive = false; m_pInfoInstance->Set_UISTATE(m_eType); m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); }); - m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(p); }); m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); }); m_pInfoInstance->Add_Event(TEXT("UIFadeIn"), [this](void* p) {this->FadeIn(*reinterpret_cast<_float*>(p)); }); m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); }); @@ -145,6 +145,8 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pNPCInteraction)->Set_Visible(false); static_cast(m_pBroom_TargetGate)->Set_Visible(false); static_cast(m_pDamage_Font)->Set_Visible(false); + m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff")); + m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff")); break; default: @@ -205,19 +207,19 @@ void CUI_Manager::Update(_float fTimeDelta) if (m_pGameInstance->Key_Down(DIK_TAB)) { m_fAlphaVelue = 1.f; + if (m_eType == UI_STATE::GAMEPLAYER) + { + m_eType = UI_STATE::QUEST; + + } + else if (m_eType == UI_STATE::QUEST) + { + m_eType = UI_STATE::GAMEPLAYER; + } if (m_bActive == false) { m_bActive = true; m_bAlphaZero = true; - if (m_eType == UI_STATE::GAMEPLAYER) - { - m_eType = UI_STATE::QUEST; - - } - else if (m_eType == UI_STATE::QUEST) - { - m_eType = UI_STATE::GAMEPLAYER; - } } } } @@ -227,18 +229,18 @@ void CUI_Manager::Update(_float fTimeDelta) if (m_pGameInstance->Key_Down(DIK_ESCAPE)) { m_fAlphaVelue = 1.f; + if (m_eType == UI_STATE::GAMEPLAYER) + { + m_eType = UI_STATE::SPELLLNEARN; + } + else if (m_eType == UI_STATE::SPELLLNEARN) + { + m_eType = UI_STATE::GAMEPLAYER; + } if (m_bActive == false) { m_bActive = true; m_bAlphaZero = true; - if (m_eType == UI_STATE::GAMEPLAYER) - { - m_eType = UI_STATE::SPELLLNEARN; - } - else if (m_eType == UI_STATE::SPELLLNEARN) - { - m_eType = UI_STATE::GAMEPLAYER; - } } } } @@ -279,7 +281,7 @@ void CUI_Manager::Update(_float fTimeDelta) m_fAlpha += fTimeDelta * m_fAlphaTime; } - if (m_fAlpha > m_fAlphaVelue && m_bAlphaZero == true) + if (m_fAlpha >= m_fAlphaVelue && m_bAlphaZero == true) { m_bAlphaZero = false; m_fAlpha = 1.f; @@ -495,11 +497,14 @@ CGameObject* CUI_Manager::Find_Canvas(const _wstring& Name) return iter->second; } -void CUI_Manager::NpcInteract(_bool bInteract) +void CUI_Manager::NpcInteract(void* pArg) { - m_bNPCInteract = bInteract; - m_bHover = bInteract; - m_bActive = bInteract; + NPCINTERACT Interact = *reinterpret_cast(pArg); + + m_bNPCInteract = Interact.bInteract; + m_bHover = Interact.bInteract; + m_bActive = Interact.bInteract; + m_fAlpha= Interact.fAlpha; m_bAlphaZero = true; } @@ -518,7 +523,6 @@ void CUI_Manager::Change_Map() void CUI_Manager::Set_Race(_bool bRace) { m_bRace = bRace; - static_cast(m_pBroom_TargetGate)->Set_Visible(bRace); } void CUI_Manager::Set_Battle(_bool bBattle) diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h index 811c03d95..52a6aec55 100644 --- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h +++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h @@ -48,7 +48,7 @@ class CBroomRaceManager final : public CGameObject private: CInfoInstance* m_pInfoInstance = { nullptr }; - + array m_pRaceEndEffects = { nullptr, nullptr, nullptr }; vector m_pRaceRings = {}; vector m_Racers = {}; _float m_fCountTimer = {}; diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h index b27d1b591..22d88854b 100644 --- a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h +++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h @@ -73,6 +73,10 @@ class CCamPosition_Shoulder final : public CCamPosition _float2 m_vMoveLerpPositions = { }; _float2 m_vMoveLerpTimer = { 0.f, TIMER_SHORT_LERP }; + + //_int m_iSpellFovLerp = { 0 }; + //_float3 m_vSpellFovLerpTimer = { 0.f, 1.f, 2.f }; + //_float3 m_vSpellFovLerpDegree = { 60.f, 30.f, 60.f }; #pragma endregion _float2 m_vCameraShakeTimer = { 0.f, 0.3f }; diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h index 102fd0af0..d4f2c963e 100644 --- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h +++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h @@ -43,14 +43,16 @@ class CCamera_Cinematic final : public CCamera virtual HRESULT Ready_Components(void* pArg) override; virtual HRESULT Ready_SubPart(); HRESULT Bind_ShaderResources() override; + void Update_CameraShake(_float fTimeDelta); + void Start_CameraShake(_float fTime, _float fIntense); void Lerp_Translation(_float fTimeDelta); void Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform); void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans); void Clear_Lerp_Translation(); void Lerp_Rotation(_float fTimeDelta); - void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform); - void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ); + void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance); + void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance); void Clear_Lerp_Rotation(); @@ -82,6 +84,13 @@ class CCamera_Cinematic final : public CCamera _bool m_bLerpFovY = { false }; _float2 m_vFovYLerp = { 60.f, 60.f }; _float2 m_vLerpFovYTimer = { }; + _bool m_bMainTainDistance = { false }; + _float m_fMaintainingDistance = { }; + _bool m_bCameraShake = { false }; + _float2 m_vAccRealRadians = { 0.f, 0.f }; + _float2 m_vCameraShakeTimer = { 0.f, TIMER_SHORT_LERP }; + _float m_fCameraShakeTime = TIMER_SHORT_LERP; + _float m_fCameraShakeIntense = 5.f; #ifdef _DEBUG unique_ptr m_pSubShape = { nullptr }; unique_ptr> m_Batch = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 02a886f1d..2f8bcaa0d 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -24,6 +24,8 @@ namespace Client BOOSTERHPBAR, DIALOGUECHOICE, ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE, END }; + enum class SHADER_PASS_ETHER { NON_NOMALMAP, WEIGHTBLEND, BLEND, BLUR, BLOOM, END }; + enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END }; enum class SHADER_PASS_WORLDMODLE_INSTANCE { DEFAULT, LIGHT, BLOOM, SHADOW, NONCULL }; enum class SHADER_PASS_NPC_PBR_ANIM { @@ -43,7 +45,7 @@ namespace Client enum class QUESTTYPE { MAIN, SUB, END }; enum class QUESTSTATE { NONE, ACCEPTED, CLEARED, END }; - enum class NPCTEXTTYPE { ENDTEXT, NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, END }; + enum class NPCTEXTTYPE { ENDTEXT, NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, CURRENTQUEST, END }; enum class EFFECT_TYPE { EFFECT, TRAIL, END }; @@ -91,6 +93,9 @@ namespace Client /*듀얼리스트*/ DUELIST_JAP, DUELIST_JAPSIDE , DUELIST_LEVIOSO, DUELIST_PROTEGO, + /* 컷씬 이펙트 */ + CUTSCENE_FIRE , CUTSCENE_SMOKE , CUTSCENE_SHOUT, CUTSCENE_LIGHTNING, + END }; diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index 67e1f979a..f15b1e7fa 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -20,6 +20,7 @@ namespace Client { #define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #define FX_VTXPOS TEXT("FX_VTXPOS") #define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM") +#define FX_RANROK_ETHER TEXT("FX_RANROK_ETHER") #pragma endregion #pragma region MACRO_PROTOTYPE diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index 75d1cf961..209731778 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -1,9 +1,9 @@ #pragma once NS_BEGIN(Engine) - class CModel; - class CRigidBody_Static; - class CUnit; - class CTimeSocket; +class CModel; +class CRigidBody_Static; +class CUnit; +class CTimeSocket; NS_END NS_BEGIN(Client) @@ -37,81 +37,89 @@ typedef struct tagSpellInfo _float fVidio{}; }SPELL_INFO; - typedef struct DialogueChoice - { - _int eType = { false }; - _wstring pText; - _int NextTypeID{}; - }DIALOGUECHOICEINFO; +typedef struct DialogueChoice +{ + _int eType = { false }; + _wstring pText; + _int NextTypeID{}; + _int QuestID{}; +}DIALOGUECHOICEINFO; - typedef struct DialogueInfo - { - _int iLineID{}; - _bool bTag{}; - _int iType{}; - _wstring pText; - _int NextTextID{}; - vector ChoiceInfo; - }CURRENTDIALOGUEINFO; +typedef struct DialogueInfo +{ + _int iLineID{}; + _bool bTag{}; + _int iType{}; + _wstring pText; + _int NextTextID{}; + vector ChoiceInfo; +}CURRENTDIALOGUEINFO; - typedef struct NpcDialogue - { - _wstring pNpcName; - _int iNpcID{}; - map<_int, CURRENTDIALOGUEINFO> Info; - }NPCDIALOGUEINFO; +typedef struct NpcDialogue +{ + _wstring pNpcName; + _int iNpcID{}; + map<_int, CURRENTDIALOGUEINFO> Info; +}NPCDIALOGUEINFO; - typedef struct tagLockOnInfo { - CUnit* pUnit = { nullptr }; - class CMapElement_Interactable* pInteractive = { nullptr }; - class CMapElement_Chest* pChest = { nullptr }; - class CEffect_Container* pEffect = { nullptr }; - }LOCKON_INFO; +typedef struct tagLockOnInfo { + CUnit* pUnit = { nullptr }; + class CMapElement_Interactable* pInteractive = { nullptr }; + class CMapElement_Chest* pChest = { nullptr }; + class CEffect_Container* pEffect = { nullptr }; +}LOCKON_INFO; - typedef struct tegNPCInteractionInfo - { - CGameObject* pOwner = { nullptr }; - _wstring pNPCName; - _wstring pName; - _float4 fNPCPosition{}; - _int iTextID{}; - }NPCINTERACTIONINFO; +typedef struct tegNPCInteractionInfo +{ + CGameObject* pOwner = { nullptr }; + _wstring pNPCName; + _wstring pName; + _float4 fNPCPosition{}; + _int iTextID{}; +}NPCINTERACTIONINFO; - typedef struct tegBoxInteractionInfo - { - CGameObject* pOwner = { nullptr }; - _wstring pName; - _float4 fPosition{}; - }BOXINTERACTIONINFO; +typedef struct tegBoxInteractionInfo +{ + CGameObject* pOwner = { nullptr }; + _wstring pName; + _float4 fPosition{}; +}BOXINTERACTIONINFO; - typedef struct Choice - { - _int iChoice{}; - _int iType{}; - }CHOICEINFO; +typedef struct Choice +{ + _int iChoice{}; + _int iType{}; + _int QuestID{}; +}CHOICEINFO; - typedef struct PropUI - { - _float4 vPosition{}; - _int iIndex{}; - }PROPUI; +typedef struct PropUI +{ + _float4 vPosition{}; + _int iIndex{}; +}PROPUI; - typedef struct tagUnitInfo - { - _wstring pUnit_Name; - _float fCurrentHp{}; - _float fMaxHp{}; - _float fTargetHp{}; - _float fMelee{}; - _float fMagic{}; - _float fDefense{}; - _float fSpeed{}; - _float fAgility{}; - _int iLevel{}; - _float fExprince{}; - _float fMaxExprience{}; - _int iGold{}; - }UNITINFO; +typedef struct tagUnitInfo +{ + _wstring pUnit_Name; + _float fCurrentHp{}; + _float fMaxHp{}; + _float fTargetHp{}; + _float fMelee{}; + _float fMagic{}; + _float fDefense{}; + _float fSpeed{}; + _float fAgility{}; + _int iLevel{}; + _float fExprince{}; + _float fMaxExprience{}; + _int iGold{}; +}UNITINFO; + +typedef struct tagNpcInteract +{ + _bool bInteract{}; + _float fAlpha{}; +}NPCINTERACT; typedef struct tagDamageInfo { @@ -312,15 +320,15 @@ typedef struct tagEffectInfo _float4 vPadding4 = {}; _float4 vPadding5 = {}; _float4 vPadding6 = {}; - }EFFECT_INFO; +}EFFECT_INFO; - typedef struct tagTrailInfo - { - EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL }; - /* 디퓨즈 */ - _bool isDiffuse = {}; - _float fDiffuseAlpha = { 1.f }; - _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; +typedef struct tagTrailInfo +{ + EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL }; + /* 디퓨즈 */ + _bool isDiffuse = {}; + _float fDiffuseAlpha = { 1.f }; + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; /* 마스크 */ _bool isMask = {}; @@ -395,7 +403,7 @@ typedef struct tagEffectInfo struct TimeLine { _float2 m_vTimer = {}; _uint m_eTypeTimeLine = {}; - class CTriggerBox* m_pTriggerBox = { nullptr }; + class CTriggerBox* m_pTriggerBox = { nullptr }; list m_Sockets = {}; }; NS_END diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h index 24ba1473e..ea05beb9e 100644 --- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h +++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h @@ -26,6 +26,7 @@ class CCutSceneInfo final : public CBase HRESULT DeActive_ActiveEvent(_string& strKey); void Load_Events(pair<_string, TimeLine*>& pairTimeLine); HRESULT Clear_AllEvents(); + _bool IsActiveCutScene() { return m_bIsActiveCutScene; } private: CGameInstance* m_pGameInstance = { nullptr }; class CInfoInstance* m_pInfoInstance = { nullptr }; @@ -34,6 +35,7 @@ class CCutSceneInfo final : public CBase map<_string, TimeLine*> m_funcActiveEvents = {}; map<_string, TimeLine*> m_funcWaitEvents = {}; + _bool m_bIsActiveCutScene = { false }; private: void Update_ActiveEvents(_float fTimeDelta); diff --git a/Jusin154_Team3D/Client/Public/CutScene_Fire.h b/Jusin154_Team3D/Client/Public/CutScene_Fire.h new file mode 100644 index 000000000..54284f178 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CutScene_Fire.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CCutScene_Fire final : public CEffect_Container +{ +private: + CCutScene_Fire(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCutScene_Fire(const CCutScene_Fire& rhs); + virtual ~CCutScene_Fire() = 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 = {}; + + +public: + static CCutScene_Fire* 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 diff --git a/Jusin154_Team3D/Client/Public/CutScene_Lightning.h b/Jusin154_Team3D/Client/Public/CutScene_Lightning.h new file mode 100644 index 000000000..124b0e7a9 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CutScene_Lightning.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CCutScene_Lightning final : public CEffect_Container +{ +private: + CCutScene_Lightning(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCutScene_Lightning(const CCutScene_Lightning& rhs); + virtual ~CCutScene_Lightning() = 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 = {}; + + +public: + static CCutScene_Lightning* 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 diff --git a/Jusin154_Team3D/Client/Public/CutScene_Shout.h b/Jusin154_Team3D/Client/Public/CutScene_Shout.h new file mode 100644 index 000000000..39c2ff451 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CutScene_Shout.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CCutScene_Shout final : public CEffect_Container +{ +private: + CCutScene_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCutScene_Shout(const CCutScene_Shout& rhs); + virtual ~CCutScene_Shout() = 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 = {}; + + +public: + static CCutScene_Shout* 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 diff --git a/Jusin154_Team3D/Client/Public/CutScene_Smoke.h b/Jusin154_Team3D/Client/Public/CutScene_Smoke.h new file mode 100644 index 000000000..2343242fa --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CutScene_Smoke.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CCutScene_Smoke final : public CEffect_Container +{ +private: + CCutScene_Smoke(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCutScene_Smoke(const CCutScene_Smoke& rhs); + virtual ~CCutScene_Smoke() = 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 = {}; + + +public: + static CCutScene_Smoke* 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 diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h index 0fc167a15..d5bdc5da4 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h @@ -46,6 +46,8 @@ class CDialogue_Font final : public CGameObject void NextText(); void NextLevel(CHOICEINFO Choice); void ENDText(); + void NextText(_int Index); + void NpcDialogue(_int Index); private: void NpcInfo(void* pArg); void NpcInteract(_bool bInteract); @@ -61,6 +63,8 @@ class CDialogue_Font final : public CGameObject void SpellLearn(); void Quest(); void ReSet(); + + void Quest_Complete(); private: CInfoInstance* m_pInfoInstance = { nullptr }; @@ -82,6 +86,7 @@ class CDialogue_Font final : public CGameObject _wstring m_pName; _int m_iTextID{}; _int m_iNextID{}; + _int m_iQuestID{}; _int m_iType{}; _bool m_bTag{}; diff --git a/Jusin154_Team3D/Client/Public/Elf.h b/Jusin154_Team3D/Client/Public/Elf.h index a62f64d70..e386eee38 100644 --- a/Jusin154_Team3D/Client/Public/Elf.h +++ b/Jusin154_Team3D/Client/Public/Elf.h @@ -56,8 +56,8 @@ class CElf final : public CUnit virtual _wstring Get_NpcName() override; void Set_NpcState(_int iState) { m_eNpcState = iState; } void Set_Target(CUnit& pTarget, CTransform& pTransform); - virtual void Set_Flow(_int Index); - virtual _int Get_Flow(); + virtual void Set_Flow(_int Index, _float fTime) override; + virtual _int Get_Flow() override; protected: CInfoInstance* m_pInfoInstance = { nullptr }; CCharacter_Controller* m_pCharacter_Controller = { nullptr }; @@ -82,6 +82,10 @@ class CElf final : public CUnit _float m_fInteractTime{}; _int m_eNpcState = ENUM_CLASS(ELF_STATE::END); + _int m_iFlowIndex{}; + _float m_fFlowTime{}; + _bool m_bFlow = { false }; + unordered_map<_int, _float4> m_Points; diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index 0b99775dd..f8af7b206 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -14,6 +14,7 @@ class CUIObject; NS_END NS_BEGIN(Client) +class CEffect_Container; class CInfoInstance final : public CBase { @@ -49,6 +50,7 @@ DECLARE_SINGLETON(CInfoInstance) HRESULT Deregist_ActiveMonster(class CMonster* pUnit); void Get_LockOnInfo(LOCKON_INFO& Info); + void Get_LockOnInfoOnlyUnit(CUnit* pUnit); void Set_SearchLockOnFlag(_bool bLockOn); pair Get_NearestPlayerAlly(_fvector vPos); class CMonster* Get_TargetMonster(); @@ -81,6 +83,7 @@ DECLARE_SINGLETON(CInfoInstance) _float Get_Spell_Damage(_int Index); void Add_Event(_wstring EventName, function Event); void Event_CallBack(_wstring EventName, void* pArg = nullptr); + #pragma endregion #pragma region QuestINFO QUESTINFO Get_Quest(_int QuestType, _int QuestID); @@ -93,6 +96,7 @@ DECLARE_SINGLETON(CInfoInstance) #pragma region SpellLearn_Data const SPELLLEARNINFO& Get_SpellLearn(_int Index) const; _int Get_SpellLearnIndex(); + void Spell_UnLock(_int SpellID); #pragma endregion #pragma region Dialogue_Font //void Set_Font(void* pArg); @@ -114,6 +118,7 @@ DECLARE_SINGLETON(CInfoInstance) void Active_Event(_string& strKey); HRESULT DeActive_ActiveEvent(_string& strKey); void Load_Events(pair< _string, struct TimeLine*>& pairTimeLine); + _bool IsActiveCutScene(); #pragma endregion #pragma region Effect diff --git a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h index 67c48aa7f..e1bececdf 100644 --- a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h +++ b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h @@ -36,6 +36,7 @@ class CMapElement_Interactable final : public CMapElement void Set_KinematicFlag(_bool bFlag); void ActivateAt(_fvector vPos); // 풀링 꺼내기, 위치 지정 void Set_Throw(_bool bThrow) { m_bThrow = bThrow; } + _bool Is_Throwing() { return m_bThrow; } private: ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END }; diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 059965650..48c8681f6 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -20,12 +20,12 @@ class CPlayer final : public CUnit , FLOWERS , END }; - typedef struct tagPlayerInitDesc { _float4 vPos; _float4 vRotQ; class CBroomRaceManager* pBroomRaceManager; }PLAYERDESC; + private: CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CPlayer(const CPlayer& Prototype); @@ -126,8 +126,12 @@ class CPlayer final : public CUnit void Player_PixRot(); void Find_HiddenObjects(); void Check_Reparoobejcts(); - void Update_CameraCoordinateSystem(_float fTimeDelta); + void UpdateFootStepSound(); + vector<_float> GetFootStepTiming(_uint AnimIndex); + void PlayFootStepSound(); + void StopFootStepSound(); + #ifdef _DEBUG unique_ptr m_BasicEffect; unique_ptr> m_Batch; @@ -148,7 +152,7 @@ class CPlayer final : public CUnit public: virtual void Reset_Sprint() { m_bSprintToggle = false; } virtual void Reset_Walk() { m_bWalkToggle = false; } - + void Set_Spell_Learning_Success(); private: // UI 연동 추가 void Get_Spell(_int SkillIndex); @@ -197,7 +201,12 @@ class CPlayer final : public CUnit _bool m_bStartSpellAnim = {}; _float4 m_OriginPos = {}; _bool m_bSpell_Learning_Success = {}; - + + _bool m_bFootStepL = {}; + _bool m_bFootStepR = {}; + _float m_fPrevMoveRatio = {}; + _uint m_iFootStepIndex = 0; + _uint m_iPrevAnimIndex = 0; /* 무적 불 변수*/ #ifdef _DEBUG @@ -294,7 +303,7 @@ class CPlayer final : public CUnit void Behavior_Broom_HoverEnter(); HRESULT Behavior_Broom_HoverExitCheck(_float fTimeDelta); void Behavior_Broom_HoverExit(); - + void Behavior_Broom_FlyEnter(); HRESULT Behavior_Broom_FlyExitCheck(_float fTimeDelta); void Behavior_Broom_FlyExit(); diff --git a/Jusin154_Team3D/Client/Public/Quest_Data.h b/Jusin154_Team3D/Client/Public/Quest_Data.h index c33d834fe..5c7cef5ab 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Data.h +++ b/Jusin154_Team3D/Client/Public/Quest_Data.h @@ -36,7 +36,7 @@ class CQuest_Data final : public CBase const vector& Get_AllQuest() const; const vector& Get_ClearQuest() const; vector& Get_AcceptQuest(); - HRESULT Set_AcceptQuest(_int index); + _int Set_AcceptQuest(_int index); private: CInfoInstance* m_pInfoInstance = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/RaceRing.h b/Jusin154_Team3D/Client/Public/RaceRing.h index 8bc69c598..59e3b054a 100644 --- a/Jusin154_Team3D/Client/Public/RaceRing.h +++ b/Jusin154_Team3D/Client/Public/RaceRing.h @@ -1,11 +1,11 @@ #pragma once #include "Client_Define.h" -#include "PartObject.h" +#include "ContainerObject.h" NS_BEGIN(Client) -class CRaceRing final : public CGameObject +class CRaceRing final : public CContainerObject { public: typedef struct RaceRingDesc @@ -37,6 +37,7 @@ class CRaceRing final : public CGameObject private: class CBroomRaceManager* m_pBroomRaceManager = { nullptr }; + class CEffectParts* m_pRingEffect = { nullptr }; CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; _bool m_bTarget = { false }; @@ -47,6 +48,7 @@ class CRaceRing final : public CGameObject private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); + HRESULT Ready_Parts(); public: static CRaceRing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index 9ed016f3e..d2540667e 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -88,6 +88,8 @@ class CRanrok final : public CMonster HRESULT Update_CollidersPosition(); HRESULT Render_Nonblend(); HRESULT Render_Blend(); + virtual HRESULT Render_Blur() override; + virtual HRESULT Render_Bloom() override; void MoveTo(_float fTimeDelta); HRESULT Load_RanrokPos(const _char* pFilePath); public: @@ -258,6 +260,13 @@ class CRanrok final : public CMonster _bool Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo); +#pragma region Ether + class CRanrok_EtherInfo* m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::WINGS)] = {}; + class CShader* m_pEther_Shader = { nullptr }; + + void Ether_Create(); + void Ether_Update(_float fTimeDelata); +#pragma endregion }; NS_END diff --git a/Jusin154_Team3D/Client/Public/Ranrok_EtherInfo.h b/Jusin154_Team3D/Client/Public/Ranrok_EtherInfo.h new file mode 100644 index 000000000..63c92c047 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Ranrok_EtherInfo.h @@ -0,0 +1,81 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CRanrok_EtherInfo final : public CGameObject +{ +public: + typedef struct tagTimeInfo + { + _float2 vAnimIndex = {}; + _float2 vAnimTime = { 0.f , 1.f }; + _float2 vLifeTime = {0.f , 1.f}; + _float2 vDiffuseUVMoveTime = { 0.f , 1.f }; + _float2 vMaskingUVMoveTime = { 0.f , 1.f }; + _float2 vNoiseUVMoveTime = { 0.f , 1.f }; + _float2 vDistortionUVMoveTime = { 0.f , 1.f }; + _float2 vDissolveUVMoveTime = { 0.f , 1.f }; + }TIME_INFO; +private: + CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype); + virtual ~CRanrok_EtherInfo() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + HRESULT Load_Info(const _char* pFilePath, LEVEL eLevel); + HRESULT Save_Info(const _char* pPath); + + _bool isBloom() { return m_Ether_Info.isBloom; } + _bool isBlur() { return m_Ether_Info.isBlur; } + RENDER Get_RenderOrder() { return m_Ether_Info.eRenderOrder; } +public: + void Update_Time(_float fTimeDelta); + void Edit_Ether(); + HRESULT Bind_Ether_ShaderResources(class CShader* pShader); + HRESULT Ether_Begin(class CShader* pShader); +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + + + + + + EFFECT_INFO m_Ether_Info = {}; + TIME_INFO m_ErherTimeInfo = {}; + + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pNoise_TextureCom = { nullptr }; + CTexture* m_pMasking_TextureCom = { nullptr }; + CTexture* m_pDissolve_TextureCom = { nullptr }; + CTexture* m_pEmissive_TextureCom = { nullptr }; + CTexture* m_pDistortion_TextureCom = { nullptr }; + + _string m_strDiffuseName = {}; + _string m_strNoiseName = {}; + _string m_strMaskingName = {}; + _string m_strDissolveName = {}; + _string m_strEmissiveName = {}; + _string m_strDistortionName = {}; + + _string m_strPath = {}; +public: + static CRanrok_EtherInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; +#endif +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h index 45324a65e..8a8734cbb 100644 --- a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h +++ b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h @@ -41,6 +41,7 @@ class CSpellLearn_MovePointer final : public CElementObject void Set_SpellLearn(_int Index); _int Get_SpellTrail(); _bool Get_MoveStart(); + void Set_ID(_int Index); private: void Line(_float fTime, _float2 fMouse); @@ -64,6 +65,7 @@ class CSpellLearn_MovePointer final : public CElementObject _int m_iCurrentLine{}; vector<_float4> m_MoveLine; vector<_float4> m_Boosters; + _int m_iSpellID{}; public: static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/ThestralCarriage.h b/Jusin154_Team3D/Client/Public/ThestralCarriage.h index c33215415..953288d23 100644 --- a/Jusin154_Team3D/Client/Public/ThestralCarriage.h +++ b/Jusin154_Team3D/Client/Public/ThestralCarriage.h @@ -53,8 +53,10 @@ class CThestralCarriage final : public CUnit _float4x4 m_LerpEndMatrix = { }; _float2 m_vLerpTimer = { }; _bool m_bLerp = { false }; + _uint m_iBehavior = { 0 }; _uint m_iAnimationIndex = 0; + _uint m_iStraight = { 0 }; #ifdef _DEBUG _bool m_bRender_WireFrame = { false }; ID3D11RasterizerState* m_pRSS = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index 3f896b725..65eceae93 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -41,12 +41,11 @@ class CUI_Manager final : public CUIObject void Add_Manager_Event(_wstring Name, function Event); void Event_Callback(_wstring Name, void* pArg = nullptr); - private: void Add_Canvas(_wstring Name, class CGameObject* pCanvas); CGameObject* Find_Canvas(const _wstring& Name); - void NpcInteract(_bool bInteract); + void NpcInteract(void* pArg); void Set_Fade(); void Change_Map(); @@ -94,6 +93,8 @@ class CUI_Manager final : public CUIObject _bool m_bRace = { false }; _bool m_bBattle = { false }; + _bool m_bGate = { false }; + _float m_fGateTime{}; public: static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml index 4982d2544..a86dbc248 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml @@ -110,6 +110,117 @@ + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + @@ -152,8 +263,8 @@ - - + + @@ -366,7 +477,7 @@ - + @@ -374,8 +485,8 @@ - - + + @@ -400,7 +511,7 @@ - + @@ -411,8 +522,8 @@ - - + + @@ -437,19 +548,19 @@ - + - + - - + + @@ -474,19 +585,19 @@ - + - + - - + + @@ -511,155 +622,7 @@ - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - + @@ -696,15 +659,114 @@ - + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + - --> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -779,50 +841,13 @@ - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - + + @@ -854,13 +879,51 @@ + + + + + + + + + + + + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + - - + + @@ -896,8 +959,8 @@ - - + + @@ -928,122 +991,6 @@ - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - @@ -1193,6 +1140,80 @@ + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml index 54e57e647..b26a5888f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml @@ -36,13 +36,50 @@ + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + - - + + @@ -78,8 +115,8 @@ - - + + @@ -115,8 +152,45 @@ - - + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + @@ -189,8 +263,8 @@ - - + + @@ -215,7 +289,7 @@ - + @@ -226,119 +300,8 @@ - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - + + @@ -369,47 +332,14 @@ - - + + + + + + - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - @@ -438,12 +368,88 @@ - + ` - + - + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + @@ -480,7 +486,44 @@ - + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + @@ -511,19 +554,19 @@ - + - + - - + + @@ -554,13 +597,13 @@ - + - - + + @@ -591,8 +634,85 @@ - - + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + @@ -602,7 +722,7 @@ false - true + false false false false @@ -622,98 +742,24 @@ - + - - + + - - + + false - true - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - true - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - true + false false false false @@ -739,18 +785,18 @@ - - + + - - + + false - true + false false false false @@ -770,87 +816,89 @@ - + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + - - - - - - - - - - false - true - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - - - - - - - - - - - false - true - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - - - - @@ -887,6 +935,82 @@ + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + @@ -998,5 +1122,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml index 4b27f5fda..f856d95df 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml @@ -1420,6 +1420,44 @@ + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + @@ -1718,7 +1756,7 @@ - + @@ -1755,7 +1793,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index 5890f5101..60cfb9656 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -3,9 +3,9 @@ - - - + + + @@ -21,9 +21,9 @@ - - - + + + @@ -31,23 +31,38 @@ - - + + - - - - + + + + + - - + + + + + + + + + + + + + + + + - - + + @@ -74,8 +89,8 @@ - - + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneFire/Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneFire/Fire.bin new file mode 100644 index 000000000..ca7d52152 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneFire/Fire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd3de1b6353ee2810442a6091e3f0efd3a686a79259b7973075275d57f2c885e +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Lightning_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Lightning_1.bin new file mode 100644 index 000000000..126971fb0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Lightning_1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1641796b1495bc737fa9c59e942665c207fb974385af7224199906ead285488 +size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Screen_Flash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Screen_Flash.bin new file mode 100644 index 000000000..a8b00b581 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Screen_Flash.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:013ff36bc2fc8d42f2dfb0161418113047b33501f7d12826d0d24bbf88ac540c +size 1219 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneSmoke/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneSmoke/Smoke.bin new file mode 100644 index 000000000..619455a11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneSmoke/Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51696d39658ea9d7058f0cb51594d2db6c463a93e7e722a017233f741462ab9f +size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningMesh.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningMesh.bin new file mode 100644 index 000000000..a8a21f1b4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningMesh.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:758ac1197fd57cded50d94ed6d96f1de32fe2285c1acad8fd79ec994bd083c93 +size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningPlane.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningPlane.bin new file mode 100644 index 000000000..acf27ccda --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningPlane.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58e89ee00104323cad8a0710aabc6cac927556c0fd5a8636964158866f05e665 +size 1207 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/Ranrok_Shout/Shout.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/Ranrok_Shout/Shout.bin new file mode 100644 index 000000000..14628bb2e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/Ranrok_Shout/Shout.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30911c76ce422119ffc46006c6ad473be35a7352462e2c0f785049c66b14631b +size 1199 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneFire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneFire.bin new file mode 100644 index 000000000..bce488354 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneFire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d9346d5a513ae8dc642ca71d361c28d359fc7a87affa5d6d7c3de13d57cdb1e +size 78 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneLightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneLightning.bin new file mode 100644 index 000000000..46b88ffed --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneLightning.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04fb82234c45460441da1998acb856f0861bd6e62a4e3f4f54cf9a974592f7ed +size 177 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneSmoke.bin new file mode 100644 index 000000000..c0e1547ab --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneSmoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1674dc6eac73f6a608039f8aca7461779ec8f12fb4d2720c741227a9ecb84b8a +size 80 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Ranrok_Shout.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Ranrok_Shout.bin new file mode 100644 index 000000000..396cebc3c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Ranrok_Shout.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df63a00b53269e5432c74dd38c97555ab840bcf2d55f4bdcfff27b1044568fd8 +size 79 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin index d2c4a8763..731ea73a0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:73ec2cfc0fd0f1cb9de0fa57a257ad2f74f7550754dcbcd123d561f3bfd80cf2 +oid sha256:b5f4b603cd1fdc4b713c0614000b50e6f760d5437b94ae585cfcea78abaf2504 size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin index d29f71284..76f07f8f8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:18ce266881a642bcf12110d78fdf73f1168544a17779a3d1f5f89d013b223bd2 +oid sha256:dc60d48b2814daf283e6e09b6a17891a85e2055b4838f872256313b111f0db56 size 1204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura.bin new file mode 100644 index 000000000..00e3307db --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df1cf149d1684515fe6a356eb4b22f5a89fc6873044086886cdb652c3c76fd1e +size 732 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye.bin new file mode 100644 index 000000000..25e7b6672 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8674f2dd9be4a3d8b75c195c0d1683578c07fd56b3169809c8148ad93ffe74d3 +size 690 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing.bin new file mode 100644 index 000000000..fac0f80cf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a23fc9944329b427ae02203f1552ecae277e7400556f264b9469496e0f00321 +size 743 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin index 38bd5bfe7..eb601beee 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9ec2f3949f22a41dcdcfce5f469e646f9a7b0bf025fb262b859523f34dc91d7b -size 1219 +oid sha256:6a402bc2342e5a343a569cd3aef5d5dee66a495a35dd2b735f6451c32e67506c +size 1216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml index 229374586..a0af520b9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml @@ -10,7 +10,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml index 987e7291a..13845a688 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml @@ -52,7 +52,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml index a8ad8899b..a9833238c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml @@ -5,5 +5,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml index 2f4d236b3..c50865e3e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml @@ -134,7 +134,7 @@ Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml new file mode 100644 index 000000000..4899c423a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl index ae41deabd..d3d7e8442 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl @@ -852,7 +852,7 @@ PS_OUT PS_GLASSES_DSRON_ToSRO(PS_IN In) float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord); float fAlpha = 1.f - vSRO_Mask.b - 0.3f; - Out.vAlbedo = vDiffuse.rgba; + Out.vAlbedo = vDiffuse.rrra; Out.vAlbedo.a = vSRO_Mask.b; Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index d76e4d6de..ea661a3e5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -1617,7 +1617,7 @@ technique11 DefaultTechnique SetDepthStencilState(DSS_Effect, 0); SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); VertexShader = compile vs_5_0 VS_MAIN(); - + PixelShader = compile ps_5_0 PS_NON_NORMALMAP(); } //4 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl new file mode 100644 index 000000000..a8c51a021 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl @@ -0,0 +1,858 @@ +#include "Engine_Shader_Defines.hlsli" +#include "Engine_Shader_Functions.hlsli" + +struct BoneOut +{ + row_major float4x4 Combined; + row_major float4x4 Local; + row_major float4x4 LocalCombined; +}; + +StructuredBuffer g_BoneBuffer : register(t26); +StructuredBuffer g_PrevBoneBuffer : register(t27); + +matrix g_OffsetMatrix[256]; + +matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; +matrix g_WorldMatrixInv, g_ProjMatrixInv, g_ViewMatrixInv; + +matrix g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix; + +Texture2D g_DiffuseTexture : register(t0); + +Texture2D g_NormalTexture : register(t1); +Texture2D g_MaskingTexture : register(t2); +Texture2D g_DissolveTexture : register(t3); +Texture2D g_NoiseTexture : register(t4); + +Texture2D g_EmissiveTexture : register(t6); +Texture2D g_DepthStencilTexture : register(t7); +Texture2D g_DistortionTexture : register(t8); +Texture2D g_DepthTexture : register(t9); +Texture2D g_SurfaceParamsTexture : register(t10); +Texture2D g_NormalMapTexture : register(t11); + + +float4 g_vCamPosition; +float g_fFar; +float g_fUsingSurfaceParams; +float g_fMBIntensity = 1.f; + +float g_fWinSizeX; +float g_fWinSizeY; + +/* 소프트 이펙트 */ +bool g_isNonSoftEffect; +bool g_isScreenFX; +/* 디퓨즈 */ +float4 g_vColor; +float g_fDiffuseAlpha; + +float2 g_vDiffuseUVGainAmount; +float2 g_vUVCutting; + +int g_iDiffuseMoveLerpOption; + +bool g_isDiffuseUVMove; + +bool g_isDiffuse_R; +bool g_isDiffuse_G; +bool g_isDiffuse_B; + +/* 노이즈 */ +bool g_isNoiseColor; +bool g_isNoiseAlpha; +bool g_isNoiseUVMove; + +bool g_isNoise_B; +bool g_isNoise_G; + +float4 g_vNoiseColor; +float2 g_vNoiseUVGainAmount; +float2 g_vUVNoiseCutting; + +int g_iNoiseMoveLerpOption; +/* 마스크 */ + +bool g_isMask_G; +bool g_isMask_B; + +bool g_isMaskClampSample; +bool g_isMaskUVMove; + +float2 g_vMaskingUVGainAmount; +float2 g_vMaskDistortionUVGainAmount; +float2 g_vUVMaskCutting; + +int g_iMaskMoveLerpOption; +float2 g_vMaskOffset; +/* 디졸브 */ + + +float g_fDissolveDelay; +float g_fReverseDissolveDelay; +float2 g_vDissolveUVGainAmount; + +bool g_isDissolve; +bool g_isDissolveMove; +bool g_isReverseDissolve; +bool g_isNomalDissolve; + +bool g_isNoDissolveSmoothStep; + +bool g_isDissolve_B; +bool g_isDissolve_G; + +float g_fDissolveMaskEdge; +float g_fDissolveSoftMask; +float g_fDissolveCutRatio; +float2 g_vDissolveSmoothRange; + +/* 디스토션 */ + +int g_iMaskDistortionMoveLerpOption; +int g_iDiffuseDistortionMoveLerpOption; + +float2 g_vDistortionTime; + +/* 블러 */ +float g_fBlurIntensity; //블러 세기 +float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기 + +bool g_isBlurNoEmissive; +bool g_isBlurColor; +bool g_isBlurDissolve; + +float4 g_vBlurColor; + +/* 이미시브 */ +float4 g_vEmissive; +float g_fEmissiveStrength; + +float g_fSoftenExp; +float g_fSoftStrength; +float g_fCoreBoost; +float g_fRadius; +float g_fEmissiveColorCut; + +bool g_isEmissiveDissolve; +bool g_isEmissiveDissolveReverse; + +/* 소프트 마스크*/ +float g_fSoftMaskEdge; +float g_fSoftMask; + +/* Flag */ +bool g_isDiffuse; +bool g_isMasking; + +bool g_isNoise; +bool g_isEmissive; +bool g_isDistortion; + +/* 블룸 */ +float g_fBloomStrength; +int g_iBloomType; + +bool g_isBloomDissolve; +bool g_isBloomReverseDissolve; + + +/* 림라이트 */ +bool g_isRimLight; + +float g_fRimLightPower; +float g_fRimLightStrength; +float4 g_vRimLightColor; + +/* 모델 디스토션 */ + +float g_fModelDistortIntensity; + +/* 모델 블러 */ + +float g_fModelBlurIntensity; + + +/* 시간 값들 */ +float g_fAnimIndex; +float2 g_vLifeTime; +float2 g_vDiffuseUVMoveTime; +float2 g_vMaskingUVMoveTime; +float2 g_vNoiseUVMoveTime; +float2 g_vDistortionUVMoveTime; +float2 g_vDissolveUVMoveTime; + +struct VS_IN +{ + float3 vPosition : POSITION; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + uint4 vBlendIndex : BLENDINDEX; + float4 vBlendWeight : BLENDWEIGHT; +}; + +struct VS_OUT +{ + float4 vPosition : SV_Position; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + float4 vWorldPos : TEXCOORD1; + float4 vProjPos : TEXCOORD2; + float4 vPrevProjPos : TEXCOORD3; +}; + +struct PS_IN +{ + float4 vPosition : SV_Position; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + float4 vWorldPos : TEXCOORD1; + float4 vProjPos : TEXCOORD2; + float4 vPrevProjPos : TEXCOORD3; +}; + +struct PS_OUT +{ + float4 vDiffuse : SV_TARGET0; + float4 vRevealage : SV_TARGET1; +}; + +struct PS_BLNED_OUT +{ + float4 vDiffuse : SV_TARGET0; +}; + + +VS_OUT VS_MAIN(VS_IN In) +{ + VS_OUT Out = (VS_OUT) 0; + + float4 w = In.vBlendWeight; + float sumW = max(dot(w, 1.0f), 1e-6f); + w /= sumW; + + matrix BoneMatrix = + mul(g_OffsetMatrix[In.vBlendIndex.x], + mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x)) + + mul(g_OffsetMatrix[In.vBlendIndex.y], + mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y)) + + mul(g_OffsetMatrix[In.vBlendIndex.z], + mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z)) + + mul(g_OffsetMatrix[In.vBlendIndex.w], + mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w)); + + matrix PrevBoneMatrix = + mul(g_OffsetMatrix[In.vBlendIndex.x], + mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x)) + + mul(g_OffsetMatrix[In.vBlendIndex.y], + mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y)) + + mul(g_OffsetMatrix[In.vBlendIndex.z], + mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z)) + + mul(g_OffsetMatrix[In.vBlendIndex.w], + mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w)); + + vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); + vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix); + vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix); + vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix); + vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix); + + + matrix matWV, matWVP; + matWV = mul(g_WorldMatrix, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + matrix matPrevWV, matPrevWVP; + matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix); + matPrevWVP = mul(matPrevWV, g_PrevProjMatrix); + + Out.vPosition = mul(vPosition, matWVP); + Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz; + Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz; + Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz; + Out.vTexcoord = In.vTexcoord; + Out.vWorldPos = mul(vPosition, g_WorldMatrix); + Out.vProjPos = Out.vPosition; + Out.vPrevProjPos = mul(vPrevPosition, matPrevWVP); + return Out; +} + + + +float4 DrawEffect(PS_IN In) +{ + float4 vMtrlDiffuse = float4(0.f ,0.f ,0.f ,0.f); + float4 vMtrlMask; + float4 vMtrlNoise; + float4 vMtrlDissolve; + float4 vMtrlDistortion; + + float fAnimIndex = g_fAnimIndex; + float2 vDiffuseTime = g_vDiffuseUVMoveTime; + float2 vMaskingTime = g_vMaskingUVMoveTime; + float2 vNoiseUVMoveTime = g_vNoiseUVMoveTime; + float2 vDistortionUVMoveTime = g_vDistortionUVMoveTime; + float2 vDissolveUVMoveTime = g_vDissolveUVMoveTime; + float2 vLifeTime = g_vLifeTime; + + clip(vLifeTime.y - vLifeTime.x); + + + if (g_isDiffuse == true) + { + float2 UV; // 이미지의 UV값 + + UV = UV_Cutting(In.vTexcoord, g_vUVCutting, uint(fAnimIndex)); + + if (g_isDiffuseUVMove) + { + UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption); + } + + if (g_isDistortion == true) + { + + float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iMaskDistortionMoveLerpOption); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); + + + float fDistortionIntensity = g_fNoiseDistortionIntensity; + + if (g_vDistortionTime.y != 0) + { + fDistortionIntensity = g_fNoiseDistortionIntensity * ((vLifeTime.x / vLifeTime.y)); + } + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + UV = UV + (vMtrlDistortion - 0.5f).r * fDistortionIntensity; + + + } + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV); + + if (g_isDiffuse_R) + vMtrlDiffuse.r = vDiffuse.r; + + if (g_isDiffuse_G) + vMtrlDiffuse.g = vDiffuse.g; + + if (g_isDiffuse_B) + vMtrlDiffuse.b = vDiffuse.b; + + if ((g_isDiffuse_R || g_isDiffuse_G || g_isDiffuse_B) == false) // RGB중 하나도 켜지지 않았더라면 + vMtrlDiffuse = vDiffuse; + + if (g_vColor.a > 0) + vMtrlDiffuse = saturate(g_vColor + vMtrlDiffuse); + + } + else + { + vMtrlDiffuse = g_vColor; + } + + + /* 노이즈 */ + + if (g_isNoise) + { + float2 vNoiseCut = g_vUVNoiseCutting; + + if (length(vNoiseCut) < FLT_EPSILON3) + vNoiseCut = float2(1.f, 1.f); + + float2 vNoiseUV = UV_Cutting(In.vTexcoord, vNoiseCut, uint(fAnimIndex)); + + if (g_isNoiseUVMove == true) + vNoiseUV = In.vTexcoord + SelectLerpUV(g_vNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iNoiseMoveLerpOption); + + vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); + + if (g_isNoiseAlpha) + { + + float fNoiseValue = vMtrlNoise.r; + + if (g_isNoise_G == true) + fNoiseValue = vMtrlNoise.g; + + if (g_isNoise_B == true) + fNoiseValue = vMtrlNoise.b; + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fNoiseValue.r); + } + + if (g_isNoiseColor) + { + float fNoiseValue = vMtrlNoise.r; + + if (g_isNoise_G == true) + fNoiseValue = vMtrlNoise.g; + + if (g_isNoise_B == true) + fNoiseValue = vMtrlNoise.b; + + vMtrlDiffuse.rgb *= fNoiseValue; + } + + if (length(g_vNoiseColor) > FLT_EPSILON5) + vMtrlDiffuse.rgb *= g_vNoiseColor.rgb; + + + } + + /* 마스크 */ + if (g_isMasking == true) + { + float2 vMaskTexcoord = In.vTexcoord; + + vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, uint(fAnimIndex)); + + vMaskTexcoord += g_vMaskOffset; + // 마스크 디스토션 + if (g_isDistortion == true) + { + + float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iMaskDistortionMoveLerpOption); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); + + + + float fDistortionIntensity = g_fNoiseDistortionIntensity; + + if (g_vDistortionTime.y != 0) + { + fDistortionIntensity = g_fNoiseDistortionIntensity * ((vLifeTime.x / vLifeTime.y)); + } + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * fDistortionIntensity; + + } + + if (g_isMaskUVMove) + { + if (vMaskingTime.y > 0) + vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption); + } + + if (g_isMaskClampSample == true) + vMtrlMask = g_MaskingTexture.Sample(ClampLinearSampler, vMaskTexcoord); + else + vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord); + + float fMaskValue = vMtrlMask.r; + + if (g_isMask_G == true) + fMaskValue = vMtrlMask.g; + + if (g_isMask_B == true) + fMaskValue = vMtrlMask.b; + + float fSoftMask; + + if (g_fSoftMask > FLT_EPSILON5) + fSoftMask = saturate((fMaskValue - g_fSoftMaskEdge) * g_fSoftMask); + else + fSoftMask = fMaskValue; + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask); + + + } + else + { + vMtrlMask.r = 1.f; + } + + + vMtrlDiffuse.a *= g_fDiffuseAlpha; + + + clip(vMtrlDiffuse.a - FLT_EPSILON7); + + if (g_isDissolve == true) + { + float fTimeX = (vLifeTime.x - g_fDissolveDelay); + float fTimeY = (vLifeTime.y - g_fDissolveDelay); + float fTimeRatio = 0; + + if (g_fDissolveDelay <= FLT_EPSILON5) + { + fTimeRatio = vLifeTime.x / vLifeTime.y; + } + else if (fTimeX > 0 && fTimeY != 0) + { + fTimeRatio = saturate(fTimeX / fTimeY); + } + + + if (g_isNomalDissolve) + { + if (g_isReverseDissolve == false) + { + vMtrlDiffuse.a *= saturate((0.96f - fTimeRatio)); + } + else + { + vMtrlDiffuse.a *= vLifeTime.x / vLifeTime.y; + + } + + } + + float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0); + + + if (g_fDissolveCutRatio > FLT_EPSILON5) + { + if (g_isDissolveMove) + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV); + else + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); + + float fDissolveValue = vMtrlDissolve.r; + + if (g_isDissolve_G == true) + fDissolveValue = vMtrlDissolve.g; + + if (g_isDissolve_B == true) + fDissolveValue = vMtrlDissolve.b; + + float fSoftDissolve; + + if (g_fDissolveSoftMask > FLT_EPSILON5) + fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask); + else + fSoftDissolve = fDissolveValue; + + vMtrlDissolve.r = fSoftDissolve; + + if (g_isReverseDissolve == true) + { + + clip((vLifeTime.x / vLifeTime.y) - vMtrlDissolve.r); + } + else + { + + + if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기 + { + fTimeRatio = g_fDissolveCutRatio; + + } + + float fFade = smoothstep(fTimeRatio - g_vDissolveSmoothRange.x, fTimeRatio + g_vDissolveSmoothRange.y, vMtrlDissolve.r); + + + + if (g_isNoDissolveSmoothStep == true) + { + fFade = smoothstep(fTimeRatio, fTimeRatio + FLT_EPSILON5, vMtrlDissolve.r); + + } + + vMtrlDiffuse.a *= fFade; + + } + } + + + /* */ + + + + clip(vMtrlDiffuse.a - FLT_EPSILON7); + } + + + return vMtrlDiffuse; +} + +float4 EmissiveDraw(PS_IN In, float4 Diffuse) +{ + float2 vLifeTime = g_vLifeTime; + + float4 vEmissiveMtrl = float4(0.f, 0.f, 0.f, 0.f); + float2 CenteredUV = In.vTexcoord - 0.5f; + float fEmissive = 0.f; + float fEmissiveStrength = g_fEmissiveStrength; + + if (g_fEmissiveColorCut >= FLT_EPSILON5) + { + if (g_fEmissiveColorCut > length(Diffuse.rgb)) + { + return vEmissiveMtrl; + } + + } + + if (g_fRadius >= FLT_EPSILON5) + { + float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지 + + float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength + + float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조 + + fEmissive = fSoftEdge + fCore; + + if (g_isEmissive == true) + { + vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); + } + else + { + vEmissiveMtrl = g_vEmissive; + } + + if (g_isEmissiveDissolve == true) + { + fEmissiveStrength *= (1.f - vLifeTime.x / vLifeTime.y); + + if (fEmissiveStrength <= 0.05f) + fEmissiveStrength = 0; + + } + + if (g_isEmissiveDissolveReverse == true) + { + fEmissiveStrength *= (vLifeTime.x / vLifeTime.y); + + } + } + + return saturate(vEmissiveMtrl * fEmissive * fEmissiveStrength); + +} + + + +PS_OUT BlendedWeight(float4 fDiffuse, float fLinearZ) +{ + PS_OUT Out = (PS_OUT)0; + + float3 vColor = fDiffuse.rgb; + float fAlpha = fDiffuse.a; + + + // float fWeight = + //max( + // min(1.0, max(max(vColor.r, vColor.g), vColor.b) * fAlpha), fAlpha) + // * + // clamp(0.01 / (1e-4 + pow(fLinearZ / 200, 4.0)), 0.01f, 1000); + + + + //float fWeight = clamp(0.03f / (1e-5 + pow(fLinearZ, 4.0f)), 0.01, 3e3); + //fWeight = max(fWeight, 1.0); + + //이게 오리지널 웨이트 함수 + + //float fWeight = pow(fLinearZ, -2.5); + + // float fWeight = clamp(pow(fLinearZ, -2.5f), 1.0f, 1000.0f); + + + float linearZPositive = max(fLinearZ, 1e-6f); + float fWeight = clamp(pow(linearZPositive, -2.5f), 1.0f, 10.0f); + + + Out.vDiffuse = float4(vColor.rgb * fAlpha, fAlpha) * fWeight; + + Out.vRevealage.r = fAlpha; + + + return Out; +} + +float4 RimLight(PS_IN In) +{ + float4 vRimLight = float4(0.f, 0.f, 0.f, 0.f); + + if (g_isRimLight == true) + { + float4 vDir = normalize(g_vCamPosition - In.vWorldPos); + vDir.w = 0.f; + + vRimLight = saturate(dot(float4(In.vNormal.rgb, 0.f), vDir)); + + vRimLight = pow(1.f - vRimLight, g_fRimLightPower); + vRimLight = vRimLight * g_vRimLightColor * g_fRimLightStrength; + } + + return vRimLight; +} + + +PS_OUT PS_NON_NORMALMAP(PS_IN In) +{ + PS_OUT Out = (PS_OUT) 0; + + + float4 vMtrlDiffuse; + + vMtrlDiffuse = DrawEffect(In); + + vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb; + + vMtrlDiffuse += RimLight(In); + + + Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w); + + return Out; +} + + +PS_BLNED_OUT PS_BLEND(PS_IN In) +{ + PS_BLNED_OUT Out; + + float4 vMtrlDiffuse; + + vMtrlDiffuse = DrawEffect(In); + + vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb; + + vMtrlDiffuse += RimLight(In); + + Out.vDiffuse = vMtrlDiffuse; + return Out; +} + +PS_BLNED_OUT PS_BLUR(PS_IN In) +{ + PS_BLNED_OUT Out; + + float4 vMtrlDiffuse; + float2 vLifeTime = g_vLifeTime; + + vMtrlDiffuse = DrawEffect(In); + + if (g_isBlurColor == true) + { + clip(length(vMtrlDiffuse.rgb) - FLT_EPSILON5); + + vMtrlDiffuse = float4(g_vBlurColor.rgb, vMtrlDiffuse.a); + } + + + vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb; + + vMtrlDiffuse.a *= 5.f; + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a); + + float fBulrIntensity = g_fBlurIntensity; + + if (g_isBlurDissolve == true) + { + fBulrIntensity *= 1.f - (vLifeTime.x / vLifeTime.y); + + fBulrIntensity = saturate(fBulrIntensity); + } + + Out.vDiffuse = float4(vMtrlDiffuse.rgb * fBulrIntensity, vMtrlDiffuse.a); + + return Out; +} + +PS_BLNED_OUT PS_BLOOM(PS_IN In) +{ + PS_BLNED_OUT Out; + + float2 vLifeTime = g_vLifeTime; + + float4 vMtrlDiffuse = float4(0.f, 0.f, 0.f, 0.f); + + vMtrlDiffuse = DrawEffect(In); + + + vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb; + + vMtrlDiffuse += RimLight(In); + + float fBloomStrength = g_fBloomStrength; + + if (g_isBloomDissolve == true) + { + fBloomStrength = g_fBloomStrength * (1.f - (vLifeTime.x / vLifeTime.y)); + } + + + if (g_isBloomReverseDissolve == true) + { + fBloomStrength = g_fBloomStrength * ((vLifeTime.x / vLifeTime.y)); + } + + Out.vDiffuse = vMtrlDiffuse * fBloomStrength; + + return Out; +} + +technique11 DefaultTechnique +{ +//0 + pass NON_NOMALMAP + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + PixelShader = compile ps_5_0 PS_NON_NORMALMAP(); + } +//1 + pass WEIGHTBLEND + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + PixelShader = compile ps_5_0 PS_NON_NORMALMAP(); + } +//2 + pass BLEND + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + PixelShader = compile ps_5_0 PS_BLEND(); + } + +//3 + pass Blur + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + PixelShader = compile ps_5_0 PS_BLUR(); + } + +//4 + pass BLOOM + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + PixelShader = compile ps_5_0 PS_BLOOM(); + } +} + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (1024055054) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (1024055054) [1].wav new file mode 100644 index 000000000..7be3c245c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (1024055054) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (151130021) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (151130021) [1].wav new file mode 100644 index 000000000..7822390f7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (151130021) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (267888492) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (267888492) [1].wav new file mode 100644 index 000000000..238ea1e9e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (267888492) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (282207226) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (282207226) [1].wav new file mode 100644 index 000000000..48e14d2c7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (282207226) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (317615650) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (317615650) [1].wav new file mode 100644 index 000000000..f146e66bb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (317615650) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (369477587) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (369477587) [1].wav new file mode 100644 index 000000000..8c56a27c4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (369477587) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (419442525) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (419442525) [1].wav new file mode 100644 index 000000000..f3821e8ff Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (419442525) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (551973080) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (551973080) [1].wav new file mode 100644 index 000000000..6a0b0743a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (551973080) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (958636393) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (958636393) [1].wav new file mode 100644 index 000000000..0be6c0802 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_center (958636393) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (181792848) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (181792848) [1].wav new file mode 100644 index 000000000..94728c132 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (181792848) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (232957193) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (232957193) [1].wav new file mode 100644 index 000000000..c395ce12e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (232957193) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (260888206) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (260888206) [1].wav new file mode 100644 index 000000000..58baecb6c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (260888206) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (295378881) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (295378881) [1].wav new file mode 100644 index 000000000..fa07fd316 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (295378881) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (432646183) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (432646183) [1].wav new file mode 100644 index 000000000..fc2ff4f86 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (432646183) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (65992930) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (65992930) [1].wav new file mode 100644 index 000000000..f5d2e5700 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (65992930) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (674648981) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (674648981) [1].wav new file mode 100644 index 000000000..8e6fb223e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (674648981) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (83547268) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (83547268) [1].wav new file mode 100644 index 000000000..a90dedbf7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (83547268) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (895934903) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (895934903) [1].wav new file mode 100644 index 000000000..9a37baaeb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_down (895934903) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (1065900714) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (1065900714) [1].wav new file mode 100644 index 000000000..1b168e421 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (1065900714) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (112212100) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (112212100) [1].wav new file mode 100644 index 000000000..5308a17ff Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (112212100) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (340551448) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (340551448) [1].wav new file mode 100644 index 000000000..57a9df554 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (340551448) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (366895946) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (366895946) [1].wav new file mode 100644 index 000000000..8464f17c9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (366895946) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (376506210) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (376506210) [1].wav new file mode 100644 index 000000000..f4ce6f8df Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (376506210) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (602297919) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (602297919) [1].wav new file mode 100644 index 000000000..b7dcf660c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (602297919) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (687768135) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (687768135) [1].wav new file mode 100644 index 000000000..1ffe506b2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (687768135) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (7957874) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (7957874) [1].wav new file mode 100644 index 000000000..3c70b1399 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (7957874) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (973859855) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (973859855) [1].wav new file mode 100644 index 000000000..76a04d9a2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_left (973859855) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (1065900714) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (1065900714) [1].wav new file mode 100644 index 000000000..d8afa17eb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (1065900714) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (112212100) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (112212100) [1].wav new file mode 100644 index 000000000..7fa7156ae Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (112212100) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (340551448) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (340551448) [1].wav new file mode 100644 index 000000000..a8d3db045 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (340551448) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (366895946) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (366895946) [1].wav new file mode 100644 index 000000000..de32f61ad Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (366895946) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (376506210) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (376506210) [1].wav new file mode 100644 index 000000000..07f96a07b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (376506210) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (602297919) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (602297919) [1].wav new file mode 100644 index 000000000..624b9c21b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (602297919) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (687768135) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (687768135) [1].wav new file mode 100644 index 000000000..273100a8b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (687768135) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (7957874) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (7957874) [1].wav new file mode 100644 index 000000000..894fc0fb1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (7957874) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (973859855) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (973859855) [1].wav new file mode 100644 index 000000000..623ad7211 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_right (973859855) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (181792848) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (181792848) [1].wav new file mode 100644 index 000000000..7a72c21e0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (181792848) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (232957193) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (232957193) [1].wav new file mode 100644 index 000000000..21a279445 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (232957193) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (260888206) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (260888206) [1].wav new file mode 100644 index 000000000..c76d724ef Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (260888206) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (295378881) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (295378881) [1].wav new file mode 100644 index 000000000..5a2d66a59 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (295378881) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (432646183) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (432646183) [1].wav new file mode 100644 index 000000000..d8a4f886a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (432646183) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (65992930) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (65992930) [1].wav new file mode 100644 index 000000000..0fd368da1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (65992930) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (674648981) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (674648981) [1].wav new file mode 100644 index 000000000..7779d96ea Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (674648981) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (83547268) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (83547268) [1].wav new file mode 100644 index 000000000..70b55dc44 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (83547268) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (895934903) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (895934903) [1].wav new file mode 100644 index 000000000..f26a36afe Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/avatar_broom_up (895934903) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (1024055054) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (1024055054) [1].wav new file mode 100644 index 000000000..e5091c608 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (1024055054) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (151130021) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (151130021) [1].wav new file mode 100644 index 000000000..3f7f12516 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (151130021) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (267888492) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (267888492) [1].wav new file mode 100644 index 000000000..3299eeef0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (267888492) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (282207226) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (282207226) [1].wav new file mode 100644 index 000000000..1820e5ba9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (282207226) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (317615650) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (317615650) [1].wav new file mode 100644 index 000000000..dc257a579 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (317615650) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (369477587) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (369477587) [1].wav new file mode 100644 index 000000000..3038eca9e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (369477587) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (419442525) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (419442525) [1].wav new file mode 100644 index 000000000..c7b335d62 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (419442525) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (551973080) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (551973080) [1].wav new file mode 100644 index 000000000..d550cd6e1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (551973080) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (958636393) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (958636393) [1].wav new file mode 100644 index 000000000..25e974abc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_center (958636393) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (1047946602) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (1047946602) [1].wav new file mode 100644 index 000000000..1adf9f9f2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (1047946602) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (802519570) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (802519570) [1].wav new file mode 100644 index 000000000..440eff453 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (802519570) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (927926799) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (927926799) [1].wav new file mode 100644 index 000000000..da3aa25f3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_dismount (927926799) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (181792848) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (181792848) [1].wav new file mode 100644 index 000000000..caaa8bfb7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (181792848) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (232957193) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (232957193) [1].wav new file mode 100644 index 000000000..3b1ee4ac6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (232957193) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (260888206) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (260888206) [1].wav new file mode 100644 index 000000000..8096e2c67 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (260888206) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (295378881) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (295378881) [1].wav new file mode 100644 index 000000000..ca1495bbb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (295378881) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (432646183) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (432646183) [1].wav new file mode 100644 index 000000000..37857451d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (432646183) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (65992930) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (65992930) [1].wav new file mode 100644 index 000000000..382aa8896 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (65992930) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (674648981) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (674648981) [1].wav new file mode 100644 index 000000000..f59546364 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (674648981) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (83547268) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (83547268) [1].wav new file mode 100644 index 000000000..89e18011d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (83547268) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (895934903) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (895934903) [1].wav new file mode 100644 index 000000000..dcf44e28d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_down (895934903) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (11532379) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (11532379) [1].wav new file mode 100644 index 000000000..422028b42 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (11532379) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (381571695) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (381571695) [1].wav new file mode 100644 index 000000000..7fa991f8d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (381571695) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (431257685) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (431257685) [1].wav new file mode 100644 index 000000000..3e4030732 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (431257685) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (777386815) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (777386815) [1].wav new file mode 100644 index 000000000..12817560c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (777386815) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (914116874) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (914116874) [1].wav new file mode 100644 index 000000000..6baf8ae77 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (914116874) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (95376617) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (95376617) [1].wav new file mode 100644 index 000000000..51828593f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight (95376617) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (11532379) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (11532379) [1].wav new file mode 100644 index 000000000..959c8dc9b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (11532379) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (381571695) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (381571695) [1].wav new file mode 100644 index 000000000..d1c4cf312 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (381571695) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (431257685) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (431257685) [1].wav new file mode 100644 index 000000000..b7f0aa725 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (431257685) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (777386815) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (777386815) [1].wav new file mode 100644 index 000000000..e7f3f3c9a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (777386815) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (914116874) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (914116874) [1].wav new file mode 100644 index 000000000..3fe15b78a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (914116874) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (95376617) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (95376617) [1].wav new file mode 100644 index 000000000..528d79e33 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_Stop (95376617) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (201419163) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (201419163) [1].wav new file mode 100644 index 000000000..1e5334543 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (201419163) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (69023624) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (69023624) [1].wav new file mode 100644 index 000000000..c6a2d8f02 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (69023624) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (834550242) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (834550242) [1].wav new file mode 100644 index 000000000..3138ecd70 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (834550242) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (943912536) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (943912536) [1].wav new file mode 100644 index 000000000..17dbe01d1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_boost_Play (943912536) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_collision_front_motion (237795033) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_collision_front_motion (237795033) [1].wav new file mode 100644 index 000000000..e69de29bb diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (1029527143) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (1029527143) [1].wav new file mode 100644 index 000000000..7c9bd8b9a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (1029527143) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (201419163) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (201419163) [1].wav new file mode 100644 index 000000000..3d58f76eb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (201419163) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (268245443) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (268245443) [1].wav new file mode 100644 index 000000000..ba28978ab Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (268245443) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (376737246) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (376737246) [1].wav new file mode 100644 index 000000000..39991c377 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (376737246) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (524463427) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (524463427) [1].wav new file mode 100644 index 000000000..b1ca751ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (524463427) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (551767230) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (551767230) [1].wav new file mode 100644 index 000000000..9074f7573 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (551767230) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (69023624) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (69023624) [1].wav new file mode 100644 index 000000000..3daa265b5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (69023624) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (834550242) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (834550242) [1].wav new file mode 100644 index 000000000..e3a1e9300 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (834550242) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (83932423) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (83932423) [1].wav new file mode 100644 index 000000000..0409e508f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (83932423) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (943912536) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (943912536) [1].wav new file mode 100644 index 000000000..d8d27ae05 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_ring_boost_Play (943912536) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (1029527143) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (1029527143) [1].wav new file mode 100644 index 000000000..630cec587 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (1029527143) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (268245443) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (268245443) [1].wav new file mode 100644 index 000000000..4f486b326 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (268245443) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (376737246) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (376737246) [1].wav new file mode 100644 index 000000000..9ffac6034 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (376737246) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (524463427) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (524463427) [1].wav new file mode 100644 index 000000000..f823dde19 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (524463427) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (551767230) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (551767230) [1].wav new file mode 100644 index 000000000..6dcb17e72 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (551767230) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (83932423) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (83932423) [1].wav new file mode 100644 index 000000000..1d59f9771 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_Play (83932423) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_left_motion_Play (49588465) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_left_motion_Play (49588465) [1].wav new file mode 100644 index 000000000..c2efcd406 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_left_motion_Play (49588465) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_right_motion_Play (775150786) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_right_motion_Play (775150786) [1].wav new file mode 100644 index 000000000..18a4c7769 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_flight_roll_right_motion_Play (775150786) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_grab (140277022) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_grab (140277022) [1].wav new file mode 100644 index 000000000..bc0385283 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_grab (140277022) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (1072373224) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (1072373224) [1].wav new file mode 100644 index 000000000..327a1601c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (1072373224) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (221516915) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (221516915) [1].wav new file mode 100644 index 000000000..3f3de728f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (221516915) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (291433466) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (291433466) [1].wav new file mode 100644 index 000000000..a7b1282ce Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (291433466) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (324382011) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (324382011) [1].wav new file mode 100644 index 000000000..61e274a23 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (324382011) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (366895946) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (366895946) [1].wav new file mode 100644 index 000000000..95e3ac4e6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (366895946) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (377098119) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (377098119) [1].wav new file mode 100644 index 000000000..fe5151196 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (377098119) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (433011844) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (433011844) [1].wav new file mode 100644 index 000000000..75001f17f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (433011844) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (482968552) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (482968552) [1].wav new file mode 100644 index 000000000..6c0906445 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (482968552) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (514468712) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (514468712) [1].wav new file mode 100644 index 000000000..9f5e71299 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_left (514468712) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver (256123492) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver (256123492) [1].wav new file mode 100644 index 000000000..4063dd446 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver (256123492) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver (652467878) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver (652467878) [1].wav new file mode 100644 index 000000000..c45c04d63 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver (652467878) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver_stop (256123492) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver_stop (256123492) [1].wav new file mode 100644 index 000000000..bf3353742 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver_stop (256123492) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver_stop (652467878) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver_stop (652467878) [1].wav new file mode 100644 index 000000000..ef47d81f8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_maneuver_stop (652467878) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_race_bubble_pop_Play (693560337) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_race_bubble_pop_Play (693560337) [1].wav new file mode 100644 index 000000000..83067a80e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_race_bubble_pop_Play (693560337) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (1072373224) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (1072373224) [1].wav new file mode 100644 index 000000000..ca568db9a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (1072373224) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (221516915) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (221516915) [1].wav new file mode 100644 index 000000000..1aa8d897b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (221516915) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (291433466) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (291433466) [1].wav new file mode 100644 index 000000000..666f65e0f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (291433466) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (324382011) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (324382011) [1].wav new file mode 100644 index 000000000..22c851aa1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (324382011) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (366895946) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (366895946) [1].wav new file mode 100644 index 000000000..232919371 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (366895946) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (377098119) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (377098119) [1].wav new file mode 100644 index 000000000..c48720344 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (377098119) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (433011844) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (433011844) [1].wav new file mode 100644 index 000000000..020d9a957 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (433011844) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (482968552) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (482968552) [1].wav new file mode 100644 index 000000000..e020a6d8c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (482968552) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (514468712) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (514468712) [1].wav new file mode 100644 index 000000000..624b8b98d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_right (514468712) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_stick_fall_Play (154318631) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_stick_fall_Play (154318631) [1].wav new file mode 100644 index 000000000..dff55e242 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_stick_fall_Play (154318631) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_stick_fall_Play (904480772) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_stick_fall_Play (904480772) [1].wav new file mode 100644 index 000000000..483a58ed2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_stick_fall_Play (904480772) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_summon (606874062) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_summon (606874062) [1].wav new file mode 100644 index 000000000..85d88a28e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_summon (606874062) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (181792848) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (181792848) [1].wav new file mode 100644 index 000000000..91d5b5d43 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (181792848) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (232957193) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (232957193) [1].wav new file mode 100644 index 000000000..12064a2f8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (232957193) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (260888206) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (260888206) [1].wav new file mode 100644 index 000000000..66f1f3121 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (260888206) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (295378881) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (295378881) [1].wav new file mode 100644 index 000000000..40c4b6544 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (295378881) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (432646183) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (432646183) [1].wav new file mode 100644 index 000000000..359a7fbf4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (432646183) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (65992930) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (65992930) [1].wav new file mode 100644 index 000000000..617128dcf Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (65992930) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (674648981) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (674648981) [1].wav new file mode 100644 index 000000000..be23c592a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (674648981) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (83547268) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (83547268) [1].wav new file mode 100644 index 000000000..43daf4062 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (83547268) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (895934903) [1].wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (895934903) [1].wav new file mode 100644 index 000000000..024534284 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/broom_up (895934903) [1].wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/list.txt b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/list.txt new file mode 100644 index 000000000..2b4670ce9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Broom/list.txt @@ -0,0 +1,138 @@ +avatar_broom_center (1024055054) [1].wav +avatar_broom_center (151130021) [1].wav +avatar_broom_center (267888492) [1].wav +avatar_broom_center (282207226) [1].wav +avatar_broom_center (317615650) [1].wav +avatar_broom_center (369477587) [1].wav +avatar_broom_center (419442525) [1].wav +avatar_broom_center (551973080) [1].wav +avatar_broom_center (958636393) [1].wav +avatar_broom_down (181792848) [1].wav +avatar_broom_down (232957193) [1].wav +avatar_broom_down (260888206) [1].wav +avatar_broom_down (295378881) [1].wav +avatar_broom_down (432646183) [1].wav +avatar_broom_down (65992930) [1].wav +avatar_broom_down (674648981) [1].wav +avatar_broom_down (83547268) [1].wav +avatar_broom_down (895934903) [1].wav +avatar_broom_left (1065900714) [1].wav +avatar_broom_left (112212100) [1].wav +avatar_broom_left (340551448) [1].wav +avatar_broom_left (366895946) [1].wav +avatar_broom_left (376506210) [1].wav +avatar_broom_left (602297919) [1].wav +avatar_broom_left (687768135) [1].wav +avatar_broom_left (7957874) [1].wav +avatar_broom_left (973859855) [1].wav +avatar_broom_right (1065900714) [1].wav +avatar_broom_right (112212100) [1].wav +avatar_broom_right (340551448) [1].wav +avatar_broom_right (366895946) [1].wav +avatar_broom_right (376506210) [1].wav +avatar_broom_right (602297919) [1].wav +avatar_broom_right (687768135) [1].wav +avatar_broom_right (7957874) [1].wav +avatar_broom_right (973859855) [1].wav +avatar_broom_up (181792848) [1].wav +avatar_broom_up (232957193) [1].wav +avatar_broom_up (260888206) [1].wav +avatar_broom_up (295378881) [1].wav +avatar_broom_up (432646183) [1].wav +avatar_broom_up (65992930) [1].wav +avatar_broom_up (674648981) [1].wav +avatar_broom_up (83547268) [1].wav +avatar_broom_up (895934903) [1].wav +broom_center (1024055054) [1].wav +broom_center (151130021) [1].wav +broom_center (267888492) [1].wav +broom_center (282207226) [1].wav +broom_center (317615650) [1].wav +broom_center (369477587) [1].wav +broom_center (419442525) [1].wav +broom_center (551973080) [1].wav +broom_center (958636393) [1].wav +broom_dismount (1047946602) [1].wav +broom_dismount (802519570) [1].wav +broom_dismount (927926799) [1].wav +broom_down (181792848) [1].wav +broom_down (232957193) [1].wav +broom_down (260888206) [1].wav +broom_down (295378881) [1].wav +broom_down (432646183) [1].wav +broom_down (65992930) [1].wav +broom_down (674648981) [1].wav +broom_down (83547268) [1].wav +broom_down (895934903) [1].wav +broom_flight (11532379) [1].wav +broom_flight (381571695) [1].wav +broom_flight (431257685) [1].wav +broom_flight (777386815) [1].wav +broom_flight (914116874) [1].wav +broom_flight (95376617) [1].wav +broom_flight_boost_Play (201419163) [1].wav +broom_flight_boost_Play (69023624) [1].wav +broom_flight_boost_Play (834550242) [1].wav +broom_flight_boost_Play (943912536) [1].wav +broom_flight_collision_front_motion (237795033) [1].wav +broom_flight_ring_boost_Play (1029527143) [1].wav +broom_flight_ring_boost_Play (201419163) [1].wav +broom_flight_ring_boost_Play (268245443) [1].wav +broom_flight_ring_boost_Play (376737246) [1].wav +broom_flight_ring_boost_Play (524463427) [1].wav +broom_flight_ring_boost_Play (551767230) [1].wav +broom_flight_ring_boost_Play (69023624) [1].wav +broom_flight_ring_boost_Play (834550242) [1].wav +broom_flight_ring_boost_Play (83932423) [1].wav +broom_flight_ring_boost_Play (943912536) [1].wav +broom_flight_roll_left_motion_Play (49588465) [1].wav +broom_flight_roll_Play (1029527143) [1].wav +broom_flight_roll_Play (268245443) [1].wav +broom_flight_roll_Play (376737246) [1].wav +broom_flight_roll_Play (524463427) [1].wav +broom_flight_roll_Play (551767230) [1].wav +broom_flight_roll_Play (83932423) [1].wav +broom_flight_roll_right_motion_Play (775150786) [1].wav +broom_flight_Stop (11532379) [1].wav +broom_flight_Stop (381571695) [1].wav +broom_flight_Stop (431257685) [1].wav +broom_flight_Stop (777386815) [1].wav +broom_flight_Stop (914116874) [1].wav +broom_flight_Stop (95376617) [1].wav +broom_grab (140277022) [1].wav +broom_left (1072373224) [1].wav +broom_left (221516915) [1].wav +broom_left (291433466) [1].wav +broom_left (324382011) [1].wav +broom_left (366895946) [1].wav +broom_left (377098119) [1].wav +broom_left (433011844) [1].wav +broom_left (482968552) [1].wav +broom_left (514468712) [1].wav +broom_maneuver (256123492) [1].wav +broom_maneuver (652467878) [1].wav +broom_maneuver_stop (256123492) [1].wav +broom_maneuver_stop (652467878) [1].wav +broom_race_bubble_pop_Play (693560337) [1].wav +broom_right (1072373224) [1].wav +broom_right (221516915) [1].wav +broom_right (291433466) [1].wav +broom_right (324382011) [1].wav +broom_right (366895946) [1].wav +broom_right (377098119) [1].wav +broom_right (433011844) [1].wav +broom_right (482968552) [1].wav +broom_right (514468712) [1].wav +broom_stick_fall_Play (154318631) [1].wav +broom_stick_fall_Play (904480772) [1].wav +broom_summon (606874062) [1].wav +broom_up (181792848) [1].wav +broom_up (232957193) [1].wav +broom_up (260888206) [1].wav +broom_up (295378881) [1].wav +broom_up (432646183) [1].wav +broom_up (65992930) [1].wav +broom_up (674648981) [1].wav +broom_up (83547268) [1].wav +broom_up (895934903) [1].wav +list.txt diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_0.wav new file mode 100644 index 000000000..3eeb74dd1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_0.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_1.wav new file mode 100644 index 000000000..496633ace Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_1.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_10.wav new file mode 100644 index 000000000..79b7fc601 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_10.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_11.wav new file mode 100644 index 000000000..e74bb4e77 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_11.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_12.wav new file mode 100644 index 000000000..baa199540 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_12.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_13.wav new file mode 100644 index 000000000..ef2c40c3f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_13.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_14.wav new file mode 100644 index 000000000..9e57acead Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_14.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_15.wav new file mode 100644 index 000000000..8f0318038 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_15.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_16.wav new file mode 100644 index 000000000..21e00a576 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_16.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_2.wav new file mode 100644 index 000000000..82a13519c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_2.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_3.wav new file mode 100644 index 000000000..0ff7cc595 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_3.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_4.wav new file mode 100644 index 000000000..fd605d646 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_4.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_5.wav new file mode 100644 index 000000000..e69de29bb diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_6.wav new file mode 100644 index 000000000..99cb514ee Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_6.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_7.wav new file mode 100644 index 000000000..b19027813 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_7.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_8.wav new file mode 100644 index 000000000..1a1f1307c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_8.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_9.wav new file mode 100644 index 000000000..9c7ba1000 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/FX/fx_sound_9.wav differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/Good64x64TilingNoiseHighFreq.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/Good64x64TilingNoiseHighFreq.png new file mode 100644 index 000000000..dd63cc9d7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/Good64x64TilingNoiseHighFreq.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Base011_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Base011_MRO.dds new file mode 100644 index 000000000..0d400fefe Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Base011_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Blank_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Blank_A.dds new file mode 100644 index 000000000..d02c5d8e2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Blank_A.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Cav_Spid_ThickWeb_N.dds new file mode 100644 index 000000000..4a77ba948 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Cav_Spid_ThickWeb_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ColorNoise512_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ColorNoise512_D.png new file mode 100644 index 000000000..c20422c41 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ColorNoise512_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_D.dds new file mode 100644 index 000000000..fe2a81196 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MRO.dds new file mode 100644 index 000000000..0039d9606 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MSK.dds new file mode 100644 index 000000000..cabad19bb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_N.dds new file mode 100644 index 000000000..19ff15405 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_D.dds new file mode 100644 index 000000000..b9d4dfb8f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MRO.dds new file mode 100644 index 000000000..8bd817f14 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MSK.dds new file mode 100644 index 000000000..6a1a899c3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_N.dds new file mode 100644 index 000000000..1911e3bf3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_CorruptedSpider_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_CorruptedSpider_Eye_D.dds new file mode 100644 index 000000000..85e252a4f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_CorruptedSpider_Eye_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_DragonEye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_DragonEye_Iris_D.png new file mode 100644 index 000000000..059dcf656 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_DragonEye_Iris_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Forageable_Horklump_Gradient_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Forageable_Horklump_Gradient_D.png new file mode 100644 index 000000000..dc7dc8c70 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Forageable_Horklump_Gradient_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_GlassNoise_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_GlassNoise_D.dds new file mode 100644 index 000000000..077312fd4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_GlassNoise_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_WaterCaustics_Disorder_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_WaterCaustics_Disorder_A.dds new file mode 100644 index 000000000..f5f05435a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_WaterCaustics_Disorder_A.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_CausticNoise_C_Seamless_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_CausticNoise_C_Seamless_D.png new file mode 100644 index 000000000..2c3d57910 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_CausticNoise_C_Seamless_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_ConjuredDragonWing_M.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_ConjuredDragonWing_M.dds new file mode 100644 index 000000000..a0efacb20 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_ConjuredDragonWing_M.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_E.png new file mode 100644 index 000000000..fb634dc66 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_N.dds new file mode 100644 index 000000000..a245fa9fb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_MarbleSkin_01_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_MarbleSkin_01_BPF_D.dds new file mode 100644 index 000000000..1ff91f3a4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_MarbleSkin_01_BPF_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_Noise05_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_Noise05_D.dds new file mode 100644 index 000000000..f3ebdd976 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_Noise05_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_UpperAlpha_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_UpperAlpha_E.dds new file mode 100644 index 000000000..81e618163 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_UpperAlpha_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_Upper_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_Upper_E.dds new file mode 100644 index 000000000..4b8533472 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_Upper_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RibbonOffset_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RibbonOffset_N.dds new file mode 100644 index 000000000..64b67efe3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RibbonOffset_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_VerticalBeam_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_VerticalBeam_D.dds new file mode 100644 index 000000000..c90844d1c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_VerticalBeam_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/base_flat_n.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/base_flat_n.dds new file mode 100644 index 000000000..f80bb9b11 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/base_flat_n.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Pink.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Pink.png new file mode 100644 index 000000000..1e1e56a54 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Pink.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Red.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Red.png new file mode 100644 index 000000000..8b6954504 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Red.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Yellow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Yellow.png new file mode 100644 index 000000000..453e872d3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Yellow.png differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 8c53839c9..d1d7e4e00 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -188,6 +188,7 @@ call Update_Shaders.bat + @@ -484,6 +485,7 @@ call Update_Shaders.bat + @@ -507,6 +509,7 @@ call Update_Shaders.bat + @@ -802,6 +805,7 @@ call Update_Shaders.bat Effect 5.0 + 5.0 Effect diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index e30df2598..50472fa2d 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -1656,6 +1656,9 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\12.BroomBoost + + 02.GameObjects\Monster\Ranrok + @@ -2509,6 +2512,12 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\12.BroomBoost + + 02.GameObjects\Monster\Ranrok + + + 02.GameObjects\Monster\Ranrok + @@ -2546,5 +2555,8 @@ 99.Define\SHADER + + 99.Define\SHADER + \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 717c10efb..26b2660ba 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -486,6 +486,7 @@ void CEditEffect::Describe_Entity() } + if (GUI::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END))) { m_EffectInfo.eRenderOrder = static_cast(iCurrentItem); diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index cb4b76aa2..f3d1ccb3d 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -76,7 +76,7 @@ HRESULT CEffectPool::Initialize(void* pArg) #endif // #ifdef 진우 m_isActiveEffectCreate = false; - m_isActiveMonsterEffectCreate = true; + m_isActiveMonsterEffectCreate = false; #endif // #ifdef 기무리 m_isActiveEffectCreate = false; diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 87f3a181b..3d283f0d0 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -267,7 +267,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) m_pGameInstance->Set_Fog(10.f, 5.f); m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); - CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); + //CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp index cf0dea8d1..2b7e782da 100644 --- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp @@ -60,7 +60,7 @@ void CLevel_Logo::Update(_float fTimeDelta) return; #endif // gimch #ifdef 기무리 - if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT)))) + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT)))) return; #endif // 기무리 #ifdef 진우 diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index f58aaf9c9..aa2c44326 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -63,6 +63,8 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta) Find_Anim(); + Sound_List(); + if(m_isUpdateEvent) { for (auto& pObject : m_Objects) @@ -451,10 +453,14 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() } if(GUI::Button("Load KeyFrame_")) { + _char szDir[MAX_PATH] = {}; + _string Path = {}; for (auto& pObject : m_Objects) { dynamic_cast(pObject)->Reset_SoundEvent(); - dynamic_cast(m_Objects[m_iObjectIndex])->Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml"); + _splitpath_s(m_DummyPath, nullptr, 0, szDir, MAX_PATH, nullptr, 0, nullptr, 0); + Path = _string(szDir) + "KeyFrame.xml"; + dynamic_cast(m_Objects[m_iObjectIndex])->Ready_Sound_Events(Path.c_str()); } } static _char EventName[256] = {}; @@ -747,6 +753,28 @@ void CLevel_ObjectViewer::Find_Anim() } +void CLevel_ObjectViewer::Sound_List() +{ + GUI::Begin("Sound_List"); + if (GUI::CollapsingHeader("Sound list")) + { + for (_uint i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i) + { + _wstring Name = SOUND::SD_PATH::SD_KIND_PATHS[i]; + + if (GUI::Button(("S_" + CMyTools::ToString(Name)).c_str())) + { + m_pGameInstance->Sound_Play(static_cast(i), SD_CHANNEL_GROUP::EFFECT, false, m_fVolume); + } + GUI::SameLine(); + if (GUI::SmallButton(("Stop Sound##" + to_string(i)).c_str())) + m_pGameInstance->Sound_Stop(static_cast(i), SD_CHANNEL_GROUP::EFFECT); + + } + } + GUI::End(); +} + void CLevel_ObjectViewer::Save_KeyFrame() { diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index b37ad9c3f..0a98f1add 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -390,6 +390,9 @@ HRESULT CLoader::Loading_For_Logo() jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, FX_VTXPOS, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_RANROK_ETHER, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); } m_strMessage = TEXT("Texture Loading.."); @@ -1569,6 +1572,23 @@ HRESULT CLoader::Loading_For_Effect() }); + Asset_FileLoad("../Bin/Resources/Textures/Effect/RanrokEther", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"RANROK")))) { + return E_FAIL; + } + + return S_OK; + + }); + + + m_strMessage = TEXT("Model Loading.."); diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index 5a2bbca19..a4e9d67db 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -102,10 +102,15 @@ HRESULT CLoader::Loading_For_ObjectViewer() futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_ConjuredDragon_Model") )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_ConjuredDragon_Model") + //)); + //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx", XMMatrixIdentity(), // TEXT("Prototype_Component_trsoll_Model") diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp index 1b81b818b..23e72bc64 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp @@ -13,6 +13,7 @@ #include "Ranrok_Point.h" #include "EditEffect.h" #include "TrailObject.h" +#include "Ranrok_EtherInfo.h" #pragma region STATE #include "State_Idle.h" @@ -88,6 +89,12 @@ HRESULT CRanrok::Initialize(void* pArg) m_fRimPower = 2.3f; m_vRimColor = _float4(0.333f, 0.235f, 0.184f, 0.059f); + Ether_Create(); + +#if 진우 + m_pLeftEye_Trail->Set_Visible(false); + m_pRightEye_Trail->Set_Visible(false); +#endif return S_OK; } @@ -122,6 +129,8 @@ void CRanrok::Update(_float fTimeDelta) Play_Event(); + Ether_Update(fTimeDelta); + if (true == m_pCharacter_Controller->IsActive()) { { // 세트 m_pCallBack_HitReport->BeginFrame(); @@ -145,6 +154,7 @@ void CRanrok::Update(_float fTimeDelta) } #ifdef _DEBUG Describe_Entity(); + Ether_GUI(); #endif // _DEBUG @@ -227,12 +237,16 @@ void CRanrok::Late_Update(_float fTimeDelta) m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); + m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this); + Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); } HRESULT CRanrok::Render() { - if (!m_bVisible){ + if (!m_bVisible) { return S_OK; } if (FAILED(Bind_ShaderResources())) { @@ -243,7 +257,7 @@ HRESULT CRanrok::Render() if (RENDER::NONBLEND == eCurrentPass) { hr = Render_Nonblend(); } - else if (RENDER::BLEND == eCurrentPass) { + else if (RENDER::BLEND == eCurrentPass || RENDER::EFFECT == eCurrentPass) { hr = Render_Blend(); hr = S_OK; } @@ -432,6 +446,12 @@ HRESULT CRanrok::Ready_Components() return E_FAIL; } + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_RANROK_ETHER, + reinterpret_cast(&m_pEther_Shader)))) { + return E_FAIL; + } + + m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrok_Model"); /* Com_Model */ @@ -665,29 +685,48 @@ HRESULT CRanrok::Render_Nonblend() } HRESULT CRanrok::Render_Blend() { - _float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y); - if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) { - return E_FAIL; - } for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i) { - if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix", + RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass(); + + if (m_pEtherInfo[i]->Get_RenderOrder() != eCurrentPass) + continue; + + if (FAILED(m_pEther_Shader->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))) { + m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader); + + _float4x4 WorldInv = {}; + + XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv()); + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) { return E_FAIL; } - if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix"))) + return E_FAIL; + + + + if (FAILED(m_pEtherInfo[i]->Ether_Begin(m_pEther_Shader))) { return E_FAIL; } m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (true == m_bDrawOutLine) { m_pGameInstance->Begin_OutLine_Write(2); } @@ -713,6 +752,105 @@ HRESULT CRanrok::Render_Blend() return S_OK; } +HRESULT CRanrok::Render_Blur() +{ + + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i) + { + + if (m_pEtherInfo[i]->isBlur() == false) + continue; + + if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) + { + return E_FAIL; + } + + m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader); + + _float4x4 WorldInv = {}; + + XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv()); + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) { + return E_FAIL; + } + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix"))) + return E_FAIL; + + + + if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLUR)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + + } + + return S_OK; +} + +HRESULT CRanrok::Render_Bloom() +{ + for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i) + { + + if (m_pEtherInfo[i]->isBloom() == false) + continue; + + if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size()))) + { + return E_FAIL; + } + + m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader); + + _float4x4 WorldInv = {}; + + XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv()); + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) { + return E_FAIL; + } + + if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix"))) + return E_FAIL; + + + if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLOOM)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + + } + return S_OK; +} + HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) { @@ -898,9 +1036,17 @@ void CRanrok::Free() SAFE_RELEASE(m_pRightEye_Trail); SAFE_RELEASE(m_pRightPt); SAFE_RELEASE(m_pLeftPt); + SAFE_RELEASE(m_pEther_Shader); + SAFE_RELEASE(m_pMotionTrailCom); Safe_Delete(m_pCallBack_Behavior); Safe_Delete(m_pCallBack_HitReport); + + for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++) + { + SAFE_RELEASE(m_pEtherInfo[i]); + } + } #ifdef _DEBUG @@ -920,6 +1066,7 @@ void CRanrok::Describe_Entity() SAFE_RELEASE(m_pLeftPt); SAFE_RELEASE(m_pMotionTrailCom); + for (auto& pParts : m_PartObjects) { SAFE_RELEASE(pParts.second); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Ether.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Ether.cpp new file mode 100644 index 000000000..42b0bd9ff --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Ranrok_Ether.cpp @@ -0,0 +1,60 @@ +#include "pch.h" +#include "Ranrok.h" +#include "InfoInstance.h" +#include "GameInstance.h" +#include "Ranrok_EtherInfo.h" + +void CRanrok::Ether_Create() +{ + for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++) + { + m_pEtherInfo[i] = CRanrok_EtherInfo::Create(m_pDevice, m_pContext); + } +} + +void CRanrok::Ether_Update(_float fTimeDelata) +{ + for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++) + { + m_pEtherInfo[i]->Update(fTimeDelata); + } +} + +void CRanrok::Ether_GUI() +{ + GUI::Begin("Ether"); + + const char* pRanrokParts[] = { "ETHEREAL_HOT_SPINE" , "ETHEREAL_HOT_WINGS" , "ETHEREAL_HOT_ARMS" , "ETHEREAL_HOT_SHELL" , "ETHEREAL_AURA" , "ETHEREAL_EYES" , "ETHEREAL_WINGS"}; + _int iCurrentItem = m_iCurrentItem; + + + if (GUI::Combo("RanrokParts", &iCurrentItem, pRanrokParts, ENUM_CLASS(RANROK_MESH_ORDER::WINGS))) + { + m_iCurrentItem = iCurrentItem; + } + + if (GUI::TreeNode(pRanrokParts[m_iCurrentItem])) + { + m_pEtherInfo[m_iCurrentItem]->Describe_Entity(); + + GUI::TreePop(); + } + + + GUI::InputTextMultiline("FILE PATH", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25)); + + m_strSavePath = m_szBuffer; + + if (GUI::Button("SAVE")) + { + m_pEtherInfo[m_iCurrentItem]->Save_Info(m_strSavePath.c_str()); + } + + if (GUI::Button("LOAD")) + { + m_pEtherInfo[m_iCurrentItem]->Load_Info(m_strSavePath.c_str() , LEVEL::EFFECT); + } + + GUI::End(); + +} diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_EtherInfo.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_EtherInfo.cpp new file mode 100644 index 000000000..72aebffef --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Ranrok_EtherInfo.cpp @@ -0,0 +1,1560 @@ +#include "pch.h" +#include "Ranrok_EtherInfo.h" + +#include "GameInstance.h" + +CRanrok_EtherInfo::CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CRanrok_EtherInfo::CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype) + : CGameObject(Prototype) +{ +} + +HRESULT CRanrok_EtherInfo::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + m_Ether_Info.eRenderOrder = RENDER::BLEND; + + return S_OK; +} + +void CRanrok_EtherInfo::Priority_Update(_float fTimeDelta) +{ + +} + +void CRanrok_EtherInfo::Update(_float fTimeDelta) +{ + Update_Time(fTimeDelta); +} + +void CRanrok_EtherInfo::Late_Update(_float fTimeDelta) +{ + +} + +HRESULT CRanrok_EtherInfo::Render() +{ + return S_OK; +} + + + +void CRanrok_EtherInfo::Update_Time(_float fTimeDelta) +{ + + m_ErherTimeInfo.vAnimTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vAnimTime.x >= m_ErherTimeInfo.vAnimTime.y) + { + m_ErherTimeInfo.vAnimTime.x = 0.f; + + m_ErherTimeInfo.vAnimIndex.x += 1.f; + + if (m_ErherTimeInfo.vAnimIndex.x > m_ErherTimeInfo.vAnimIndex.y) // 애니메이션에 끝에 다다랐다면 + { + m_ErherTimeInfo.vAnimIndex.x = 0.f; // 인덱스 초기화 + + } + } + + m_ErherTimeInfo.vLifeTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vLifeTime.x >= m_ErherTimeInfo.vLifeTime.y) + { + m_ErherTimeInfo.vLifeTime.x = 0.f; + } + + m_ErherTimeInfo.vDiffuseUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vDiffuseUVMoveTime.x >= m_ErherTimeInfo.vDiffuseUVMoveTime.y) + { + m_ErherTimeInfo.vDiffuseUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vMaskingUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vMaskingUVMoveTime.x >= m_ErherTimeInfo.vMaskingUVMoveTime.y) + { + m_ErherTimeInfo.vMaskingUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vNoiseUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vNoiseUVMoveTime.x >= m_ErherTimeInfo.vNoiseUVMoveTime.y) + { + m_ErherTimeInfo.vNoiseUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vDistortionUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vDistortionUVMoveTime.x >= m_ErherTimeInfo.vDistortionUVMoveTime.y) + { + m_ErherTimeInfo.vDistortionUVMoveTime.x = 0.f; + } + + m_ErherTimeInfo.vDissolveUVMoveTime.x += fTimeDelta; + + if (m_ErherTimeInfo.vDissolveUVMoveTime.x >= m_ErherTimeInfo.vDissolveUVMoveTime.y) + { + m_ErherTimeInfo.vDissolveUVMoveTime.x = 0.f; + } + +} + +void CRanrok_EtherInfo::Edit_Ether() +{ + +} + +HRESULT CRanrok_EtherInfo::Bind_Ether_ShaderResources(CShader* pShader) +{ + + if (FAILED(pShader->Bind_RawValue("g_fAnimIndex", &m_ErherTimeInfo.vAnimIndex.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vLifeTime", &m_ErherTimeInfo.vLifeTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVMoveTime", &m_ErherTimeInfo.vDiffuseUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vMaskingUVMoveTime", &m_ErherTimeInfo.vMaskingUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vNoiseUVMoveTime", &m_ErherTimeInfo.vNoiseUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vDistortionUVMoveTime", &m_ErherTimeInfo.vDistortionUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_vDissolveUVMoveTime", &m_ErherTimeInfo.vDissolveUVMoveTime, sizeof(_float2)))) { + return E_FAIL; + } + + + + if (m_Ether_Info.eRenderOrder != RENDER::BULR_MESH) + { + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), pShader, "g_DepthTexture"))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), pShader, "g_NormalMapTexture"))) { + return E_FAIL; + } + } + + _float2 vViewPortSize = m_pGameInstance->Get_ViewPortSize(); + + if (FAILED(pShader->Bind_RawValue("g_fWinSizeX", &vViewPortSize.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fWinSizeY", &vViewPortSize.y, sizeof(_float)))) { + return E_FAIL; + } + + + + if (FAILED(pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } + + if (m_Ether_Info.isMotionBlur == true || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT) + { + + if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + + + if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + + + + } + + if (m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_WB || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_BLUR) + { + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Normal"), pShader, "g_NormalMapTexture"))) { + return E_FAIL; + } + + } + + if (FAILED(pShader->Bind_RawValue("g_isDiffuse", &m_Ether_Info.isDiffuse, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isMasking", &m_Ether_Info.isMasking, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDissolve", &m_Ether_Info.isDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoise", &m_Ether_Info.isNoise, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isEmissive", &m_Ether_Info.isEmissive, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDistortion", &m_Ether_Info.isDistortion, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDiffuseUVMove", &m_Ether_Info.isDiffuseUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isMaskUVMove", &m_Ether_Info.isMaskUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoiseUVMove", &m_Ether_Info.isNoiseUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isReverseDissolve", &m_Ether_Info.isReverseDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolve", &m_Ether_Info.isEmissiveDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isMaskClampSample", &m_Ether_Info.isMaskClampSample, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoiseColor", &m_Ether_Info.isNoiseColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoiseAlpha", &m_Ether_Info.isNoiseAlpha, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNomalDissolve", &m_Ether_Info.isNomalDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolveReverse", &m_Ether_Info.isEmissiveDissolveReverse, sizeof(_bool)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_isBlurNoEmissive", &m_Ether_Info.isBlurNoEmissive, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vColor", &m_Ether_Info.vColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vEmissive", &m_Ether_Info.vEmissive, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fEmissiveStrength", &m_Ether_Info.fEmissiveStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fNoiseDistortionIntensity", &m_Ether_Info.fNoiseDistortionIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVGainAmount", &m_Ether_Info.vDiffuseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vMaskingUVGainAmount", &m_Ether_Info.vMaskingUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vNoiseUVGainAmount", &m_Ether_Info.vNoiseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDistortionTime", &m_Ether_Info.vDistortionTime, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_Ether_Info.vMaskDistortionUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + + + if (FAILED(pShader->Bind_RawValue("g_vUVCutting", &m_Ether_Info.vUVCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vUVMaskCutting", &m_Ether_Info.vUVMaskCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_iMaskMoveLerpOption", &m_Ether_Info.iMaskMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_Ether_Info.iDiffuseMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_iMaskDistortionMoveLerpOption", &m_Ether_Info.iMaskDistortionMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_iDiffuseDistortionMoveLerpOption", &m_Ether_Info.iDiffuseDistortionMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + + if (FAILED(pShader->Bind_RawValue("g_fDiffuseAlpha", &m_Ether_Info.fDiffuseAlpha, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftenExp", &m_Ether_Info.fSoftenExp, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftStrength", &m_Ether_Info.fSoftStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fCoreBoost", &m_Ether_Info.fCoreBoost, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fRadius", &m_Ether_Info.fRadius, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftMaskEdge", &m_Ether_Info.fSoftMaskEdge, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fSoftMask", &m_Ether_Info.fSoftMask, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveDelay", &m_Ether_Info.fDissolveDelay, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fReverseDissolveDelay", &m_Ether_Info.fReverseDissolveDelay, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDissolveUVGainAmount", &m_Ether_Info.vDissolveUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isDissolveMove", &m_Ether_Info.isDissolveMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoDissolveSmoothStep", &m_Ether_Info.isNoDissolveSmoothStep, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveMaskEdge", &m_Ether_Info.vDissolveValue.x, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveSoftMask", &m_Ether_Info.vDissolveValue.y, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fDissolveCutRatio", &m_Ether_Info.vDissolveValue.z, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBlurColor", &m_Ether_Info.isBlurColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vBlurColor", &m_Ether_Info.vBlurColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vNoiseColor", &m_Ether_Info.vNoiseColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fEmissiveColorCut", &m_Ether_Info.fEmissiveColorCut, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isRimLight", &m_Ether_Info.isRimLight, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vRimLightColor", &m_Ether_Info.vRimLightColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fRimLightPower", &m_Ether_Info.fRimLightPower, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fRimLightStrength", &m_Ether_Info.fRimLightStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fModelDistortIntensity", &m_Ether_Info.fModelDistortIntensity, sizeof(_float)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_vMaskOffset", &m_Ether_Info.vMaskOffset, sizeof(_float2)))) { + return E_FAIL; + } + + + if (FAILED(pShader->Bind_RawValue("g_vUVNoiseCutting", &m_Ether_Info.vUVNoiseCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_vDissolveSmoothRange", &m_Ether_Info.vDissolveSmoothRange, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fModelBlurIntensity", &m_Ether_Info.fModelBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + + + + if (FAILED(pShader->Bind_RawValue("g_isMask_G", &m_Ether_Info.isMask_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isMask_B", &m_Ether_Info.isMask_B, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNoise_G", &m_Ether_Info.isNoise_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isNoise_B", &m_Ether_Info.isNoise_B, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDissolve_G", &m_Ether_Info.isDissolve_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDissolve_B", &m_Ether_Info.isDissolve_B, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDiffuse_R", &m_Ether_Info.isDiffuse_R, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDiffuse_G", &m_Ether_Info.isDiffuse_G, sizeof(_bool)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_RawValue("g_isDiffuse_B", &m_Ether_Info.isDiffuse_B, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBlurDissolve", &m_Ether_Info.isBlurDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isNonSoftEffect", &m_Ether_Info.isNonSoftEffect, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isScreenFX", &m_Ether_Info.isScreenFX, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fBlurIntensity", &m_Ether_Info.fBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_fBloomStrength", &m_Ether_Info.fBloomStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_iBloomType", &m_Ether_Info.eBloomType, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBloomDissolve", &m_Ether_Info.isBloomDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(pShader->Bind_RawValue("g_isBloomReverseDissolve", &m_Ether_Info.isBloomReverseDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (m_pDiffuse_TextureCom != nullptr) + { + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(pShader, "g_DiffuseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pNoise_TextureCom != nullptr) + { + if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(pShader, "g_NoiseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pMasking_TextureCom != nullptr) + { + if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(pShader, "g_MaskingTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDissolve_TextureCom != nullptr) + { + if (FAILED(m_pDissolve_TextureCom->Bind_ShaderResource(pShader, "g_DissolveTexture", 0))) { + return E_FAIL; + } + } + + if (m_pEmissive_TextureCom != nullptr) + { + if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(pShader, "g_EmissiveTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDistortion_TextureCom != nullptr) + { + if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(pShader, "g_DistortionTexture", 0))) { + return E_FAIL; + } + } + + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Ether_Begin(CShader* pShader) +{ + if(FAILED(pShader->Begin(ENUM_CLASS(m_Ether_Info.eShaderPass)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Ready_Components() +{ + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Bind_ShaderResources() +{ + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Load_Info(const _char* pFilePath, LEVEL eLevel) +{ + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); + + _string strPerfectFilePath = pFilePath; + + m_strPath = strPerfectFilePath; + + strPerfectFilePath += ".bin"; + + HANDLE hFile = CreateFileW( + CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름 + GENERIC_READ, // 읽기 모드 + FILE_SHARE_READ, // 다른 프로세스도 읽기 가능 + NULL, + OPEN_EXISTING, // 기존 파일 열기 + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"에테르 읽기 실패", L"System Message", MB_OK); + return E_FAIL; + } + + + + DWORD dwByte(0); + + if (!ReadFile(hFile, &m_Ether_Info, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (m_Ether_Info.isDiffuse) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDiffuseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + } + } + + if (m_Ether_Info.isNoise) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; + } + + + } + + if (m_Ether_Info.isMasking) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (m_Ether_Info.isDissolve) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDissolveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), + reinterpret_cast(&m_pDissolve_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + + } + + + } + + if (m_Ether_Info.isEmissive) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strEmissiveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), + reinterpret_cast(&m_pEmissive_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (m_Ether_Info.isDistortion) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (!ReadFile(hFile, &m_ErherTimeInfo, sizeof(TIME_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + CloseHandle(hFile); + + + + return S_OK; +} + +HRESULT CRanrok_EtherInfo::Save_Info(const _char* pPath) +{ + _string strPerfectFilePath = pPath; + strPerfectFilePath += ".bin"; + + HANDLE hFile = CreateFile(CMyTools::ToWstring(strPerfectFilePath).c_str(), + GENERIC_WRITE, + FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, CREATE_ALWAYS, + FILE_ATTRIBUTE_NORMAL, NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"에테르 오브젝트 저장 실패", L"System Message", MB_OK); + return E_FAIL; + } + + m_strPath = strPerfectFilePath; + + DWORD dwByte(0); + + + if (!WriteFile(hFile, &m_Ether_Info, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + + + + if (m_Ether_Info.isDiffuse) + { + size_t iComponentLength = m_strDiffuseName.length(); + const _char* pFileComponentPath = m_strDiffuseName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_Ether_Info.isNoise) + { + size_t iComponentLength = m_strNoiseName.length(); + const _char* pFileComponentPath = m_strNoiseName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_Ether_Info.isMasking) + { + size_t iComponentLength = m_strMaskingName.length(); + const _char* pFileComponentPath = m_strMaskingName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_Ether_Info.isDissolve) + { + size_t iComponentLength = m_strDissolveName.length(); + const _char* pFileComponentPath = m_strDissolveName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_Ether_Info.isEmissive) + { + size_t iComponentLength = m_strEmissiveName.length(); + const _char* pFileComponentPath = m_strEmissiveName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (m_Ether_Info.isDistortion) + { + size_t iComponentLength = m_strDistortionName.length(); + const _char* pFileComponentPath = m_strDistortionName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + } + + if (!WriteFile(hFile, &m_ErherTimeInfo, sizeof(TIME_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + MessageBox(NULL, L"에테르 저장 성공", L"System Message", MB_OK); + + CloseHandle(hFile); + + return S_OK; +} + +CRanrok_EtherInfo* CRanrok_EtherInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_EtherInfo"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CRanrok_EtherInfo::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_EtherInfo"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_EtherInfo::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); +} +#ifdef _DEBUG + + +void CRanrok_EtherInfo::Describe_Entity() +{ + + const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" }; + const char* pRenderNames[] = { "PRIORITY" , "SHADOW_NEAR", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM", "DISTORTION", "BULR_MESH", "UI", "OCCLUSION" , "SHADOW_MIDDLE" , "PRESHADOW" , "UI_OVERLAY", "EFFECT_NONBLEND" }; + + const char* pShaderPass[] = { "NON_NOMALMAP" , "WEIGHTBLEND" , "BLEND" , "BLUR" , "BLOOM" }; + + const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY" }; + _int iCurrentItem = static_cast<_int>(m_Ether_Info.eRenderOrder); + _int iCurrentType = static_cast<_int>(m_Ether_Info.eEffectType); + _int iCurrentBloomType = static_cast<_int>(m_Ether_Info.eBloomType); + _int iCurrentPass = static_cast<_int>(m_Ether_Info.eShaderPass); + + + if (GUI::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END))) + { + m_Ether_Info.eRenderOrder = static_cast(iCurrentItem); + } + + + if (GUI::Combo("Shader Pass", &iCurrentPass, pShaderPass, ENUM_CLASS(SHADER_PASS_ETHER::END))) + { + m_Ether_Info.eShaderPass = static_cast(iCurrentPass); + } + + + GUI::Checkbox("Visible", &m_bVisible); + + GUI::Checkbox("Diffuse", &m_Ether_Info.isDiffuse); + GUI::Checkbox("Masking", &m_Ether_Info.isMasking); + GUI::Checkbox("Dissolve", &m_Ether_Info.isDissolve); + GUI::Checkbox("Distortion", &m_Ether_Info.isDistortion); + GUI::Checkbox("Noise", &m_Ether_Info.isNoise); + GUI::Checkbox("Bloom", &m_Ether_Info.isBloom); + GUI::Checkbox("Blur", &m_Ether_Info.isBlur); + GUI::Checkbox("RimLight", &m_Ether_Info.isRimLight); + GUI::Checkbox("Nomal", &m_Ether_Info.isNomalMap); + + if (GUI::Checkbox("Billboard", &m_Ether_Info.isBillboard)) + { + } + + GUI::ColorEdit4("MixColor", (_float*)&m_Ether_Info.vColor); + + + GUI::Checkbox("NonSoftEffect", &m_Ether_Info.isNonSoftEffect); + GUI::Checkbox("ScreenFX", &m_Ether_Info.isScreenFX); + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + + + GUI::PopItemWidth(); + + if (GUI::TreeNode("Time")) + { + _float2 fAnimIndex = {}; + _float2 fAnimTime = { 0.f , 1.f }; + _float2 vLifeTime = { 0.f , 1.f }; + _float2 vDiffuseUVMoveTime = { 0.f , 1.f }; + _float2 vMaskingUVMoveTime = { 0.f , 1.f }; + _float2 vNoiseUVMoveTime = { 0.f , 1.f }; + _float2 vDistortionUVMoveTime = { 0.f , 1.f }; + _float2 vDissolveUVMoveTime = { 0.f , 1.f }; + + GUI::DragFloat2("Anim Index", (_float*)&m_ErherTimeInfo.vAnimIndex); + GUI::DragFloat2("Anim Time", (_float*)&m_ErherTimeInfo.vAnimTime); + + GUI::DragFloat2("LifeTime ", (_float*)&m_ErherTimeInfo.vLifeTime); + GUI::DragFloat2("DiffuseUVMoveTime ", (_float*)&m_ErherTimeInfo.vDiffuseUVMoveTime); + GUI::DragFloat2("MaskingUVMoveTime ", (_float*)&m_ErherTimeInfo.vMaskingUVMoveTime); + GUI::DragFloat2("NoiseUVMoveTime", (_float*)&m_ErherTimeInfo.vNoiseUVMoveTime); + GUI::DragFloat2("DistortionUVMoveTime", (_float*)&m_ErherTimeInfo.vDistortionUVMoveTime); + GUI::DragFloat2("DissolveUVMoveTime", (_float*)&m_ErherTimeInfo.vDissolveUVMoveTime); + + GUI::TreePop(); + } + + if (m_Ether_Info.isBlur) + { + if (GUI::TreeNode("BLUR")) + { + + GUI::Checkbox("OnlyBlur", &m_Ether_Info.isOnlyBlur); + GUI::Checkbox("BlurNoEmissive", &m_Ether_Info.isBlurNoEmissive); + GUI::Checkbox("BlurDissolve", &m_Ether_Info.isBlurDissolve); + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::DragFloat("BlurIntensity", &m_Ether_Info.fBlurIntensity, 0.005f, 0.f, 1.f); + GUI::DragInt("BlurWeight", &m_Ether_Info.iBlurWeight, 2.f, 0, 128); + + + GUI::Checkbox("BlurColor", &m_Ether_Info.isBlurColor); + GUI::PopItemWidth(); + GUI::ColorEdit4("BlurColor", (_float*)&m_Ether_Info.vBlurColor); + + GUI::TreePop(); + } + } + + + if (GUI::TreeNode("MOTION BLUR")) + { + GUI::Checkbox("MotionBlur", &m_Ether_Info.isMotionBlur); + GUI::DragFloat("MotionBlurIntensity", &m_Ether_Info.fModelBlurIntensity, 0.005f, 0.f); + GUI::TreePop(); + } + + if (m_Ether_Info.isBloom) + { + if (GUI::TreeNode("BLOOM")) + { + if (GUI::Combo("Bloom Type", &iCurrentBloomType, pBloomType, ENUM_CLASS(BLOOM_TYPE::END))) + { + m_Ether_Info.eBloomType = static_cast(iCurrentBloomType); + } + + GUI::Checkbox("BloomDissolve", &m_Ether_Info.isBloomDissolve); + GUI::Checkbox("BloomReverseDissolve", &m_Ether_Info.isBloomReverseDissolve); + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::DragFloat("fBloomStrength", &m_Ether_Info.fBloomStrength, 0.001f, 0.f); + GUI::PopItemWidth(); + + GUI::TreePop(); + } + } + + if (GUI::TreeNode("MODEL DISTORTION")) + { + GUI::DragFloat("Distortion Intensity", &m_Ether_Info.fModelDistortIntensity, 0.005f, 0.f, 1.f); + GUI::TreePop(); + } + + if (GUI::TreeNode("EMISSIVE")) + { + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::DragFloat("EmissiveStrength", &m_Ether_Info.fEmissiveStrength, 0.005f, 0.f, 1.f); + GUI::DragFloat("Radius", &m_Ether_Info.fRadius, 0.005f, 0.f); + GUI::DragFloat("CoreBoost", &m_Ether_Info.fCoreBoost, 0.005f, 0.f); + GUI::DragFloat("SoftStrength", &m_Ether_Info.fSoftStrength, 0.005f, 0.f); + GUI::DragFloat("SoftenExp", &m_Ether_Info.fSoftenExp, 0.005f, 0.f); + GUI::DragFloat("EmissiveColorCut", &m_Ether_Info.fEmissiveColorCut, 0.005f, 0.f); + + GUI::PopItemWidth(); + + GUI::ColorEdit4("Emissive", (_float*)&m_Ether_Info.vEmissive); + + + + GUI::Checkbox("EmissiveTex", &m_Ether_Info.isEmissive); + GUI::Checkbox("EmissiveDissolve", &m_Ether_Info.isEmissiveDissolve); + GUI::Checkbox("EmissiveDissolveReverse", &m_Ether_Info.isEmissiveDissolveReverse); + + + if (m_Ether_Info.isEmissive) + { + if (GUI::TreeNode("EMISSIVE_TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "EMISSIVE_TEXTURE", (CComponent**)&m_pEmissive_TextureCom, nullptr, this); + + if (strName != "") { + m_strEmissiveName = strName; + } + + + GUI::TreePop(); + } + } + + + GUI::TreePop(); + } + + if (m_Ether_Info.isRimLight) + { + if (GUI::TreeNode("RIM LIGHT")) + { + GUI::ColorEdit4("Emissive", (_float*)&m_Ether_Info.vRimLightColor); + GUI::DragFloat("RimLightPower", &m_Ether_Info.fRimLightPower, 0.005f, 0.f); + GUI::DragFloat("RimLightStrength", &m_Ether_Info.fRimLightStrength, 0.005f, 0.f); + + GUI::TreePop(); + } + } + + if (m_Ether_Info.isDiffuse == true) + { + if (GUI::TreeNode("DIFFUSE")) + { + + GUI::Checkbox("Diffuse_R", &m_Ether_Info.isDiffuse_R); + GUI::Checkbox("Diffuse_G", &m_Ether_Info.isDiffuse_G); + GUI::Checkbox("Diffuse_B", &m_Ether_Info.isDiffuse_B); + + GUI::DragFloat("Diffuse Alpha", &m_Ether_Info.fDiffuseAlpha, 0.01f, 0.f, 1.f); + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::Checkbox("DiffuseUVMove", &m_Ether_Info.isDiffuseUVMove); + GUI::InputFloat2("DiffuseUVCutting", (_float*)&m_Ether_Info.vUVCutting); + + GUI::Spacing(); + + GUI::DragFloat2("DiffuseUVGainAmount", (_float*)&m_Ether_Info.vDiffuseUVGainAmount, 0.01f); + + + + _int iDiffuseMoveLerpOption = (_int)m_Ether_Info.iDiffuseMoveLerpOption; + + if (GUI::Combo("Lerp DiffuseMove Option", &iDiffuseMoveLerpOption, pLerp, 9)) + { + m_Ether_Info.iDiffuseMoveLerpOption = iDiffuseMoveLerpOption; + } + + GUI::Spacing(); + + GUI::PopItemWidth(); + + if (GUI::TreeNode("DIFFUSE_TEX")) + { + if (m_pDiffuse_TextureCom != nullptr) + { + if (GUI::ImageButton("Current Texture", m_pDiffuse_TextureCom->Get_SRV(0), ImVec2(48, 48))) + { + } + + GUI::Spacing(); GUI::Spacing(); + } + + if (GUI::TreeNode("ETHER TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this, L"RANROK"); + + if (strName != "") { + m_strDiffuseName = strName; + } + + GUI::TreePop(); + } + + + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this); + + if (strName != "") { + m_strDiffuseName = strName; + } + + + GUI::TreePop(); + } + + GUI::Separator(); GUI::Spacing(); + + GUI::TreePop(); + } + } + + + if (m_Ether_Info.isMasking == true) + { + if (GUI::TreeNode("MASKING")) + { + GUI::Checkbox("Mask G", &m_Ether_Info.isMask_G); + GUI::SameLine(); + GUI::Checkbox("Mask B", &m_Ether_Info.isMask_B); + + + GUI::InputFloat2("MaskUVCutting", (_float*)&m_Ether_Info.vUVMaskCutting); + GUI::Checkbox("MaskUVMove", &m_Ether_Info.isMaskUVMove); + GUI::Checkbox("MaskClampSample", &m_Ether_Info.isMaskClampSample); + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::DragFloat2("MaskOffset", (_float*)&m_Ether_Info.vMaskOffset, 0.01f); + GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_Ether_Info.vMaskingUVGainAmount, 0.01f); + GUI::Spacing(); + GUI::DragFloat("SoftMask", &m_Ether_Info.fSoftMask, 0.01f, 0.f); + GUI::DragFloat("fSoftMaskEdge", &m_Ether_Info.fSoftMaskEdge, 0.01f, 0.f); + + GUI::PopItemWidth(); + + + GUI::Spacing(); + + + _int iMaskMoveLerpOption = (_int)m_Ether_Info.iMaskMoveLerpOption; + + if (GUI::Combo("Lerp MaskMove Option", &iMaskMoveLerpOption, pLerp, 9)) + { + m_Ether_Info.iMaskMoveLerpOption = iMaskMoveLerpOption; + } + + + GUI::Spacing(); + + if (GUI::TreeNode("MASKING_TEX")) + { + if (m_pMasking_TextureCom != nullptr) + { + if (GUI::ImageButton("Current Texture", m_pMasking_TextureCom->Get_SRV(0), ImVec2(48, 48))) + { + } + + GUI::Spacing(); GUI::Spacing(); + } + + if (GUI::TreeNode("ETHER TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this, L"RANROK"); + + if (strName != "") { + m_strMaskingName = strName; + } + + GUI::TreePop(); + } + + + string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this); + + if (strName != "") { + m_strMaskingName = strName; + } + + GUI::TreePop(); + } + + GUI::Separator(); GUI::Spacing(); + + GUI::TreePop(); + } + } + + if (m_Ether_Info.isDissolve == true) + { + if (GUI::TreeNode("DISSOLVE")) + { + GUI::Checkbox("Dissolve G", &m_Ether_Info.isDissolve_G); + GUI::SameLine(); + GUI::Checkbox("Dissolve B", &m_Ether_Info.isDissolve_B); + + GUI::Checkbox("Nomal Dissolve", &m_Ether_Info.isNomalDissolve); + GUI::Checkbox("Reverse Dissolve", &m_Ether_Info.isReverseDissolve); + GUI::Checkbox("StopDissolveSmoothStep", &m_Ether_Info.isNoDissolveSmoothStep); + + GUI::DragFloat2("DissolveSmoothRange", (_float*)&m_Ether_Info.vDissolveSmoothRange, 0.01f); + + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::Spacing(); + GUI::Checkbox("DissolveMove", &m_Ether_Info.isDissolveMove); + GUI::DragFloat2("DissolveUVGainAmount", (_float*)&m_Ether_Info.vDissolveUVGainAmount, 0.01f); + + GUI::Spacing(); + GUI::DragFloat("DissolveDelay", &m_Ether_Info.fDissolveDelay, 0.005f); + GUI::DragFloat("ReverseDissolveDelay", &m_Ether_Info.fReverseDissolveDelay, 0.005f); + + GUI::Spacing(); + + GUI::DragFloat("DissolveMaskEdge", &m_Ether_Info.vDissolveValue.x, 0.005f); + GUI::DragFloat("DissolveSoftMask", &m_Ether_Info.vDissolveValue.y, 0.005f); + GUI::DragFloat("DissolveCutRatio", &m_Ether_Info.vDissolveValue.z, 0.005f); + + GUI::Spacing(); + + GUI::PopItemWidth(); + + if (GUI::TreeNode("DISSOLV_TEX")) + { + if (m_pDissolve_TextureCom != nullptr) + { + if (GUI::ImageButton("Current Texture", m_pDissolve_TextureCom->Get_SRV(0), ImVec2(48, 48))) + { + } + + GUI::Spacing(); GUI::Spacing(); + } + + if (GUI::TreeNode("ETHER TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DECAL_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this, L"RANROK"); + + if (strName != "") { + m_strDissolveName = strName; + } + + GUI::TreePop(); + } + + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this); + + if (strName != "") { + m_strDissolveName = strName; + } + + GUI::TreePop(); + } + GUI::Separator(); GUI::Spacing(); + + GUI::TreePop(); + } + + } + if (m_Ether_Info.isDistortion == true) + { + if (GUI::TreeNode("DISTORTION")) + { + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + + GUI::DragFloat("DistortionIntensity", &m_Ether_Info.fNoiseDistortionIntensity, 0.005f, 0.f, 1.f); + + GUI::Spacing(); + + GUI::DragFloat2("vDistortionTime", (_float*)&m_Ether_Info.vDistortionTime, 0.01f); + + _int iDiffuseNoiseMoveLerpOption = (_int)m_Ether_Info.iDiffuseDistortionMoveLerpOption; + + if (GUI::Combo("LerpDiffuseDistortionMove Option", &iDiffuseNoiseMoveLerpOption, pLerp, 9)) + { + m_Ether_Info.iDiffuseDistortionMoveLerpOption = iDiffuseNoiseMoveLerpOption; + } + + GUI::Spacing(); + + GUI::DragFloat2("MaskDistortionUVGainAmount", (_float*)&m_Ether_Info.vMaskDistortionUVGainAmount, 0.01f); + + _int iMaskNoiseMoveLerpOption = (_int)m_Ether_Info.iMaskDistortionMoveLerpOption; + + if (GUI::Combo("Lerp MaskDistortionMove Option", &iMaskNoiseMoveLerpOption, pLerp, 9)) + { + m_Ether_Info.iMaskDistortionMoveLerpOption = iMaskNoiseMoveLerpOption; + } + + GUI::Spacing(); + + GUI::PopItemWidth(); + + if (GUI::TreeNode("DISTORTION_TEX")) + { + if (m_pDistortion_TextureCom != nullptr) + { + if (GUI::ImageButton("Current Texture", m_pDistortion_TextureCom->Get_SRV(0), ImVec2(48, 48))) + { + } + + GUI::Spacing(); GUI::Spacing(); + } + + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISTORTION_TEXTURE", (CComponent**)&m_pDistortion_TextureCom, nullptr, this); + + if (strName != "") { + m_strDistortionName = strName; + } + + GUI::TreePop(); + } + + GUI::TreePop(); + } + + } + + + + + + if (m_Ether_Info.isNoise == true) + { + if (GUI::TreeNode("NOISE")) + { + GUI::Checkbox("Noise G", &m_Ether_Info.isNoise_G); + GUI::SameLine(); + GUI::Checkbox("Noise B", &m_Ether_Info.isNoise_B); + + GUI::Checkbox("NoiseColor", &m_Ether_Info.isNoiseColor); + GUI::Checkbox("NoiseAlpha", &m_Ether_Info.isNoiseAlpha); + GUI::Checkbox("NoiseMove", &m_Ether_Info.isNoiseUVMove); + + + GUI::ColorEdit4("NoiseColor", (_float*)&m_Ether_Info.vNoiseColor); + GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + GUI::DragFloat2("NoiseUVGainAmount", (_float*)&m_Ether_Info.vNoiseUVGainAmount, 0.01f); + GUI::DragFloat2("UVNoiseCutting", (_float*)&m_Ether_Info.vUVNoiseCutting, 0.01f); + + GUI::PopItemWidth(); + + + GUI::Spacing(); + + + _int iNoiseMoveLerpOption = (_int)m_Ether_Info.iNoiseMoveLerpOption; + + if (GUI::Combo("Lerp NoiseMove Option", &iNoiseMoveLerpOption, pLerp, 9)) + { + m_Ether_Info.iNoiseMoveLerpOption = iNoiseMoveLerpOption; + } + + if (GUI::TreeNode("NOISE_TEX")) + { + if (m_pNoise_TextureCom != nullptr) + { + if (GUI::ImageButton("Current Texture", m_pNoise_TextureCom->Get_SRV(0), ImVec2(48, 48))) + { + } + + GUI::Spacing(); GUI::Spacing(); + } + + if (GUI::TreeNode("ETHER TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this, L"RANROK"); + + if (strName != "") { + m_strNoiseName = strName; + } + + GUI::TreePop(); + } + + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this); + + if (strName != "") { + m_strNoiseName = strName; + } + + + + GUI::TreePop(); + } + + GUI::TreePop(); + } + } + + GUI::Separator(); GUI::Spacing(); + + + + +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp index 15f7b6009..562697f29 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp @@ -1024,6 +1024,8 @@ void CRanrok::Behavior_DeadExit() } + + void CRanrok::Add_FSM() { #pragma region Behavior_Movement_NotFocus diff --git a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp index 4b166ef47..eed606f46 100644 --- a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp @@ -1,4 +1,5 @@ -#include "pch.h" +#include "UI_Manager.h" +#include "pch.h" #include "UI_Manager.h" #include "GameInstance.h" #include "GamePlay_Canvas.h" diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index 26eba3cbd..6429928f7 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -5,8 +5,9 @@ #include "wincrypt.h" #include "Engine_Define.h" + #include "Editor_Macro.h" -#include "Editor_Struct.h" + namespace Editor { @@ -18,6 +19,8 @@ namespace Editor enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_LIGHT, ELEMENT_LAKE }; enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS }; + enum class SHADER_PASS_ETHER { NON_NOMALMAP, WEIGHTBLEND, BLEND, BLUR, BLOOM, END }; + enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END }; enum class SHADER_PASS_NPC_PBR_ANIM { EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, @@ -79,6 +82,8 @@ namespace Editor enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, END }; } +#include "Editor_Struct.h" + using namespace Editor; extern HINSTANCE g_hInstance; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h index 0478ea88c..6427e29de 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h @@ -20,6 +20,7 @@ namespace Editor { #define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #define FX_VTXPOS TEXT("FX_VTXPOS") #define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM") +#define FX_RANROK_ETHER TEXT("FX_RANROK_ETHER") #pragma endregion #pragma region MACRO_PROTOTYPE diff --git a/Jusin154_Team3D/Editor/Public/Editor_Struct.h b/Jusin154_Team3D/Editor/Public/Editor_Struct.h index 8ed205bb2..4f99569be 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Struct.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Struct.h @@ -1,4 +1,5 @@ #pragma once + NS_BEGIN(Engine) class CModel; class CRigidBody_Static; @@ -67,4 +68,152 @@ typedef struct tagLockOnInfo { class CMapElement_Interactable* pInteractive = { nullptr }; }LOCKON_INFO; +typedef struct tagEffectInfo +{ + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; + + _float2 vDiffuseUVGainAmount = {}; + _float2 vMaskingUVGainAmount = {}; + _float2 vNoiseUVGainAmount = {}; + + _float2 vDistortionTime = {}; + _float2 vMaskDistortionUVGainAmount = {}; + + _float2 vUVCutting = { 1.f ,1.f }; + _float2 vUVMaskCutting = { 1.f ,1.f }; + + _int iMaskMoveLerpOption = { 0 }; + _int iDiffuseMoveLerpOption = { 0 }; + _int iNoiseMoveLerpOption = { 0 }; + + _int iMaskDistortionMoveLerpOption = { 0 }; + _int iDiffuseDistortionMoveLerpOption = { 0 }; + + _int iBlurWeight = { 0 }; + + + _bool isDiffuse = {}; + _bool isMasking = {}; + _bool isDissolve = {}; + _bool isNoise = {}; + _bool isEmissive = {}; + _bool isDistortion = {}; + _bool isDiffuseUVMove = {}; + _bool isNoiseUVMove = {}; + _bool isMaskUVMove = {}; + _bool isBlur = {}; + _bool isBillboard = {}; + + _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; + _float fDiffuseAlpha = { 1.f }; + _float fBlurIntensity = {}; + _float fNoiseDistortionIntensity = {}; + _float fEmissiveStrength = { 0.f }; + + LIGHT_DESC LightDesc = {}; + RENDER eRenderOrder = { RENDER::EFFECT }; + + _bool isReverseDissolve = {}; + + EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT }; + + _bool isEmissiveDissolve = { false }; + + _bool isMaskClampSample = { false }; + _bool isNoiseColor = { false }; + _bool isNoiseAlpha = { false }; + _bool isNomalDissolve = {}; + + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + _float fSoftMaskEdge = {}; + _float fSoftMask = {}; + + _bool isEmissiveDissolveReverse = { false }; + _bool isOnlyBlur = { false }; + + SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP }; + + _bool isBlurNoEmissive = {}; + + + _bool isMotionBlur = {}; + + _bool isNoise_G = {}; + _bool isNoise_B = {}; + + _float fModelBlurIntensity = { 0.f }; + + _bool isBloom = {}; + _bool isBloomDissolve = {}; + _bool isBloomReverseDissolve = {}; + _float fBloomStrength = {}; + BLOOM_TYPE eBloomType = {}; + + + _float fDissolveDelay = {}; + _float fReverseDissolveDelay = {}; + _float2 vDissolveUVGainAmount = {}; + _bool isDissolveMove = {}; + + _float3 vDissolveValue = {}; /* Soft Mask , Cut Ratio*/ + + _float fModelDistortIntensity = {}; + _float fPadding0 = {}; + + _float fLightDeley = {}; + _float fLightIntensity = {}; + _float isLightTime = { 0.f }; + _bool isLightDissolve = {}; + + _bool isDissolve_G = {}; + + _float4 vBlurColor = {}; + _float2 vUVNoiseCutting = { 1.f ,1.f }; + + _float fEmissiveColorCut = {}; + + _float fRimLightPower = {}; + _float fRimLightStrength = {}; + + _float4 vNoiseColor = {}; + _float4 vRimLightColor = {}; + + _float2 vMaskOffset = {}; + + _bool isDiffuse_R = {}; + _bool isDiffuse_G = {}; + _bool isDiffuse_B = {}; + _bool isBlurColor = {}; + + _bool isBlurDissolve = {}; + _bool isNomalMap = {}; + _bool isNoDissolveSmoothStep = {}; + _bool isNonSoftEffect = {}; + + _float2 vDissolveSmoothRange = { 0.1f , 0.1f }; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; + + _bool isRimLight = {}; + _bool isMask_G = {}; + _bool isMask_B = {}; + _bool isDissolve_B = {}; + + _float4 vPadding1 = {}; + _float4 vPadding2 = {}; + _float4 vPadding3 = {}; + _float4 vPadding4 = {}; + _float4 vPadding5 = {}; + _float4 vPadding6 = {}; +}EFFECT_INFO; + NS_END diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 25bb4d1d8..cca36e876 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -16,154 +16,6 @@ NS_BEGIN(Editor) class CEffectObject abstract : public CPartObject { public: - typedef struct tagEffectInfo - { - _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; - - _float2 vDiffuseUVGainAmount = {}; - _float2 vMaskingUVGainAmount = {}; - _float2 vNoiseUVGainAmount = {}; - - _float2 vDistortionTime = {}; - _float2 vMaskDistortionUVGainAmount = {}; - - _float2 vUVCutting = { 1.f ,1.f }; - _float2 vUVMaskCutting = { 1.f ,1.f }; - - _int iMaskMoveLerpOption = { 0 }; - _int iDiffuseMoveLerpOption = { 0 }; - _int iNoiseMoveLerpOption = { 0 }; - - _int iMaskDistortionMoveLerpOption = { 0 }; - _int iDiffuseDistortionMoveLerpOption = { 0 }; - - _int iBlurWeight = { 0 }; - - - _bool isDiffuse = {}; - _bool isMasking = {}; - _bool isDissolve = {}; - _bool isNoise = {}; - _bool isEmissive = {}; - _bool isDistortion = {}; - _bool isDiffuseUVMove = {}; - _bool isNoiseUVMove = {}; - _bool isMaskUVMove = {}; - _bool isBlur = {}; - _bool isBillboard = {}; - - _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; - _float fDiffuseAlpha = { 1.f }; - _float fBlurIntensity = {}; - _float fNoiseDistortionIntensity = {}; - _float fEmissiveStrength = { 0.f }; - - LIGHT_DESC LightDesc = {}; - RENDER eRenderOrder = { RENDER::EFFECT }; - - _bool isReverseDissolve = {}; - - EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT }; - - _bool isEmissiveDissolve = { false }; - - _bool isMaskClampSample = { false }; - _bool isNoiseColor = { false }; - _bool isNoiseAlpha = { false }; - _bool isNomalDissolve = {}; - - _float fSoftenExp = { 1.31429f }; - _float fSoftStrength = {}; - _float fCoreBoost = {}; - _float fRadius = {}; - - _float fSoftMaskEdge = {}; - _float fSoftMask = {}; - - _bool isEmissiveDissolveReverse = { false }; - _bool isOnlyBlur = { false }; - - SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP }; - - _bool isBlurNoEmissive = {}; - - - _bool isMotionBlur = {}; - - _bool isNoise_G = {}; - _bool isNoise_B= {}; - - _float fModelBlurIntensity = {0.f}; - - _bool isBloom = {}; - _bool isBloomDissolve = {}; - _bool isBloomReverseDissolve = {}; - _float fBloomStrength = {}; - BLOOM_TYPE eBloomType = {}; - - - _float fDissolveDelay = {}; - _float fReverseDissolveDelay = {}; - _float2 vDissolveUVGainAmount = {}; - _bool isDissolveMove = {}; - - _float3 vDissolveValue = {}; /* Soft Mask , Cut Ratio*/ - - _float fModelDistortIntensity = {}; - _float fPadding0 = {}; - - _float fLightDeley = {}; - _float fLightIntensity = {}; - _float isLightTime = { 0.f }; - _bool isLightDissolve = {}; - - _bool isDissolve_G = {}; - - _float4 vBlurColor = {}; - _float2 vUVNoiseCutting = { 1.f ,1.f }; - - _float fEmissiveColorCut = {}; - - _float fRimLightPower = {}; - _float fRimLightStrength = {}; - - _float4 vNoiseColor = {}; - _float4 vRimLightColor = {}; - - _float2 vMaskOffset = {}; - - _bool isDiffuse_R = {}; - _bool isDiffuse_G = {}; - _bool isDiffuse_B = {}; - _bool isBlurColor = {}; - - _bool isBlurDissolve = {}; - _bool isNomalMap = {}; - _bool isNoDissolveSmoothStep = {}; - _bool isNonSoftEffect = {}; - - _float2 vDissolveSmoothRange = {0.1f , 0.1f}; - - _float fPadding1 = {}; - - _bool isScreenFX = {}; - _bool isPadding0 = {}; - _bool isPadding1 = {}; - _bool isPadding2 = {}; - - _bool isRimLight = {}; - _bool isMask_G = {}; - _bool isMask_B = {}; - _bool isDissolve_B = {}; - - _float4 vPadding1 = {}; - _float4 vPadding2 = {}; - _float4 vPadding3 = {}; - _float4 vPadding4 = {}; - _float4 vPadding5 = {}; - _float4 vPadding6 = {}; - }EFFECT_INFO; - typedef struct tagPreEffectInfo { _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h index 9ddd7d970..f0424e2bc 100644 --- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h @@ -40,6 +40,7 @@ class CLevel_ObjectViewer final : public CLevel _wchar* Save_ModelName(const _char* Category); void Load_KeyFrame(const _char* Name); void Find_Anim(); + void Sound_List(); void Save_KeyFrame(); void ResetLevel_Environment() {}; diff --git a/Jusin154_Team3D/Editor/Public/Ranrok.h b/Jusin154_Team3D/Editor/Public/Ranrok.h index 03ec67bf8..dba967efb 100644 --- a/Jusin154_Team3D/Editor/Public/Ranrok.h +++ b/Jusin154_Team3D/Editor/Public/Ranrok.h @@ -76,6 +76,8 @@ class CRanrok final : public CMonster HRESULT Bind_ShaderResources(); HRESULT Render_Nonblend(); HRESULT Render_Blend(); + virtual HRESULT Render_Blur() override; + virtual HRESULT Render_Bloom() override; void MoveTo(_float fTimeDelta); HRESULT Load_RanrokPos(const _char* pFilePath); public: @@ -209,6 +211,23 @@ class CRanrok final : public CMonster void Behavior_DeadEnter(); HRESULT Behavior_DeadExitCheck(_float fTimeDelta); void Behavior_DeadExit(); + +#pragma region Ether + + class CRanrok_EtherInfo* m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::WINGS)] = {}; + class CShader* m_pEther_Shader = { nullptr }; + + +#ifdef _DEBUG + _int m_iCurrentItem = {}; + _char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether" }; + _string m_strSavePath = {}; +#endif + + void Ether_Create(); + void Ether_Update(_float fTimeDelata); + void Ether_GUI(); +#pragma endregion }; NS_END diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_EtherInfo.h b/Jusin154_Team3D/Editor/Public/Ranrok_EtherInfo.h new file mode 100644 index 000000000..b6ac40863 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Ranrok_EtherInfo.h @@ -0,0 +1,81 @@ +#pragma once + +#include "Editor_Define.h" +#include "PartObject.h" + +NS_BEGIN(Editor) + +class CRanrok_EtherInfo final : public CGameObject +{ +public: + typedef struct tagTimeInfo + { + _float2 vAnimIndex = {}; + _float2 vAnimTime = { 0.f , 1.f }; + _float2 vLifeTime = {0.f , 1.f}; + _float2 vDiffuseUVMoveTime = { 0.f , 1.f }; + _float2 vMaskingUVMoveTime = { 0.f , 1.f }; + _float2 vNoiseUVMoveTime = { 0.f , 1.f }; + _float2 vDistortionUVMoveTime = { 0.f , 1.f }; + _float2 vDissolveUVMoveTime = { 0.f , 1.f }; + }TIME_INFO; +private: + CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype); + virtual ~CRanrok_EtherInfo() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + HRESULT Load_Info(const _char* pFilePath, LEVEL eLevel); + HRESULT Save_Info(const _char* pPath); + + _bool isBloom() { return m_Ether_Info.isBloom; } + _bool isBlur() { return m_Ether_Info.isBlur; } + RENDER Get_RenderOrder() { return m_Ether_Info.eRenderOrder; } +public: + void Update_Time(_float fTimeDelta); + void Edit_Ether(); + HRESULT Bind_Ether_ShaderResources(class CShader* pShader); + HRESULT Ether_Begin(class CShader* pShader); +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + + + + + + EFFECT_INFO m_Ether_Info = {}; + TIME_INFO m_ErherTimeInfo = {}; + + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pNoise_TextureCom = { nullptr }; + CTexture* m_pMasking_TextureCom = { nullptr }; + CTexture* m_pDissolve_TextureCom = { nullptr }; + CTexture* m_pEmissive_TextureCom = { nullptr }; + CTexture* m_pDistortion_TextureCom = { nullptr }; + + _string m_strDiffuseName = {}; + _string m_strNoiseName = {}; + _string m_strMaskingName = {}; + _string m_strDissolveName = {}; + _string m_strEmissiveName = {}; + _string m_strDistortionName = {}; + + _string m_strPath = {}; +public: + static CRanrok_EtherInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; +#endif +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index b3b63508e..6604f3181 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -353,7 +353,7 @@ void CRenderer::Render_Decal() if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_Decal")))) { return; } - + m_eType = RENDER::DECAL; for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::DECAL)]) { if (nullptr != pRenderObject) { @@ -451,6 +451,7 @@ void CRenderer::Render_Combined() COMPUTE_TIMEDELTA("Timer_Render_Combined"); EVENTSCOPE_("Render_Combined"); + if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Combined")))) { return; } @@ -541,7 +542,7 @@ void CRenderer::Render_EnvironmentPostProcess() if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_ENV_Blur_X")))) { // Target_ENV_Blur_X return; } - + m_pShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix); m_pShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix); m_pShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix); @@ -661,6 +662,8 @@ void CRenderer::Render_Effect() return; } + m_eType = RENDER::EFFECT; + for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::EFFECT)]) { if (nullptr != pRenderObject) @@ -682,7 +685,7 @@ void CRenderer::Render_WeightBlend() COMPUTE_TIMEDELTA("Timer_Render_WeightBlend"); EVENTSCOPE_("Render_WeightBlend"); // Bind_Resorces - + m_pWeightBlendShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix); m_pWeightBlendShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix); m_pWeightBlendShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix); @@ -834,7 +837,7 @@ void CRenderer::Render_SSAO() COMPUTE_TIMEDELTA("Timer_Render_SSAO"); EVENTSCOPE_("Render_SSAO"); _uint iKernelSize = SSAO_SAMPLE_NUMBER; - + if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_SSAO_OCCLUSION")))) { return; } @@ -983,7 +986,7 @@ void CRenderer::Render_Blur_Mesh() { COMPUTE_TIMEDELTA("Timer_Render_Blur_Mesh"); EVENTSCOPE_("Render_Blur_Mesh"); - + m_eType = RENDER::BLUR; m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)].sort([](CGameObject* pSour, CGameObject* pDest)->_bool { return pSour->Get_Depth() > pDest->Get_Depth(); }); @@ -1015,6 +1018,7 @@ void CRenderer::Render_PostProcessing() /* POSTPROCESSING */ COMPUTE_TIMEDELTA("Timer_Render_PostProcessing"); EVENTSCOPE_("Render_PostProcessing"); + { ID3D11Texture2D* pBackBuffer = { nullptr }; m_pGameInstance->Get_BackBufferPTR(&pBackBuffer); @@ -1088,7 +1092,7 @@ void CRenderer::Render_PostProcessing() } } m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::MOTIONBLUR)); - + m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); if (false == m_bMB) { diff --git a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp index eaa11b351..ff1ffe2a8 100644 --- a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp +++ b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp @@ -17,6 +17,14 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = { TEXT("BGM/Ranrok_BGM.wav"), #pragma endregion +#pragma region FOOTSTEP + TEXT("Player/footsteps/step_int.wav"), + TEXT("Player/footsteps/step_road.wav"), + TEXT("Player/footsteps/step_rock.wav"), + TEXT("Player/footsteps/step_terrain.wav"), +#pragma endregion + + #pragma region SPELL TEXT("Player/spells_jap_akb/jap_0.wav"), TEXT("Player/spells_jap_akb/jap_1.wav"), @@ -270,6 +278,178 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = { TEXT("Interactive/Chest/chest_found.wav"), TEXT("Interactive/Chest/chest_open.wav"), #pragma endregion + +#pragma region RANROK + TEXT("Ranrok/ranrok_0.wav"), + TEXT("Ranrok/ranrok_1.wav"), + TEXT("Ranrok/ranrok_2.wav"), + TEXT("Ranrok/ranrok_3.wav"), + TEXT("Ranrok/ranrok_4.wav"), + TEXT("Ranrok/ranrok_5.wav"), + TEXT("Ranrok/ranrok_6.wav"), + TEXT("Ranrok/ranrok_7.wav"), + TEXT("Ranrok/ranrok_8.wav"), + TEXT("Ranrok/ranrok_9.wav"), + TEXT("Ranrok/ranrok_10.wav"), + TEXT("Ranrok/ranrok_11.wav"), + TEXT("Ranrok/ranrok_12.wav"), + TEXT("Ranrok/ranrok_13.wav"), + TEXT("Ranrok/ranrok_14.wav"), + TEXT("Ranrok/ranrok_15.wav"), + TEXT("Ranrok/ranrok_16.wav"), + TEXT("Ranrok/ranrok_17.wav"), + TEXT("Ranrok/ranrok_18.wav"), + TEXT("Ranrok/ranrok_19.wav"), + TEXT("Ranrok/ranrok_20.wav"), + TEXT("Ranrok/ranrok_21.wav"), + TEXT("Ranrok/ranrok_22.wav"), + TEXT("Ranrok/ranrok_23.wav"), + TEXT("Ranrok/ranrok_24.wav"), + TEXT("Ranrok/ranrok_25.wav"), + TEXT("Ranrok/ranrok_26.wav"), + TEXT("Ranrok/ranrok_27.wav"), + TEXT("Ranrok/ranrok_28.wav"), + TEXT("Ranrok/ranrok_29.wav"), + TEXT("Ranrok/ranrok_30.wav"), + TEXT("Ranrok/ranrok_31.wav"), + TEXT("Ranrok/ranrok_32.wav"), + TEXT("Ranrok/ranrok_33.wav"), + TEXT("Ranrok/ranrok_34.wav"), + TEXT("Ranrok/ranrok_35.wav"), + TEXT("Ranrok/ranrok_36.wav"), + TEXT("Ranrok/ranrok_37.wav"), + TEXT("Ranrok/ranrok_38.wav"), + TEXT("Ranrok/ranrok_39.wav"), + TEXT("Ranrok/ranrok_yell.wav"), +#pragma endregion + +#pragma region TROLL + TEXT("Troll/troll_0.wav"), + TEXT("Troll/troll_1.wav"), + TEXT("Troll/troll_2.wav"), + TEXT("Troll/troll_3.wav"), + TEXT("Troll/troll_4.wav"), + TEXT("Troll/troll_5.wav"), + TEXT("Troll/troll_6.wav"), + TEXT("Troll/troll_7.wav"), + TEXT("Troll/troll_8.wav"), + TEXT("Troll/troll_9.wav"), + TEXT("Troll/troll_10.wav"), + TEXT("Troll/troll_11.wav"), + TEXT("Troll/troll_12.wav"), + TEXT("Troll/troll_13.wav"), + TEXT("Troll/troll_14.wav"), + TEXT("Troll/troll_15.wav"), + TEXT("Troll/troll_16.wav"), + TEXT("Troll/troll_17.wav"), + TEXT("Troll/troll_18.wav"), + TEXT("Troll/troll_19.wav"), + TEXT("Troll/troll_20.wav"), + TEXT("Troll/troll_21.wav"), + TEXT("Troll/troll_22.wav"), + TEXT("Troll/troll_23.wav"), + TEXT("Troll/troll_24.wav"), + TEXT("Troll/troll_25.wav"), + TEXT("Troll/troll_26.wav"), + TEXT("Troll/troll_27.wav"), + TEXT("Troll/troll_28.wav"), + TEXT("Troll/troll_29.wav"), + TEXT("Troll/troll_30.wav"), + TEXT("Troll/troll_31.wav"), + TEXT("Troll/troll_32.wav"), + TEXT("Troll/troll_33.wav"), + TEXT("Troll/troll_34.wav"), + TEXT("Troll/troll_35.wav"), + TEXT("Troll/troll_36.wav"), + TEXT("Troll/troll_37.wav"), + TEXT("Troll/troll_38.wav"), + TEXT("Troll/troll_39.wav"), + TEXT("Troll/troll_40.wav"), + TEXT("Troll/troll_41.wav"), + TEXT("Troll/troll_42.wav"), + TEXT("Troll/troll_43.wav"), + TEXT("Troll/troll_44.wav"), + TEXT("Troll/troll_45.wav"), + TEXT("Troll/troll_46.wav"), + TEXT("Troll/troll_47.wav"), + TEXT("Troll/troll_48.wav"), + TEXT("Troll/troll_49.wav"), + TEXT("Troll/troll_50.wav"), + TEXT("Troll/troll_51.wav"), + TEXT("Troll/troll_52.wav"), + TEXT("Troll/troll_53.wav"), + TEXT("Troll/troll_54.wav"), + TEXT("Troll/troll_55.wav"), + TEXT("Troll/troll_56.wav"), + TEXT("Troll/troll_57.wav"), + TEXT("Troll/troll_58.wav"), + TEXT("Troll/troll_59.wav"), + TEXT("Troll/troll_60.wav"), + TEXT("Troll/troll_61.wav"), + TEXT("Troll/troll_62.wav"), + TEXT("Troll/troll_63.wav"), + TEXT("Troll/troll_64.wav"), + TEXT("Troll/troll_65.wav"), + TEXT("Troll/troll_66.wav"), + TEXT("Troll/troll_67.wav"), + TEXT("Troll/troll_68.wav"), + TEXT("Troll/troll_69.wav"), + TEXT("Troll/troll_70.wav"), + TEXT("Troll/troll_71.wav"), + TEXT("Troll/troll_72.wav"), + TEXT("Troll/troll_73.wav"), + TEXT("Troll/troll_74.wav"), + TEXT("Troll/troll_75.wav"), + TEXT("Troll/troll_76.wav"), + TEXT("Troll/troll_77.wav"), + TEXT("Troll/troll_78.wav"), + TEXT("Troll/troll_79.wav"), + TEXT("Troll/troll_80.wav"), + TEXT("Troll/troll_81.wav"), + TEXT("Troll/troll_82.wav"), + TEXT("Troll/troll_83.wav"), + TEXT("Troll/troll_84.wav"), + TEXT("Troll/troll_85.wav"), + TEXT("Troll/troll_86.wav"), + TEXT("Troll/troll_87.wav"), + TEXT("Troll/troll_88.wav"), + TEXT("Troll/troll_89.wav"), + TEXT("Troll/troll_90.wav"), + TEXT("Troll/troll_91.wav"), + TEXT("Troll/troll_92.wav"), + TEXT("Troll/troll_93.wav"), + TEXT("Troll/troll_94.wav"), + TEXT("Troll/troll_95.wav"), + TEXT("Troll/troll_96.wav"), + TEXT("Troll/troll_97.wav"), + TEXT("Troll/troll_98.wav"), + TEXT("Troll/troll_99.wav"), + TEXT("Troll/troll_100.wav"), + TEXT("Troll/troll_101.wav"), + +#pragma endregion + +#pragma region FX + TEXT("FX/fx_sound_0.wav"), + TEXT("FX/fx_sound_1.wav"), + TEXT("FX/fx_sound_2.wav"), + TEXT("FX/fx_sound_3.wav"), + TEXT("FX/fx_sound_4.wav"), + TEXT("FX/fx_sound_6.wav"), + TEXT("FX/fx_sound_7.wav"), + TEXT("FX/fx_sound_8.wav"), + TEXT("FX/fx_sound_9.wav"), + TEXT("FX/fx_sound_10.wav"), + TEXT("FX/fx_sound_11.wav"), + TEXT("FX/fx_sound_12.wav"), + TEXT("FX/fx_sound_13.wav"), + TEXT("FX/fx_sound_14.wav"), + TEXT("FX/fx_sound_15.wav"), + TEXT("FX/fx_sound_16.wav"), + +#pragma endregion + + }; static_assert(SD_KIND_COUNT == _countof(SD_PATH::SD_KIND_PATHS), diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index a5615d92f..1d0a94d2e 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -125,14 +125,14 @@ _wstring CUnit::Get_NpcName() _int CUnit::Get_TextID() { - return _int(); + return m_iCurrentFlow; } void CUnit::Set_NextID(_int ID) { } -void CUnit::Set_Flow(_int Index) +void CUnit::Set_Flow(_int Index, _float fTime) { } diff --git a/Jusin154_Team3D/Engine/Public/SoundSrc.h b/Jusin154_Team3D/Engine/Public/SoundSrc.h index 1c98e508b..dfc116b0c 100644 --- a/Jusin154_Team3D/Engine/Public/SoundSrc.h +++ b/Jusin154_Team3D/Engine/Public/SoundSrc.h @@ -16,6 +16,13 @@ enum class SD_KIND { BGM_HOGWART_INT, BGM_RANROK_0, #pragma endregion +#pragma region FOOTSTEP + STEP_INT, + STEP_ROAD, + STEP_ROCK, + STEP_TERRAIN, +#pragma endregion + #pragma region SPELL SP_JAP_0, SP_JAP_1, @@ -268,6 +275,178 @@ enum class SD_KIND { CHEST_OPEN, #pragma endregion +#pragma region RANROK + RANROK_0, + RANROK_1, + RANROK_2, + RANROK_3, + RANROK_4, + RANROK_5, + RANROK_6, + RANROK_7, + RANROK_8, + RANROK_9, + RANROK_10, + RANROK_11, + RANROK_12, + RANROK_13, + RANROK_14, + RANROK_15, + RANROK_16, + RANROK_17, + RANROK_18, + RANROK_19, + RANROK_20, + RANROK_21, + RANROK_22, + RANROK_23, + RANROK_24, + RANROK_25, + RANROK_26, + RANROK_27, + RANROK_28, + RANROK_29, + RANROK_30, + RANROK_31, + RANROK_32, + RANROK_33, + RANROK_34, + RANROK_35, + RANROK_36, + RANROK_37, + RANROK_38, + RANROK_39, + RANROK_YELL, +#pragma endregion + +#pragma region TROLL + TROLL_0, + TROLL_1, + TROLL_2, + TROLL_3, + TROLL_4, + TROLL_5, + TROLL_6, + TROLL_7, + TROLL_8, + TROLL_9, + TROLL_10, + TROLL_11, + TROLL_12, + TROLL_13, + TROLL_14, + TROLL_15, + TROLL_16, + TROLL_17, + TROLL_18, + TROLL_19, + TROLL_20, + TROLL_21, + TROLL_22, + TROLL_23, + TROLL_24, + TROLL_25, + TROLL_26, + TROLL_27, + TROLL_28, + TROLL_29, + TROLL_30, + TROLL_31, + TROLL_32, + TROLL_33, + TROLL_34, + TROLL_35, + TROLL_36, + TROLL_37, + TROLL_38, + TROLL_39, + TROLL_40, + TROLL_41, + TROLL_42, + TROLL_43, + TROLL_44, + TROLL_45, + TROLL_46, + TROLL_47, + TROLL_48, + TROLL_49, + TROLL_50, + TROLL_51, + TROLL_52, + TROLL_53, + TROLL_54, + TROLL_55, + TROLL_56, + TROLL_57, + TROLL_58, + TROLL_59, + TROLL_60, + TROLL_61, + TROLL_62, + TROLL_63, + TROLL_64, + TROLL_65, + TROLL_66, + TROLL_67, + TROLL_68, + TROLL_69, + TROLL_70, + TROLL_71, + TROLL_72, + TROLL_73, + TROLL_74, + TROLL_75, + TROLL_76, + TROLL_77, + TROLL_78, + TROLL_79, + TROLL_80, + TROLL_81, + TROLL_82, + TROLL_83, + TROLL_84, + TROLL_85, + TROLL_86, + TROLL_87, + TROLL_88, + TROLL_89, + TROLL_90, + TROLL_91, + TROLL_92, + TROLL_93, + TROLL_94, + TROLL_95, + TROLL_96, + TROLL_97, + TROLL_98, + TROLL_99, + TROLL_100, + TROLL_101, + +#pragma endregion + +#pragma region FX + FX_SOUND_0, + FX_SOUND_1, + FX_SOUND_2, + FX_SOUND_3, + FX_SOUND_4, + FX_SOUND_6, + FX_SOUND_7, + FX_SOUND_8, + FX_SOUND_9, + FX_SOUND_10, + FX_SOUND_11, + FX_SOUND_12, + FX_SOUND_13, + FX_SOUND_14, + FX_SOUND_15, + FX_SOUND_16, +#pragma endregion + + + + END, }; diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h index d6ce50e17..dea6320db 100644 --- a/Jusin154_Team3D/Engine/Public/TimeSocket.h +++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h @@ -49,6 +49,7 @@ typedef enum class typeTimeSocket_Func { // CHARACTER SET_ANIMSTATE, + SET_ANIMTRACKPOSITION, SET_FSMSTATE, BIND_SOCKET_MATRIX, UNBIND_SOCKET_MATRIX, @@ -97,10 +98,11 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C {"SHAKE", TIMESOCKET_FUNC::SHAKE}, // CHARACTER - {"SET_ANIMSTATE", TIMESOCKET_FUNC::SET_ANIMSTATE}, - {"SET_FSMSTATE", TIMESOCKET_FUNC::SET_FSMSTATE}, - {"BIND_SOCKET_MATRIX", TIMESOCKET_FUNC::BIND_SOCKET_MATRIX}, - {"UNBIND_SOCKET_MATRIX",TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX}, + {"SET_ANIMSTATE", TIMESOCKET_FUNC::SET_ANIMSTATE}, + {"SET_ANIMTRACKPOSITION", TIMESOCKET_FUNC::SET_ANIMTRACKPOSITION}, + {"SET_FSMSTATE", TIMESOCKET_FUNC::SET_FSMSTATE}, + {"BIND_SOCKET_MATRIX", TIMESOCKET_FUNC::BIND_SOCKET_MATRIX}, + {"UNBIND_SOCKET_MATRIX", TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX}, // EFFECT diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h index 04a531250..cba67e294 100644 --- a/Jusin154_Team3D/Engine/Public/Unit.h +++ b/Jusin154_Team3D/Engine/Public/Unit.h @@ -62,7 +62,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject virtual _int Get_TextID(); virtual void Set_NextID(_int ID); - virtual void Set_Flow(_int Index); + virtual void Set_Flow(_int Index, _float fTime); virtual _int Get_Flow(); #pragma endregion