diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 987c96c90..9d4ab8cb3 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -195,6 +195,7 @@ call Update_Resources.bat
+
@@ -327,6 +328,7 @@ call Update_Resources.bat
+
@@ -633,6 +635,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 50d52b126..e970fcc8c 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -913,13 +913,17 @@
02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
-
+
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop
04.Mechanic\State\State_Combat\State_Block
+
+ 02.GameObjects\NPC\Hostile\Monster\Ranrok
+
+
@@ -2775,6 +2779,7 @@
04.Mechanic\State\State_Combat\State_Block
+
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index bad6a1245..d50693a07 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -480,6 +480,7 @@ void CCamPosition_Shoulder::Describe_Entity()
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("Cam_Shoulder")) {
m_pTransformCom->Describe_Entity();
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
index e9b51049a..dd8799a7d 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "CamPosition_Target.h"
+#include "Unit.h"
CCamPosition_Target::CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCamPosition(pDevice, pContext)
@@ -14,7 +15,12 @@ CCamPosition_Target::CCamPosition_Target(const CCamPosition_Target& rhs)
void CCamPosition_Target::Priority_Update(_float fTimeDelta)
{
if (nullptr != m_pStalkingTarget) {
- Set_WorldPostion(m_pStalkingTarget->Get_WorldPostion());
+ if (nullptr != m_pTargetSocketMatrix) {
+ Set_WorldPostion(XMMatrixMultiply(XMLoadFloat4x4(m_pTargetSocketMatrix), m_pStalkingTarget->Get_Component()->Get_XMWorldMatrix()).r[3]);
+ }
+ else {
+ Set_WorldPostion(m_pStalkingTarget->Get_WorldPostion());
+ }
}
}
@@ -36,10 +42,16 @@ void CCamPosition_Target::Set_WorldPostion(_vector vPos)
m_pTransformCom->Set_State(STATE::POSITION, vPos);
}
-void CCamPosition_Target::Stalking_Target(CGameObject* pStalkingTarget)
+_bool CCamPosition_Target::IsStalking()
+{
+ return nullptr == m_pStalkingTarget;
+}
+
+void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
{
SAFE_RELEASE(m_pStalkingTarget);
m_pStalkingTarget = pStalkingTarget;
+ m_pTargetSocketMatrix = pTargetSocketMatrix;
SAFE_ADDREF(m_pStalkingTarget);
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index b17f87407..22cbcd485 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -4,6 +4,7 @@
#include "TimeSocket.h"
#include "CamPosition_Target.h"
#include "Layer.h"
+#include "Unit.h"
CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CCamera(pDevice, pContext) {}
@@ -82,14 +83,14 @@ void CCamera_Cinematic::Set_Priority(_uint iPriority)
m_iPriority = iPriority;
}
-void CCamera_Cinematic::Set_LookTarget(CGameObject* pTarget)
+void CCamera_Cinematic::Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
{
- m_pLookTargetPart->Stalking_Target(pTarget);
+ m_pLookTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
}
-void CCamera_Cinematic::Set_FollowTarget(CGameObject* pTarget)
+void CCamera_Cinematic::Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
{
- m_pFollowTargetPart->Stalking_Target(pTarget);
+ m_pFollowTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
}
void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
@@ -111,8 +112,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
Start_Lerp_Translation(pContents->vParam_11.x, pContents->pxTransform);
} break;
case TIMESOCKET_FUNC::ROTATION: {
- m_pTransformCom->RotationQ(pContents->pxTransform.q);
- m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK) * 10.f);
+ Rotation(XMLoadFloat4((_float4*)&pContents->pxTransform.q));
Clear_Lerp_Rotation();
} break;
case TIMESOCKET_FUNC::ROTATION_LERP:
@@ -122,11 +122,14 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
} break;
case TIMESOCKET_FUNC::LOOK_AT:
{
- Set_LookTarget(pContents->pOtherTarget);
+ CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
+ Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
+ //Set_LookTarget(pUnit, nullptr);
}break;
case TIMESOCKET_FUNC::DONT_LOOK_AT:
{
- Set_LookTarget(pContents->pOtherTarget);
+ CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
+ Set_FollowTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
}break;
case TIMESOCKET_FUNC::ZOOM_IN:
{
@@ -219,7 +222,7 @@ void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTr
{
m_bLerpTranslation = { fTimeMaximum != 0 };
m_vLerpTranslationTimer = { 0.f, fTimeMaximum };
- XMStoreFloat3(&m_vLerpTranslationStart, m_pTransformCom->Get_State(STATE::POSITION));
+ XMStoreFloat3(&m_vLerpTranslationStart, m_pFollowTarget->Get_WorldPostion());
m_vLerpTranslationEnd = vTrans;
}
void CCamera_Cinematic::Clear_Lerp_Translation()
@@ -237,9 +240,8 @@ void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta)
m_vLerpRotiationTimer.x = m_vLerpRotiationTimer.y;
m_bLerpRotiation = false;
}
- _vector vRotQ = XMQuaternionSlerp(XMLoadFloat4(&m_vLerpRotQStart), XMLoadFloat4(&m_vLerpRotQEnd), m_vLerpRotiationTimer.x / m_vLerpRotiationTimer.y);
- _vector vPos = m_pTransformCom->Get_State(STATE::POSITION);
- m_pLookTargetPart->Get_Component()->RotationQ(vRotQ);
+ _vector vRotQ = XMQuaternionNormalize(XMQuaternionSlerp(XMLoadFloat4(&m_vLerpRotQStart), XMLoadFloat4(&m_vLerpRotQEnd), m_vLerpRotiationTimer.x / m_vLerpRotiationTimer.y));
+ Rotation(vRotQ);
}
}
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform)
@@ -309,6 +311,20 @@ void CCamera_Cinematic::Transition(_float fTimeDelta)
m_pTransformCom->Set_WorldMatrix(matResult);
}
+void CCamera_Cinematic::Rotation(_fvector vRotQ)
+{
+ _vector vPos = m_pFollowTargetPart->Get_WorldPostion();
+ _vector vLookPos = m_pLookTargetPart->Get_WorldPostion();
+ _float fDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos));
+ _vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ);
+
+ if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임
+ m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f));
+ }
+ else {
+ m_pLookTargetPart->Set_WorldPostion(XMVectorSetW(vPos + (fDistance * vLookDir), 1.f));
+ }
+}
CCamera_Cinematic* CCamera_Cinematic::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CCamera_Cinematic* pInstance = new CCamera_Cinematic(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index 07fc375cc..57383a131 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -3,52 +3,42 @@
#include "GameInstance.h"
#include "InfoInstance.h"
#include "Monster.h"
+#include "TriggerBox.h"
#include "Layer.h"
#include "Player.h"
#include "TimeSocket.h"
+#include "Camera_Cinematic.h"
+#include "Ranrok.h"
CCutSceneInfo::CCutSceneInfo()
{
}
void CCutSceneInfo::Update(_float fTimeDelta)
{
- _float fRatio = 0.f;
- for (map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); 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);
- for (list::iterator socketIter = pSockets->begin(); socketIter != pSockets->end();) {
- GUI::Begin("CutScene");
- if (GUI::TreeNode((*socketIter)->m_Contents.strEventName.c_str())) {
- GUI::Text("fRatio : %.2f", fRatio);
- GUI::TreePop();
- }
- GUI::End();
- if ((*socketIter)->Trigger(fRatio))
- {
- SAFE_RELEASE((*socketIter));
- socketIter = pSockets->erase(socketIter);
- }
- else
- {
- break;
- }
- }
- if (pSockets->empty()) {
- Safe_Delete((*iter).second);
- iter = m_funcActiveEvents.erase(iter);
- }
- else {
- iter++;
- }
- }
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+ Update_WaitEvents(fTimeDelta);
+ Update_ActiveEvents(fTimeDelta);
}
void CCutSceneInfo::Change_Level()
{
- _uint iLevel = m_pGameInstance->Get_NextLevelID();
-
- Clear_ActiveEvents();
+ LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
+ switch (eLevel)
+ {
+ case LEVEL::GAMEPLAY:
+ Clear_AllEvents();
+ Ready_GameplayCutScenes();
+ break;
+ case LEVEL::FIELD:
+ Clear_AllEvents();
+ Ready_GameplayCutScenes();
+ break;
+ default:
+ Clear_ActiveEvents();
+ break;
+ }
}
void CCutSceneInfo::Active_Event(_string& strKey)
@@ -69,6 +59,7 @@ HRESULT CCutSceneInfo::DeActive_ActiveEvent(_string& strKey)
socketIter != (*iter).second->m_Sockets.end(); ++socketIter) {
SAFE_RELEASE((*socketIter));
}
+ SAFE_RELEASE(iter->second->m_pTriggerBox);
Safe_Delete((*iter).second);
m_funcActiveEvents.erase(iter);
}
@@ -80,6 +71,63 @@ void CCutSceneInfo::Load_Events(pair<_string, TimeLine*>& pairTimeLine)
m_funcWaitEvents.emplace(pairTimeLine);
}
+void CCutSceneInfo::Update_ActiveEvents(_float fTimeDelta)
+{
+ _float fRatio = 0.f;
+ for (map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); 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);
+ for (list::iterator socketIter = pSockets->begin(); socketIter != pSockets->end();) {
+#ifdef _DEBUG
+ GUI::Begin("CutScene");
+ if (GUI::TreeNodeEx((*socketIter)->m_Contents.strEventName.c_str(), ImGuiTreeNodeFlags_::ImGuiTreeNodeFlags_DefaultOpen)) {
+ GUI::Text("fRatio : %.2f", fRatio);
+ GUI::Text("fSecond : %.2f / %.2f", iter->second->m_vTimer.x, iter->second->m_vTimer.y);
+ GUI::TreePop();
+ }
+ GUI::End();
+#endif // _DEBUG
+
+ if ((*socketIter)->Trigger(fRatio))
+ {
+ SAFE_RELEASE((*socketIter));
+ socketIter = pSockets->erase(socketIter);
+ }
+ else
+ {
+ break;
+ }
+ }
+ if (pSockets->empty()) {
+ Safe_Delete((*iter).second);
+ iter = m_funcActiveEvents.erase(iter);
+ }
+ else {
+ iter++;
+ }
+ }
+}
+
+void CCutSceneInfo::Update_WaitEvents(_float fTimeDelta)
+{
+ for (map<_string, TimeLine*>::iterator iter = m_funcWaitEvents.begin(); iter != m_funcWaitEvents.end();) {
+ if (nullptr != iter->second->m_pTriggerBox) {
+ if (SUCCEEDED(iter->second->m_pTriggerBox->TryScanArea(fTimeDelta))) {
+ SAFE_RELEASE(iter->second->m_pTriggerBox);
+ m_funcActiveEvents.insert(*iter);
+ iter = m_funcWaitEvents.erase(iter);
+ }
+ else {
+ ++iter;
+ }
+ }
+ else {
+ ++iter;
+ }
+ }
+}
+
HRESULT CCutSceneInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_pGameInstance = CGameInstance::GetInstance();
@@ -117,7 +165,18 @@ HRESULT CCutSceneInfo::Clear_AllEvents()
Clear_Events(m_funcActiveEvents);
Clear_Events(m_funcWaitEvents);
- return E_NOTIMPL;
+ return S_OK;
+}
+HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
+{
+ return S_OK;
+}
+HRESULT CCutSceneInfo::Ready_FieldCutScenes()
+{
+ {
+ Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml");
+ }
+ return S_OK;
}
CCutSceneInfo* CCutSceneInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
@@ -139,3 +198,309 @@ void CCutSceneInfo::Free()
SAFE_RELEASE(m_pDevice);
SAFE_RELEASE(m_pContext);
}
+#ifdef _DEBUG
+void CCutSceneInfo::Describe_Entity()
+{
+ GUI::Begin("CutScene");
+ if (GUI::Button("ReadyCutScene")) {
+ LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
+ Clear_AllEvents();
+ switch (eLevel)
+ {
+ case LEVEL::GAMEPLAY:
+ {
+ Ready_GameplayCutScenes();
+ }
+ break;
+ case LEVEL::FIELD:
+ {
+ Ready_FieldCutScenes();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+ if (GUI::Button("DeActiveCutScene")) {
+ Clear_ActiveEvents();
+ }
+ GUI::End();
+}
+#endif // _DEBUG
+
+
+static _bool IsTrueText(const char* text)
+{
+ if (!text) { return false; }
+ return (strcmp(text, "true") == 0) || (strcmp(text, "1") == 0);
+}
+
+static _bool TryReadFloatAttr(tinyxml2::XMLElement* element, const _char* attrName, _float& outValue)
+{
+ if (!element || !attrName) {
+ return false;
+ }
+
+ const _char* text = element->Attribute(attrName);
+ if (!text || text[0] == '\0') {
+ return false;
+ }
+
+ return (element->QueryFloatAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
+}
+
+static _bool TryReadUIntAttr(tinyxml2::XMLElement* element, const _char* attrName, _uint& outValue)
+{
+ if (!element || !attrName) return false;
+
+ const _char* text = element->Attribute(attrName);
+ if (!text || text[0] == '\0') {
+ return false;
+ }
+
+ return (element->QueryUnsignedAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
+}
+
+static void ReadPxTransform(tinyxml2::XMLElement* transformNode, PSX::PxTransform& outTransform)
+{
+ outTransform.p = PSX::PxVec3(0.f, 0.f, 0.f);
+ outTransform.q = PSX::PxQuat(0.f, 0.f, 0.f, 1.f);
+
+ if (!transformNode) { return; }
+
+ tinyxml2::XMLElement* rotQNode = transformNode->FirstChildElement("RotQ");
+ tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
+ if (!rotQNode || !transNode) {
+ return;
+ }
+
+ TryReadFloatAttr(rotQNode, "X", outTransform.q.x);
+ TryReadFloatAttr(rotQNode, "Y", outTransform.q.y);
+ TryReadFloatAttr(rotQNode, "Z", outTransform.q.z);
+ TryReadFloatAttr(rotQNode, "W", outTransform.q.w);
+
+ TryReadFloatAttr(transNode, "X", outTransform.p.x);
+ TryReadFloatAttr(transNode, "Y", outTransform.p.y);
+ TryReadFloatAttr(transNode, "Z", outTransform.p.z);
+}
+
+static void ReadFlags16(tinyxml2::XMLElement* flagsNode, _boolean& outFlags)
+{
+ memset(&outFlags, 0, sizeof(_boolean));
+
+ if (!flagsNode) {
+ return;
+ }
+
+ for (tinyxml2::XMLElement* flagNode = flagsNode->FirstChildElement("Flag");
+ flagNode;
+ flagNode = flagNode->NextSiblingElement("Flag"))
+ {
+ int flagId = -1;
+ if (flagNode->QueryIntAttribute("id", &flagId) != tinyxml2::XML_SUCCESS) {
+ continue;
+ }
+
+ if (flagId < 0 || flagId >= 16) {
+ continue;
+ }
+
+ outFlags.b[flagId] = IsTrueText(flagNode->GetText());
+ }
+}
+
+static void ReadUInt4(tinyxml2::XMLElement* param10Node, _uint4& outValue)
+{
+ outValue = {};
+
+ if (!param10Node) {
+ return;
+ }
+ tinyxml2::XMLElement* uintNode = param10Node->FirstChildElement("uint");
+ if (!uintNode) return;
+
+ _uint temp = 0;
+ if (TryReadUIntAttr(uintNode, "X", temp)) outValue.x = temp;
+ if (TryReadUIntAttr(uintNode, "Y", temp)) outValue.y = temp;
+ if (TryReadUIntAttr(uintNode, "Z", temp)) outValue.z = temp;
+ if (TryReadUIntAttr(uintNode, "W", temp)) outValue.w = temp;
+}
+
+static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
+{
+ outValue = {};
+
+ if (!param11Node) {
+ return;
+ }
+ tinyxml2::XMLElement* floatNode = param11Node->FirstChildElement("float");
+ if (!floatNode) {
+ return;
+ }
+
+ TryReadFloatAttr(floatNode, "X", outValue.x);
+ TryReadFloatAttr(floatNode, "Y", outValue.y);
+ TryReadFloatAttr(floatNode, "Z", outValue.z);
+ TryReadFloatAttr(floatNode, "W", outValue.w);
+}
+
+
+void CCutSceneInfo::Load_CutSceneXML(const string& path)
+{
+ tinyxml2::XMLDocument doc;
+ if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS) {
+ return;
+ }
+
+ TimeLine* pTimeLine = new TimeLine();
+ tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
+ if (!pContentsNode) {
+ return;
+ }
+
+ pTimeLine->m_vTimer.y = 0.f;
+ pContentsNode->QueryFloatAttribute("fDuration", &pTimeLine->m_vTimer.y);
+
+ pTimeLine->m_Sockets.clear();
+
+ for (tinyxml2::XMLElement* pSocketNode = pContentsNode->FirstChildElement("Socket");
+ pSocketNode; pSocketNode = pSocketNode->NextSiblingElement("Socket"))
+ {
+ SOCKETCONTENTS SocketContents = {};
+
+ SocketContents.fRatio = 0.f;
+ _float fStartPosition = 0;
+ pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition);
+ SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
+ // Info
+ tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
+ if (pInfoNode != nullptr)
+ {
+ const _char* pEventNameText = pInfoNode->Attribute("strEventName");
+ SocketContents.strEventName = pEventNameText ? pEventNameText : "";
+
+ SocketContents.eTypeParam = TIMESOCKET_PARAM::END;
+ const _char* pTypeText = pInfoNode->Attribute("eTypeParam");
+ if (nullptr != pTypeText)
+ {
+ CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam);
+ }
+
+ SocketContents.eTypeFunc = TIMESOCKET_FUNC::END;
+ const _char* pFuncText = pInfoNode->Attribute("eTypeFunc");
+ if (nullptr != pFuncText)
+ {
+ CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc);
+ }
+
+ SocketContents.pEventTarget = nullptr;
+ SocketContents.funcEvent = nullptr;
+ const _char* pTargetText = pInfoNode->Attribute("pTarget");
+ if (nullptr != pTargetText)
+ {
+ if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
+ {
+ CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "CAMERA_SHOULDER") == 0)
+ {
+ CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "ACTOR_PLAYER") == 0)
+ {
+ CPlayer* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object();
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "ACTOR_RANROK") == 0)
+ {
+ CMonster* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_MONSTER)->Get_Object();
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ }
+ }
+
+ // -------- Param_0 ----------
+ tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
+ if (nullptr != pParam0Node)
+ {
+ switch (SocketContents.eTypeParam)
+ {
+ case TIMESOCKET_PARAM::TARGET:
+ {
+ tinyxml2::XMLElement* pOtherTargetNode = pParam0Node->FirstChildElement("OtherTarget");
+ if (!pOtherTargetNode) break;
+
+ const _char* pLayerNameText = pOtherTargetNode->Attribute("Layer");
+ const _char* pTypeIdText = pOtherTargetNode->Attribute("TypeID");
+
+ if (!pLayerNameText || !pTypeIdText) break;
+ if (pLayerNameText[0] == '\0' || pTypeIdText[0] == '\0') break;
+
+ SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
+ SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
+
+ if (string_view(pTypeIdText) == "Ranrok")
+ {
+ SocketContents.pOtherTarget =
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
+ }
+ else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
+ }
+ else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
+ }
+
+ break;
+ }
+
+ case TIMESOCKET_PARAM::TRANSFORM:
+ {
+ tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
+ ReadPxTransform(pTransformNode, SocketContents.pxTransform);
+ break;
+ }
+ case TIMESOCKET_PARAM::END:
+ default:
+ break;
+ }
+ }
+
+ // -------- vFlags / Param_10 / Param_11 / Param_12 ----------
+ ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
+ ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
+ ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
+ const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
+ SocketContents.vParam_12 = pStringParma;
+ CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
+ if (!pSocket) {
+ continue;
+ }
+ pTimeLine->m_Sockets.push_back(pSocket);
+ }
+ tinyxml2::XMLElement* pTriggerNode = pContentsNode->FirstChildElement("Trigger");
+ {
+ CTriggerBox::TRIGGERBOX_DESC Desc{};
+ pTriggerNode->QueryFloatAttribute("W", &Desc.vPosition_Radius.w);
+ if (Desc.vPosition_Radius.w > 0) {
+ pTriggerNode->QueryFloatAttribute("X", &Desc.vPosition_Radius.x);
+ pTriggerNode->QueryFloatAttribute("Y", &Desc.vPosition_Radius.y);
+ pTriggerNode->QueryFloatAttribute("Z", &Desc.vPosition_Radius.z);
+ pTimeLine->m_pTriggerBox = CTriggerBox::Create(&Desc);
+ }
+ }
+
+ pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
+ return a->m_Contents.fRatio < b->m_Contents.fRatio;
+ });
+ pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
+ m_pInfoInstance->Load_Events(pairResult);
+}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index a4ed56eb7..cdae2fa61 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -1070,7 +1070,7 @@ _vector CEffect_Container::Get_LockOnPos(LOCKON_INFO Info)
return Info.pEffect->Get_WorldPostion();
}
if (Info.pUnit) {
- return Info.pUnit->Get_Component()->Get_Position();
+ return Info.pUnit->Get_LockOnPos();
}
return XMVectorZero();
}
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index 0c6bbbfcd..01348aa8f 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -171,6 +171,10 @@ HRESULT CInfoInstance::Load_PointLights(const _char* pFileName, const _wchar* pL
{
return m_pMapInfo->Load_PointLights(pFileName, pLayerTag);
}
+HRESULT CInfoInstance::Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath)
+{
+ return m_pMapInfo->Load_EffectParts(pFileName, pEffectrFilePath);
+}
HRESULT CInfoInstance::Load_DADA_INT()
{
return m_pMapInfo->Load_DADA_INT();
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index ccfc89dd1..965056526 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -14,6 +14,7 @@
#include "SkyBox.h"
#include "Ranrok.h"
#include "UI_Manager.h"
+#include "InstancedProp.h"
CLevel_Field::CLevel_Field(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
@@ -62,10 +63,6 @@ HRESULT CLevel_Field::Initialize(void* pArg)
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
- if (FAILED(Ready_Layer_CutScene())) {
- return E_FAIL;
- }
-
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
@@ -106,8 +103,6 @@ void CLevel_Field::Update(_float fTimeDelta)
UI_STATE eState = UI_STATE::GAMEPLAYER;
m_pInfoInstance->Event_CallBack(TEXT("Canvas_Change"), &eState);
}
-
-
}
HRESULT CLevel_Field::Render()
@@ -273,12 +268,21 @@ HRESULT CLevel_Field::Ready_Background()
{
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
-
-
CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND);
CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND);
CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND);
+ CInstancedProp::INSTANCE_PROP_DESC Desc = {};
+
+ Desc.bEnableRigidbody = false;
+ Desc.isShake = false;
+ Desc.vRadius = _float2(0.015f, 0.04f);
+ Desc.vSpeed = _float2(0.3f, 1.f);
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A_Dungeon.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ return E_FAIL;
+
return S_OK;
}
@@ -317,6 +321,31 @@ HRESULT CLevel_Field::Ready_Layer_Player(const _wstring& strLayerTag)
HRESULT CLevel_Field::Ready_Layer_Effect(const _wstring& strLayerTag)
{
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Goo0_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Goo1_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Goo2_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Goo3_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Goo4_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Decal_15_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Rotate_Rock_Small_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Small")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Particle_Black_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Particle_Red_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Ranrok_Decal_35_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Rotate_Rock_Large1_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large1")))
+ return E_FAIL;
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
+ return E_FAIL;
+
return S_OK;
}
@@ -340,27 +369,6 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
return S_OK;
}
-HRESULT CLevel_Field::Ready_Layer_CutScene()
-{
- CMonster* pMonster = { nullptr };
- CCamera* pCamera = { nullptr };
- {
- CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_MONSTER);
- if (nullptr != pLayer) {
- pMonster = pLayer->Get_Object();
- }
- }
- {
- pCamera = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
- }
-
- if (nullptr == pMonster || nullptr == pCamera) {
- return E_FAIL;
- }
- Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml", pCamera, pMonster);
- return S_OK;
-}
-
pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
{
CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID);
@@ -381,278 +389,9 @@ void CLevel_Field::Free()
SAFE_RELEASE(m_pInfoInstance);
}
-static _bool IsTrueText(const char* text)
-{
- if (!text){ return false; }
- return (strcmp(text, "true") == 0) || (strcmp(text, "1") == 0);
-}
-
-static _bool TryReadFloatAttr(tinyxml2::XMLElement* element, const _char* attrName, _float& outValue)
-{
- if (!element || !attrName) {
- return false;
- }
-
- const _char* text = element->Attribute(attrName);
- if (!text || text[0] == '\0'){
- return false;
- }
-
- return (element->QueryFloatAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
-}
-
-static _bool TryReadUIntAttr(tinyxml2::XMLElement* element, const _char* attrName, _uint& outValue)
-{
- if (!element || !attrName) return false;
-
- const _char* text = element->Attribute(attrName);
- if (!text || text[0] == '\0') {
- return false;
- }
-
- return (element->QueryUnsignedAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
-}
-
-static void ReadPxTransform(tinyxml2::XMLElement* transformNode, PSX::PxTransform& outTransform)
-{
- outTransform.p = PSX::PxVec3(0.f, 0.f, 0.f);
- outTransform.q = PSX::PxQuat(0.f, 0.f, 0.f, 1.f);
-
- if (!transformNode) { return; }
-
- tinyxml2::XMLElement* rotQNode = transformNode->FirstChildElement("RotQ");
- tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
- if (!rotQNode || !transNode) {
- return;
- }
-
- TryReadFloatAttr(rotQNode, "X", outTransform.q.x);
- TryReadFloatAttr(rotQNode, "Y", outTransform.q.y);
- TryReadFloatAttr(rotQNode, "Z", outTransform.q.z);
- TryReadFloatAttr(rotQNode, "W", outTransform.q.w);
-
- TryReadFloatAttr(transNode, "X", outTransform.p.x);
- TryReadFloatAttr(transNode, "Y", outTransform.p.y);
- TryReadFloatAttr(transNode, "Z", outTransform.p.z);
-}
-
-static void ReadFlags16(tinyxml2::XMLElement* flagsNode, _boolean& outFlags)
-{
- memset(&outFlags, 0, sizeof(_boolean));
-
- if (!flagsNode) {
- return;
- }
-
- for (tinyxml2::XMLElement* flagNode = flagsNode->FirstChildElement("Flag");
- flagNode;
- flagNode = flagNode->NextSiblingElement("Flag"))
- {
- int flagId = -1;
- if (flagNode->QueryIntAttribute("id", &flagId) != tinyxml2::XML_SUCCESS) {
- continue;
- }
-
- if (flagId < 0 || flagId >= 16) {
- continue;
- }
-
- outFlags.b[flagId] = IsTrueText(flagNode->GetText());
- }
-}
-
-static void ReadUInt4(tinyxml2::XMLElement* param10Node, _uint4& outValue)
-{
- outValue = {};
-
- if (!param10Node) {
- return;
- }
- tinyxml2::XMLElement* uintNode = param10Node->FirstChildElement("uint");
- if (!uintNode) return;
-
- _uint temp = 0;
- if (TryReadUIntAttr(uintNode, "X", temp)) outValue.x = temp;
- if (TryReadUIntAttr(uintNode, "Y", temp)) outValue.y = temp;
- if (TryReadUIntAttr(uintNode, "Z", temp)) outValue.z = temp;
- if (TryReadUIntAttr(uintNode, "W", temp)) outValue.w = temp;
-}
-
-static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
-{
- outValue = {};
-
- if (!param11Node) {
- return;
- }
- tinyxml2::XMLElement* floatNode = param11Node->FirstChildElement("float");
- if (!floatNode) {
- return;
- }
-
- TryReadFloatAttr(floatNode, "X", outValue.x);
- TryReadFloatAttr(floatNode, "Y", outValue.y);
- TryReadFloatAttr(floatNode, "Z", outValue.z);
- TryReadFloatAttr(floatNode, "W", outValue.w);
-}
-
-void CLevel_Field::Load_CutSceneXML(const string& path, CCamera* pCamera, CMonster* pMonster)
-{
- tinyxml2::XMLDocument doc;
- if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS){
- return;
- }
-
- TimeLine* pTimeLine = new TimeLine();
- tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
- if (!pContentsNode){
- return;
- }
-
- pTimeLine->m_vTimer.y = 0.f;
- pContentsNode->QueryFloatAttribute("fDuration", &pTimeLine->m_vTimer.y);
-
- pTimeLine->m_Sockets.clear();
-
- for (tinyxml2::XMLElement* pSocketNode = pContentsNode->FirstChildElement("Socket");
- pSocketNode; pSocketNode = pSocketNode->NextSiblingElement("Socket"))
- {
- SOCKETCONTENTS SocketContents = {};
-
- SocketContents .fRatio = 0.f;
- _float fStartPosition = 0;
- pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition);
- SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
- // Info
- tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
- if (pInfoNode != nullptr)
- {
- const _char* pEventNameText = pInfoNode->Attribute("strEventName");
- SocketContents.strEventName = pEventNameText ? pEventNameText : "";
-
- SocketContents.eTypeParam = TIMESOCKET_PARAM::END;
- const _char* pTypeText = pInfoNode->Attribute("eTypeParam");
- if (nullptr != pTypeText)
- {
- CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam);
- }
-
- SocketContents.eTypeFunc = TIMESOCKET_FUNC::END;
- const _char* pFuncText = pInfoNode->Attribute("eTypeFunc");
- if (nullptr != pFuncText)
- {
- CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc);
- }
-
- SocketContents.pEventTarget = nullptr;
- SocketContents.funcEvent = nullptr;
- const _char* pTargetText = pInfoNode->Attribute("pTarget");
- if (nullptr != pTargetText)
- {
- if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
- {
- CCamera* pEventTarget = pCamera;
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- else if (strcmp(pTargetText, "CAMERA_SHOULDER") == 0)
- {
- CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- else if (strcmp(pTargetText, "ACTOR_PLAYER") == 0)
- {
- CPlayer* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object();
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- else if (strcmp(pTargetText, "ACTOR_RANROK") == 0)
- {
- CMonster* pEventTarget = pMonster;
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- }
- }
-
- // -------- Param_0 ----------
- tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
- if (nullptr != pParam0Node)
- {
- switch (SocketContents.eTypeParam)
- {
- case TIMESOCKET_PARAM::TARGET:
- {
- tinyxml2::XMLElement* pOtherTargetNode = pParam0Node->FirstChildElement("OtherTarget");
- if (!pOtherTargetNode) break;
-
- const _char* pLayerNameText = pOtherTargetNode->Attribute("Layer");
- const _char* pTypeIdText = pOtherTargetNode->Attribute("TypeID");
-
- if (!pLayerNameText || !pTypeIdText) break;
- if (pLayerNameText[0] == '\0' || pTypeIdText[0] == '\0') break;
-
- SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
- SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
-
- if (string_view(pTypeIdText) == "Ranrok")
- {
- SocketContents.pOtherTarget =
- m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
- }
- else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
- {
- SocketContents.pOtherTarget = pCamera;
- }
- else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
- {
- SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
- }
-
- break;
- }
-
- case TIMESOCKET_PARAM::TRANSFORM:
- {
- tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
- ReadPxTransform(pTransformNode, SocketContents.pxTransform);
- break;
- }
- case TIMESOCKET_PARAM::END:
- default:
- break;
- }
- }
-
- // -------- vFlags / Param_10 / Param_11 ----------
- ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
- ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
- ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
- CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
- if (!pSocket) {
- continue;
- }
- pTimeLine->m_Sockets.push_back(pSocket);
- }
- pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
- return a->m_Contents.fRatio < b->m_Contents.fRatio;
- });
- pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
- m_pInfoInstance->Load_Events(pairResult);
-}
#ifdef _DEBUG
void CLevel_Field::Describe_Entity()
{
- GUI::Begin("CutScene");
- if (GUI::Button("ReadyCutScene")) {
- Ready_Layer_CutScene();
- }
- if (GUI::Button("DeActiveCutScene")) {
- _string strDeActiveEvent = "RanrokIntro";
- m_pInfoInstance->DeActive_ActiveEvent(strDeActiveEvent);
- }
- GUI::End();
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 50c871951..9c690eabd 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -289,9 +289,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
// >> M A P Configuration <<
// 맵 로드할지 안할지 bool 설정
// ---------------------------------
- _bool isReady_Background = { false };
- _bool isReady_Hogsmeade = { false };
- _bool isReady_Hogwart = { false };
+ _bool isReady_Background = { true };
+ _bool isReady_Hogsmeade = { true };
+ _bool isReady_Hogwart = { true };
#ifdef _DEBUG
#ifdef gimch
@@ -310,8 +310,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = false;
#endif //
#ifdef 기무리
- isReady_Background = false;
- isReady_Hogsmeade = false;
+ isReady_Background = true;
+ isReady_Hogsmeade = true;
isReady_Hogwart = false;
#endif //
#ifdef 나
@@ -742,10 +742,9 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AW.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
return E_FAIL;
-
/* StratifiedRock_B */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
@@ -761,7 +760,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
return E_FAIL;
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AW.bin";
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
return E_FAIL;
/* StratifiedRock_D_B */
@@ -774,6 +773,32 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
return E_FAIL;
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ return E_FAIL;
+
+ /* Stone_FrontSteps */
+ Desc.isShake = false;
+ Desc.bEnableRigidbody = true;
+ Desc.vRadius = _float2(0.f, 0.f);
+ Desc.vSpeed = _float2(0.3f, 1.f);
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Stone_FrontSteps";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/FrontSteps_A_HN_AW.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
+ return E_FAIL;
+
+ /* StoneKit_A */
+ Desc.isShake = false;
+ Desc.bEnableRigidbody = true;
+ Desc.vRadius = _float2(0.f, 0.f);
+ Desc.vSpeed = _float2(0.3f, 1.f);
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StoneKit_A";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StoneKit_A_HW.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
+ return E_FAIL;
+
+
+
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
/* LightPost */
@@ -899,8 +924,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
isLoad_NPC = true;
#endif //
#ifdef 기무리
- isLoad_NPC = false;
- isLoad_RandomNPC = false;
+ isLoad_NPC = true;
+ isLoad_RandomNPC = true;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 80d7cb02d..fe670f06b 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -428,10 +428,10 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_UI_SEQUANTIAL = false;
#endif //
#ifdef 기무리
- isLoad_Background = false;
+ isLoad_Background = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
- isLoad_NPC = false;
+ isLoad_NPC = true;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -3446,6 +3446,32 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_Stone_FrontSteps*/
+ {
+ CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_HM_Stone_FrontSteps_A.bin", strMaterailPath.c_str());
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Stone_FrontSteps"),
+ pModel_Instance)))
+ return E_FAIL;
+
+ if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
+ return E_FAIL;
+ }
+
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_StoneKit_A*/
+ {
+ CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.bin", strMaterailPath.c_str());
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StoneKit_A"),
+ pModel_Instance)))
+ return E_FAIL;
+
+ if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
+ return E_FAIL;
+ }
+
/* For.Prototype_Component_VIBuffer_Model_Instancel_LightPost */
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
@@ -3773,25 +3799,28 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("정보를 불러오는 중입니다.");
m_strMessage = TEXT("모델을 다시 불러오는 중입니다. ");
- {
- CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"));
- CMotion_Trail::MODELCAPTURE_DESC Desc{};
- Desc.fMaxCaptureLifeTime = 2.f;
- Desc.iMaximumCapture = 4;
- Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
- return E_FAIL;
- }
- }
- {
- CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"));
- CMotion_Trail::MODELCAPTURE_DESC Desc{};
- Desc.fMaxCaptureLifeTime = 2.f;
- Desc.iMaximumCapture = 4;
- Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
- return E_FAIL;
+ if (isLoad_Monster) {
+ {
+ CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"));
+ CMotion_Trail::MODELCAPTURE_DESC Desc{};
+ Desc.fMaxCaptureLifeTime = 2.f;
+ Desc.iMaximumCapture = 4;
+ Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
+ return E_FAIL;
+ }
+ }
+
+ {
+ CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"));
+ CMotion_Trail::MODELCAPTURE_DESC Desc{};
+ Desc.fMaxCaptureLifeTime = 2.f;
+ Desc.iMaximumCapture = 4;
+ Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
+ return E_FAIL;
+ }
}
}
@@ -3964,6 +3993,12 @@ HRESULT CLoader::Loading_For_Field()
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A*/
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::FIELD), TEXT("Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A"),
+ CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_BogMyrtle_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
+ return E_FAIL;
+
/* For.Prototype_GameObject_PointLight */
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::FIELD), CPointLight::Create(m_pDevice, m_pContext))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
index d8aa5aaea..2d337ae85 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
@@ -43,10 +43,12 @@ HRESULT CMapElement_Static::Initialize(void* pArg)
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
- _float fMaxScale = max(pDesc->vScale.x, pDesc->vScale.y);
- fMaxScale = max(fMaxScale, pDesc->vScale.z);
+ _float fMaxScale = max(max(pDesc->vScale.x, pDesc->vScale.y), pDesc->vScale.z);
- m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale * 1.2f;
+ m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale;
+
+ _float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
+ XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix()));
ReadyForPhysX();
ConvertToPhysX();
@@ -63,15 +65,11 @@ void CMapElement_Static::Update(_float fTimeDelta)
}
void CMapElement_Static::Late_Update(_float fTimeDelta)
-{/*
- if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_fRadius)) {
-
- m_fCamDepth = XMVectorGetX(XMVector3LengthSq(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - m_pTransformCom->Get_State(STATE::POSITION)));
-
- m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (m_fRadius * m_fRadius + 40000.f)));*/
- if(m_bVisible)
- m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
- //}
+{
+ if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldCenterPosition), 1.f), m_fRadius)) {
+ if(m_bVisible)
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ }
}
HRESULT CMapElement_Static::Render()
@@ -151,13 +149,11 @@ void CMapElement_Static::ReadyForPhysX()
}
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
- assert(false);
- }
+ CModel* pModel = m_pModelComs[0];
+
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
+ assert(false);
}
}
@@ -168,26 +164,22 @@ void CMapElement_Static::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
+ CModel* pModel = m_pModelComs[0];
+
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
{
- CModel* pModel = m_pModelComs[iIndexLOD];
-
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies.push_back(pRigidBody);
}
}
@@ -224,9 +216,7 @@ void CMapElement_Static::Free()
SAFE_RELEASE(m_pShaderCom);
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
for (auto& pModel : m_pModelComs)
diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp
index 815675cf1..33f3553c6 100644
--- a/Jusin154_Team3D/Client/Private/MapInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp
@@ -17,6 +17,7 @@
#include "PointLight.h"
#include "InstancedProp_Light.h"
#include "Layer.h"
+#include "EffectParts.h"
CMapInfo::CMapInfo()
{
@@ -765,6 +766,69 @@ HRESULT CMapInfo::Load_PointLights(const _char* pFilePath, const _wchar* pLayerT
return S_OK;
}
+HRESULT CMapInfo::Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath)
+{
+ tinyxml2::XMLDocument xmlDoc;
+
+ string strPath = "../Bin/Resources/Data/Map/EffectPart/" + string(pFileName) + ".xml";
+
+ if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
+ return E_FAIL;
+
+ tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts");
+
+ if (nullptr == root)
+ {
+ MSG_BOX("Failed to Find root");
+ return S_OK;
+ }
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = nullptr;
+
+ for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
+ {
+ _float3 vScale = {};
+ _float3 vRotation = {};
+ _float3 vPosition = {};
+
+ /* Transform */
+ auto* Position = Object->FirstChildElement("Position");
+ Position->QueryFloatAttribute("x", &vPosition.x);
+ Position->QueryFloatAttribute("y", &vPosition.y);
+ Position->QueryFloatAttribute("z", &vPosition.z);
+
+ auto* Scale = Object->FirstChildElement("Scale");
+ Scale->QueryFloatAttribute("x", &vScale.x);
+ Scale->QueryFloatAttribute("y", &vScale.y);
+ Scale->QueryFloatAttribute("z", &vScale.z);
+
+ auto* Rotation = Object->FirstChildElement("Rotation");
+ Rotation->QueryFloatAttribute("x", &vRotation.x);
+ Rotation->QueryFloatAttribute("y", &vRotation.y);
+ Rotation->QueryFloatAttribute("z", &vRotation.z);
+
+ CEffectParts* pEffect = { nullptr };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &PartsDesc, nullptr, &pEffect)))
+ return E_FAIL;
+
+ if (nullptr == pEffect)
+ return E_FAIL;
+
+ CTransform* pTransformCom = pEffect->Get_Component();
+
+ pTransformCom->Set_Scale(vScale);
+ pTransformCom->Rotation(XMConvertToRadians(vRotation.x), XMConvertToRadians(vRotation.y), XMConvertToRadians(vRotation.z));
+ pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
+ pEffect->Load(pEffectrFilePath, static_cast(g_iStaticLevel));
+ pEffect->Set_Visible(true);
+ }
+
+ return S_OK;
+}
+
HRESULT CMapInfo::Load_DADA_INT()
{
if (FAILED(Load_MapObjects("DATA_INT_Data", LAYER_DADA_INT)))
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
index 805c557be..5ad853b03 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
@@ -143,26 +143,23 @@ void CMapObject_Collision::ReadyForPhysX()
}
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- _matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
- _matrix idenMatrix = XMMatrixIdentity();
- _bool bSkip = { false };
- for (_int i = 0; i < 4; ++i) {
- if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
- assert(false);
- }
- bSkip = true;
- break;
- }
- }
- if (false == bSkip) {
- if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
+ CModel* pModel = m_pModelComs[0];
+ _matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
+ _matrix idenMatrix = XMMatrixIdentity();
+ _bool bSkip = { false };
+ for (_int i = 0; i < 4; ++i) {
+ if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
+ bSkip = true;
+ break;
+ }
+ }
+ if (false == bSkip) {
+ if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
+ assert(false);
}
}
}
@@ -174,26 +171,22 @@ void CMapObject_Collision::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
+ CModel* pModel = m_pModelComs[0];
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
+ {
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies.push_back(pRigidBody);
}
}
@@ -278,10 +271,7 @@ void CMapObject_Collision::Free()
} m_pModelComs.clear();
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
- m_RigidBodies[i].clear();
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
m_ModelPrototypeTags.clear();
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 8a83927a3..3f53662f5 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -158,13 +158,11 @@ void CMapObject_Render::ReadyForPhysX()
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
- assert(false);
- }
+ CModel* pModel = m_pModelComs[0];
+
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
+ assert(false);
}
}
@@ -175,26 +173,22 @@ void CMapObject_Render::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
+ CModel* pModel = m_pModelComs[0];
+
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
{
- CModel* pModel = m_pModelComs[iIndexLOD];
-
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = &m_CombinedWorldMatrix;
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = &m_CombinedWorldMatrix;
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies.push_back(pRigidBody);
}
}
@@ -305,9 +299,7 @@ void CMapObject_Render::Free()
SAFE_RELEASE(m_pDefaultGlassTextureCom);
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
for (auto& pModel : m_pModelComs)
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index a16d5119b..0fbae648f 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -115,7 +115,7 @@ void CRanrok::Update(_float fTimeDelta)
}
m_pFSM->Update_State(fTimeDelta);
-
+ Update_CollidersPosition();
if (m_bMotionTrail) {
m_vCaptureTimer.x += fTimeDelta;
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
@@ -207,7 +207,8 @@ void CRanrok::Update(_float fTimeDelta)
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this, nullptr, &pEffect);
m_vCreatePropTime.x = 0.f;
- m_pRanrok_Props.push_back(pEffect);
+ if(nullptr != pEffect)
+ m_pRanrok_Props.push_back(pEffect);
}
@@ -266,6 +267,7 @@ 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);
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
}
@@ -283,6 +285,12 @@ HRESULT CRanrok::Render()
//hr = Render_Blend();
hr = S_OK;
}
+#ifdef _DEBUG
+ else if (RENDER::NONLIGHT == eCurrentPass) {
+ hr = Render_Collider();
+ }
+#endif // _DEBUG
+
return hr;
}
@@ -339,13 +347,15 @@ void CRanrok::Trigger(CTimeSocket& Socket)
}break;
case TIMESOCKET_FUNC::SET_ANIMSTATE:
{
- //m_pModelCom->Set_AnimationIndex();
}break;
case TIMESOCKET_FUNC::SET_FSMSTATE:
{
if (Socket.m_Contents.vFlags.b[0]) {
m_pFSM->Change_State(FSMSTATE::TUCKED);
}
+ else if (Socket.m_Contents.vFlags.b[1]) {
+ m_pFSM->Change_State(FSMSTATE::FIRESWEEP);
+ }
}break;
default:
break;
@@ -378,18 +388,27 @@ HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
_vector CRanrok::Get_LockOnPos()
{
- _vector Offset = XMVectorZero();
- //if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
- //{
- // Offset = XMVectorSetY(Offset, 10.f);
- //}
- if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
- return m_pCharacter_Controller->Get_Position() + Offset;
+ _vector vCameraLook = m_pGameInstance->Get_CameraLook();
+ _vector vCameraPos = m_pGameInstance->Get_CamXMPosition();
+
+ _vector vNearestPos = m_pCharacter_Controller->Get_Position();
+ _vector vToMonsterDir = vNearestPos - vCameraPos;
+ _float fMaxDot = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
+
+ {
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ _vector vPosResult = m_pTargetableDO[i]->Get_Position();
+ vToMonsterDir = vPosResult - vCameraPos;
+
+ _float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
+
+ if (fMaxDot < fDotResult) {
+ vNearestPos = vPosResult;
+ fMaxDot = fDotResult;
+ }
+ }
}
- else if (nullptr != m_pRigidBody) {
- return m_pRigidBody->Get_Position() + Offset;
- }
- return Get_WorldPostion() + Offset;
+ return XMVectorSetW(vNearestPos, 1.f);
}
void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
@@ -478,6 +497,12 @@ void CRanrok::OnHit(CGameObject* pOther, CGameObject* pCaller)
{
}
+_vector CRanrok::Get_BonePos(RANROK_ENUM_BONEMATRICES eType)
+{
+ PSX::PxTransform pxPos = m_pTargetableDO[ENUM_CLASS(eType)]->Get_GlobalPosition();
+ return XMVectorSet(pxPos.p.x, pxPos.p.y, pxPos.p.z, 1.f);
+}
+
HRESULT CRanrok::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -618,9 +643,9 @@ HRESULT CRanrok::Ready_Parts()
m_pRightEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast(g_iStaticLevel));
m_pRightEye_Trail->Set_Visible(true);
- m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
- m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
-
+ if (FAILED(Ready_SubParts())) {
+ return E_FAIL;
+ }
#pragma endregion
return S_OK;
@@ -652,6 +677,50 @@ HRESULT CRanrok::Bind_ShaderResources()
}
return S_OK;
}
+HRESULT CRanrok::Ready_SubParts()
+{
+ m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
+ m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
+
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_WRIST)] = m_pRightWingWrist_BoneMat = m_pModelCom->Get_BoneMatrixPtr("wrist_right");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_TIP)] = m_pRightWingTip_BoneMat = m_pModelCom->Get_BoneMatrixPtr("middle_05_right");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_PINKY)] = m_pRightWingPinky_BoneMat = m_pModelCom->Get_BoneMatrixPtr("pinkyelbowwing_04_right");
+
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_WRIST)] = m_pLeftWingWrist_BoneMat = m_pModelCom->Get_BoneMatrixPtr("wrist_left");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_TIP)] = m_pLeftWingTip_BoneMat = m_pModelCom->Get_BoneMatrixPtr("middle_05_left");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_PINKY)] = m_pLeftWingPinky_BoneMat = m_pModelCom->Get_BoneMatrixPtr("pinkyelbowwing_04_left");
+
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::HEAD)] = m_pHead_BoneMat = m_pModelCom->Get_BoneMatrixPtr("head");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::BODY)] = m_pBody_BoneMat = m_pModelCom->Get_BoneMatrixPtr("chest_Main");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL0)] = m_pTail0_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_04");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL1)] = m_pTail1_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_08");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL2)] = m_pTail2_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_12");
+
+ CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
+ Desc.bAutoOwnerTranslation = false;
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP);
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pTargetableDO[i], &Desc))) {
+ return E_FAIL;
+ }
+ m_pTargetableDO[i]->Set_Kinematic(true);
+ }
+
+#ifdef _DEBUG
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 6, false, false));
+ D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {};
+ depthStencilDesc.DepthEnable = FALSE;
+ depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO;
+ depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS;
+ depthStencilDesc.StencilEnable = FALSE;
+
+ HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone);
+ if (FAILED(result)) {
+ return E_FAIL;
+ }
+#endif // _DEBUG
+ return S_OK;
+}
HRESULT CRanrok::Render_Nonblend()
{
if (FAILED(Render_DeadDisolve())) {
@@ -734,6 +803,14 @@ HRESULT CRanrok::Render_Nonblend()
return S_OK;
}
+HRESULT CRanrok::Update_CollidersPosition()
+{
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ m_pTargetableDO[i]->Set_Transform(XMLoadFloat4x4(m_pRanrokCombinedBoneMatrices[i]) * m_pTransformCom->Get_XMWorldMatrix(), true);
+ }
+ return S_OK;
+}
+
HRESULT CRanrok::Render_Blend()
{
_float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
@@ -975,7 +1052,11 @@ void CRanrok::Free()
for (auto& Props : m_pRanrok_Props) {
SAFE_RELEASE(Props);
}
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ SAFE_RELEASE(m_pTargetableDO[i]);
+ }
m_pRanrok_Props.clear();
+ SAFE_RELEASE(m_pDepthStencilStateNone);
SAFE_RELEASE(m_pMotionTrailCom);
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
@@ -1089,10 +1170,28 @@ void CRanrok::Describe_Entity()
}
}
-
m_pTransformCom->Describe_Entity();
+ m_pModelCom->Describe_Entity();
}
GUI::End();
}
+HRESULT CRanrok::Render_Collider()
+{
+ static _bool s_bRenderCollider = { true };
+ GUI::Begin("CutScene");
+ if (GUI::TreeNode("RenderCollider")) {
+ if (true == s_bRenderCollider) {
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ m_pTargetableDO[i]->Render([this]() {
+ m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
+ }, CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f));
+ }
+ }
+ GUI::TreePop();
+ }
+ GUI::End();
+ return S_OK;
+}
+
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
new file mode 100644
index 000000000..265b815b9
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
@@ -0,0 +1,86 @@
+#include "pch.h"
+#include "TriggerBox.h"
+
+CTriggerBox::CTriggerBox():
+ m_pGameInstance(CGameInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pGameInstance);
+}
+
+HRESULT CTriggerBox::TryScanArea(_float fTimeDelta)
+{
+ m_vScanTimer.x += fTimeDelta;
+ if (m_vScanTimer.x > m_vScanTimer.y) {
+ m_vScanTimer.x = m_vScanTimer.y;
+ return Scan();
+ }
+ return E_FAIL;
+}
+
+HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
+{
+ m_fRadius = pDesc->vPosition_Radius.w;
+ m_vPosition = { pDesc->vPosition_Radius.x, pDesc->vPosition_Radius.y, pDesc->vPosition_Radius.z, 1.f };
+ return S_OK;
+}
+
+HRESULT CTriggerBox::Scan()
+{
+ PSX::PxSweepBuffer pxBuffer = {};
+ _bool bHit = m_pGameInstance->SphereCast(m_fRadius, XMLoadFloat4(&m_vPosition), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f,
+ PSX::PxHitFlag::ePOSITION, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
+
+ const PSX::PxSweepHit & hit = pxBuffer.block;
+ PSX::PxRigidActor* pActor = hit.actor;
+ if (bHit) {
+ if (nullptr != pActor && nullptr != pActor->userData)
+ {
+ PHYSX_USERDATA* pUserData = static_cast(pActor->userData);
+ switch (pUserData->eKind)
+ {
+ case PHYSX_KIND::BODY_DYNAMIC:
+ {
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+ case PXOBJECT::PLAYER:
+ {
+ return S_OK;
+ }break;
+ default:
+ break;
+ }
+ }break;
+ case PHYSX_KIND::CCTActor:
+ {
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+ case PXOBJECT::PLAYER: {
+ return S_OK;
+ } break;
+ default:
+ break;
+ }
+ } break;
+ default:
+ break;
+ }
+ }
+ }
+ return E_FAIL;
+}
+
+CTriggerBox* CTriggerBox::Create(TRIGGERBOX_DESC* Desc)
+{
+ CTriggerBox* pInstance = new CTriggerBox();
+
+ if (FAILED(pInstance->Initialize(Desc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CTriggerBox::Free()
+{
+ __super::Free();
+ SAFE_RELEASE(m_pGameInstance);
+}
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 73c46d951..ef3398dd8 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -503,7 +503,18 @@ void CUI_Manager::Set_Fade()
void CUI_Manager::Change_Map()
{
- m_pInfoInstance->Load_DADA_INT();
+ if (FAILED(m_pInfoInstance->Load_DADA_INT()))
+ return;
+
+ if (FAILED(m_pInfoInstance->Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
+ return;
+
+ CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER);
+ if (nullptr != pLayer) {
+ CPlayer* pPlayer = pLayer->Get_Object();
+ pPlayer->Get_Component()->Set_Position(XMVectorSet(1003.f, 5.f, 1005.f, 1.f));
+ }
+
m_pGameInstance->Setting_Volumetirc(
3.f,
0.01f,
@@ -511,11 +522,6 @@ void CUI_Manager::Change_Map()
1.0f,
0.f
);
- CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER);
- if (nullptr != pLayer) {
- CPlayer* pPlayer = pLayer->Get_Object();
- pPlayer->Get_Component()->Set_Position(XMVectorSet(1003.f, 5.f, 1005.f, 1.f));
- }
}
void CUI_Manager::Set_Race(_bool bRace)
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
index d5c77bac7..4a9c25aa9 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
@@ -2,6 +2,10 @@
#include "Client_Define.h"
#include "CamPosition.h"
+NS_BEGIN(Engine)
+class CUnit;
+NS_END
+
NS_BEGIN(Client)
class CCamPosition_Target final : public CCamPosition
@@ -21,7 +25,8 @@ class CCamPosition_Target final : public CCamPosition
virtual void Late_Update(_float fTimeDelta) override;
virtual _vector Get_WorldPostion() override;
virtual void Set_WorldPostion(_vector vPos);
- virtual void Stalking_Target(CGameObject* pStalkingTarget);
+ virtual _bool IsStalking();
+ virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
virtual void Stop_Stalking();
private:
@@ -30,7 +35,8 @@ class CCamPosition_Target final : public CCamPosition
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
- CGameObject* m_pStalkingTarget = { nullptr };
+ CUnit* m_pStalkingTarget = { nullptr };
+ const _float4x4* m_pTargetSocketMatrix = { nullptr };
public:
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override;
diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
index e2d20ae29..629a5217f 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
@@ -3,6 +3,10 @@
#include "Client_Define.h"
#include "Camera.h"
+NS_BEGIN(Engine)
+class CUnit;
+NS_END
+
NS_BEGIN(Client)
class CCamPosition_Target;
@@ -28,8 +32,8 @@ class CCamera_Cinematic final : public CCamera
virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override;
void Update_LerpTimer(_float fTimeDelta);
void Set_Priority(_uint iPriority);
- void Set_LookTarget(CGameObject* pTarget);
- void Set_FollowTarget(CGameObject* pTarget);
+ void Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
+ void Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
private:
@@ -54,6 +58,9 @@ class CCamera_Cinematic final : public CCamera
void Clear_Lerp_FovY();
virtual void Transition(_float fTimeDelta) override;
+
+
+ void Rotation(_fvector vRotQ);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
CCamPosition_Target* m_pLookTargetPart = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 976bf729e..5e28ae2b9 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -375,6 +375,7 @@ typedef struct tagEffectInfo
struct TimeLine {
_float2 m_vTimer = {};
_uint m_eTypeTimeLine = {};
+ 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 2e56d96ac..f1fce59bd 100644
--- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h
+++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
@@ -5,6 +5,7 @@
NS_BEGIN(Engine)
class CGameObject;
+class CCamera;
NS_END
@@ -35,18 +36,28 @@ class CCutSceneInfo final : public CBase
map<_string, TimeLine*> m_funcWaitEvents = {};
private:
+ void Update_ActiveEvents(_float fTimeDelta);
+ void Update_WaitEvents(_float fTimeDelta);
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
+ void Load_CutSceneXML(const string& path);
+
#ifdef _DEBUG
public:
#endif // _DEBUG
HRESULT Clear_ActiveEvents();
HRESULT Clear_Events(map<_string, TimeLine*>&Events);
-
HRESULT Clear_AllEvents();
+ HRESULT Ready_GameplayCutScenes();
+ HRESULT Ready_FieldCutScenes();
+
public:
static CCutSceneInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
virtual void Free() override;
+#ifdef _DEBUG
+ virtual void Describe_Entity();
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 86f1550dd..f27e09c42 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -59,6 +59,7 @@ DECLARE_SINGLETON(CInfoInstance)
HRESULT Load_ChestElemet(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
+ HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
HRESULT Load_DADA_INT();
#pragma endregion
#pragma region Spell_INFO
diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h
index 934a665f9..e2da71716 100644
--- a/Jusin154_Team3D/Client/Public/Level_Field.h
+++ b/Jusin154_Team3D/Client/Public/Level_Field.h
@@ -42,14 +42,11 @@ class CLevel_Field final : public CLevel
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
HRESULT Ready_Layer_Monster();
HRESULT Reday_Layer_EffectPool();
- HRESULT Ready_Layer_CutScene();
public:
static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
virtual void Free() override;
- void Load_CutSceneXML(const string& path, CCamera* pCamera, class CMonster* pMonster);
-
#ifdef _DEBUG
virtual void Describe_Entity();
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/MapElement_Static.h b/Jusin154_Team3D/Client/Public/MapElement_Static.h
index cee9aa295..6630877e4 100644
--- a/Jusin154_Team3D/Client/Public/MapElement_Static.h
+++ b/Jusin154_Team3D/Client/Public/MapElement_Static.h
@@ -22,8 +22,9 @@ class CMapElement_Static : public CMapElement
_bool m_bReadyToCreatePhysX = { false };
_bool m_bConverted = { false };
_float m_fRadius = {};
+ _float3 m_vWorldCenterPosition = {};
- vector> m_RigidBodies;
+ vector m_RigidBodies;
private:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h
index 9042d4d79..781163186 100644
--- a/Jusin154_Team3D/Client/Public/MapInfo.h
+++ b/Jusin154_Team3D/Client/Public/MapInfo.h
@@ -29,6 +29,7 @@ class CMapInfo final : public CBase
HRESULT Load_ChestElemet(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag);
+ HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
HRESULT Load_DADA_INT();
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Collision.h b/Jusin154_Team3D/Client/Public/MapObject_Collision.h
index 0623898d3..dbcea9ea0 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Collision.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Collision.h
@@ -25,7 +25,7 @@ class CMapObject_Collision final : public CMapPartObject // 충돌용 Mesh
void ConvertToPhysX();
private:
CShader* m_pShaderCom = { nullptr };
- vector> m_RigidBodies;
+ vector m_RigidBodies;
vector m_pModelComs;
_bool m_bReadyToCreatePhysX = { false };
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h
index ace3bd001..35f91ed18 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Render.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h
@@ -48,7 +48,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
CShader* m_pShaderCom = { nullptr };
CTexture* m_pDefaultGlassTextureCom = { nullptr };
vector m_pModelComs;
- vector> m_RigidBodies;
+ vector m_RigidBodies;
vector<_wstring> m_ModelPrototypeTags;
vector<_uint> m_ModelPathIndices = {};
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index 1b0a943f0..2790e9664 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -4,6 +4,7 @@
#include "Monster.h"
#include "CallBack_Monster_Behavior.h"
#include "CallBack_Ranrok_HitReport.h"
+#include "Ranrok_ENUM.h"
NS_BEGIN(Client)
@@ -60,6 +61,7 @@ class CRanrok final : public CMonster
virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
+ _vector Get_BonePos(RANROK_ENUM_BONEMATRICES eType);
private:
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
@@ -81,7 +83,9 @@ class CRanrok final : public CMonster
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components();
HRESULT Ready_Parts();
+ HRESULT Ready_SubParts();
HRESULT Bind_ShaderResources();
+ HRESULT Update_CollidersPosition();
HRESULT Render_Nonblend();
HRESULT Render_Blend();
void MoveTo(_float fTimeDelta);
@@ -92,9 +96,7 @@ class CRanrok final : public CMonster
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
-
- _float4 m_vInitialRotQ = {};
- _float3 m_vInitialTrans = {};
+ HRESULT Render_Collider();
#endif // _DEBUG
private:
@@ -147,6 +149,28 @@ class CRanrok final : public CMonster
const _float4x4* m_pLeftEye_BoneMat = { nullptr };
const _float4x4* m_pRightEye_BoneMat = { nullptr };
+ const _float4x4* m_pRightWingWrist_BoneMat = { nullptr };
+ const _float4x4* m_pRightWingTip_BoneMat = { nullptr };
+ const _float4x4* m_pRightWingPinky_BoneMat = { nullptr };
+ const _float4x4* m_pLeftWingWrist_BoneMat = { nullptr };
+ const _float4x4* m_pLeftWingTip_BoneMat = { nullptr };
+ const _float4x4* m_pLeftWingPinky_BoneMat = { nullptr };
+ const _float4x4* m_pHead_BoneMat = { nullptr };
+ const _float4x4* m_pBody_BoneMat = { nullptr };
+ const _float4x4* m_pTail0_BoneMat = { nullptr };
+ const _float4x4* m_pTail1_BoneMat = { nullptr };
+ const _float4x4* m_pTail2_BoneMat = { nullptr };
+ const _float4x4* m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
+ CRigidBody_Dynamic* m_pTargetableDO[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
+#ifdef _DEBUG
+ unique_ptr m_pSubShape = { nullptr };
+ ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr };
+
+ _float4 m_vInitialRotQ = {};
+ _float3 m_vInitialTrans = {};
+#endif // _DEBUG
+
+
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
void Behavior_IdleExit();
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_ENUM.h b/Jusin154_Team3D/Client/Public/Ranrok_ENUM.h
new file mode 100644
index 000000000..b9554f2fc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_ENUM.h
@@ -0,0 +1,29 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameInstance.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+NS_BEGIN(Client)
+
+enum class RANROK_ENUM_BONEMATRICES {
+ RIGHTWING_WRIST
+ , RIGHTWING_TIP
+ , RIGHTWING_PINKY
+
+ , LEFTWING_WRIST
+ , LEFTWING_TIP
+ , LEFTWING_PINKY
+
+ , HEAD
+ , BODY
+
+ , TAIL0
+ , TAIL1
+ , TAIL2
+ , END
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h
new file mode 100644
index 000000000..da243b7c4
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/TriggerBox.h
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameInstance.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CTriggerBox final : public CBase
+{
+public:
+ typedef struct tagTriggerDesc {
+ _float4 vPosition_Radius = { 0.f, 0.f, 0.f, 1.f };
+ }TRIGGERBOX_DESC;
+private:
+ CTriggerBox();
+ virtual ~CTriggerBox() = default;
+
+public:
+ HRESULT TryScanArea(_float fTimeDelta);
+
+
+private:
+ HRESULT Initialize(TRIGGERBOX_DESC*);
+ HRESULT Scan();
+private:
+ CGameInstance* m_pGameInstance = { nullptr };
+ _float4 m_vPosition = { };
+ _float m_fRadius = {};
+ _float2 m_vScanTimer = { 0.f, 0.5f };
+
+public:
+ static CTriggerBox* Create(TRIGGERBOX_DESC* Desc);
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
index 1d85ada58..1cf13754e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
@@ -1,4 +1,4 @@
-
+
@@ -32,6 +32,9 @@
+
+
+
@@ -66,6 +69,9 @@
+
+
+
@@ -100,6 +106,9 @@
+
+
+
@@ -134,6 +143,9 @@
+
+
+
@@ -168,6 +180,9 @@
+
+
+
@@ -202,6 +217,9 @@
+
+
+
@@ -236,6 +254,9 @@
+
+
+
@@ -270,8 +291,270 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
@@ -304,8 +587,11 @@
+
+
+
-
+
@@ -338,8 +624,11 @@
+
+
+
-
+
@@ -370,10 +659,13 @@
-
+
+
+
+
-
+
@@ -406,5 +698,9 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml
index 64277cb3b..6750bead8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data.xml
@@ -17,19 +17,19 @@
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod1
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod2
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod3
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod3
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod1
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod2
- Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod3
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod3
@@ -59,7 +59,7 @@
-
+
Prototype_GameObject_SM_Repository_ArenaFloor_A
Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
@@ -93,7 +93,7 @@
Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
-
+
@@ -120,15 +120,9 @@
Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel_Lod1
Prototype_GameObject_SM_Repository_DrillWall_Wall_tunnel_Lod2
-
+
-
@@ -168,7 +162,7 @@
Prototype_GameObject_SM_Gauntlet_01_barrier_Lod2
Prototype_GameObject_SM_Gauntlet_01_barrier_Lod3
-
+
@@ -228,7 +222,7 @@
Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod1
Prototype_GameObject_SM_Repository_Broken_Stalagmite_A_A_Lod2
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data0109.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data0109.xml
new file mode 100644
index 000000000..64277cb3b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Dungeon_Map_Data0109.xml
@@ -0,0 +1,989 @@
+
+
+
+
+
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Bottom_Rock_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_A_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Curve_B_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod1
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod2
+ Prototype_GameObject_SM_Repository_Central_Structure_Core_Top_rock_Lod3
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_ArenaFloor_A
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_ArenaFloor_A
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_ArenaFloor_A
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_ArenaFloor_A
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_ArenaFloor_A
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
+
+
+
+
+
+ Prototype_GameObject_SM_Repository_ArenaFloor_A
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod1
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod2
+ Prototype_GameObject_SM_Repository_ArenaFloor_A_Lod3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Bon_Fire_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Bon_Fire_Data.xml
new file mode 100644
index 000000000..abcba524d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Bon_Fire_Data.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Goo0_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Goo0_Data.xml
new file mode 100644
index 000000000..96721349b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Goo0_Data.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Goo1_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Goo1_Data.xml
new file mode 100644
index 000000000..29795ddf2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Goo1_Data.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Decal_15_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Decal_15_Data.xml
new file mode 100644
index 000000000..402de5c33
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Decal_15_Data.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Decal_35_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Decal_35_Data.xml
new file mode 100644
index 000000000..4abd3a629
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Decal_35_Data.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo2_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo2_Data.xml
new file mode 100644
index 000000000..1710f84a6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo2_Data.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo3_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo3_Data.xml
new file mode 100644
index 000000000..9302a8292
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo3_Data.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo4_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo4_Data.xml
new file mode 100644
index 000000000..89a75fa5c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Goo4_Data.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Particle_Black_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Particle_Black_Data.xml
new file mode 100644
index 000000000..be3b85b7d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Particle_Black_Data.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Particle_Red_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Particle_Red_Data.xml
new file mode 100644
index 000000000..757b318bc
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Ranrok_Particle_Red_Data.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Large1_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Large1_Data.xml
new file mode 100644
index 000000000..35aeeacf7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Large1_Data.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Large2_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Large2_Data.xml
new file mode 100644
index 000000000..b84150c07
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Large2_Data.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Small_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Small_Data.xml
new file mode 100644
index 000000000..1647e64e1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Rotate_Rock_Small_Data.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/BogMyrtle_A_Dungeon.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/BogMyrtle_A_Dungeon.bin
new file mode 100644
index 000000000..0d873a050
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/BogMyrtle_A_Dungeon.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:399f42a724557a08aca025c0360b0cbebe63143281793a5b2281d0e2b275cc4d
+size 2052
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/FrontSteps_A_HN_AW.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/FrontSteps_A_HN_AW.bin
new file mode 100644
index 000000000..20e82f9a1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/FrontSteps_A_HN_AW.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:758f099e90d2ac01b2c306d9d0eb2ddb01c90023b096529a67d7497b199d34b7
+size 324
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml
index 7ce2dca9b..02b0c9025 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml
@@ -282,4 +282,20 @@
SRO
+
+
+ T_HoneyDukes_BaseStone_01_D
+ T_HoneyDukes_BaseStone_01_N
+ T_HoneyDukes_BaseStone_01_MRO
+ MRO
+
+
+
+
+ T_HM_Quid_StoneKit_A_D
+ T_HM_Quid_StoneKit_A_N
+ T_HM_Quid_StoneKit_A_SRO
+ SRO
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/StoneKit_A_HW.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/StoneKit_A_HW.bin
new file mode 100644
index 000000000..5fdae16e2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/StoneKit_A_HW.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54c24da232a639774e65453e43c5ae3a99a167e3839790a4af38f7579223de04
+size 132
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin
new file mode 100644
index 000000000..75767d365
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a7d270b10ee12def556b020b10334c077fbf8061d48172772aac4ecb60e7b875
+size 644
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Light/DATA_INT_PointLight_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Light/DATA_INT_PointLight_Data.xml
index f996f3b72..bfb4274ba 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Light/DATA_INT_PointLight_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Light/DATA_INT_PointLight_Data.xml
@@ -16,7 +16,7 @@
-
+
@@ -26,7 +26,7 @@
-
+
@@ -36,7 +36,7 @@
-
+
@@ -46,7 +46,7 @@
-
+
@@ -56,8 +56,8 @@
-
+
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.bin
new file mode 100644
index 000000000..83dd0ff2b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:200aa5c25114a757f4ac6f8587faaffa978f7e8ecd872550051f4a7ef1a29170
+size 91417
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.fbx
new file mode 100644
index 000000000..9f0dace08
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1610d747ceb8601325fe5d9c8b0e16502db44ecb00d9c0d421cfdffb5f03f9b4
+size 56748
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Stone_FrontSteps_A.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Stone_FrontSteps_A.bin
new file mode 100644
index 000000000..03e405f00
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Stone_FrontSteps_A.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fcb4c2af1409f78625f91c531935176f4429f7e5f249a7047f684077e9b63db0
+size 18708
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_D.dds
new file mode 100644
index 000000000..7e589c750
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_N.dds
new file mode 100644
index 000000000..98974a89f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_SROH.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_SROH.dds
new file mode 100644
index 000000000..4b97bf58c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_3Broomsticks_StoneStairs_SROH.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_D.dds
new file mode 100644
index 000000000..4b647106f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_N.dds
new file mode 100644
index 000000000..8853d53bd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_SRO.dds
new file mode 100644
index 000000000..83406e37b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_Quid_StoneKit_A_SRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_D.dds
new file mode 100644
index 000000000..50a481e7f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_MRO.dds
new file mode 100644
index 000000000..c2bf08c33
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_N.dds
new file mode 100644
index 000000000..147ae71ae
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HoneyDukes_BaseStone_01_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl
index b732abfe0..fd31f29b0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl
@@ -141,10 +141,12 @@ float ComputePointLightVisible(float3 vLightDir, float fRange)
{
float fDistance = length(vLightDir);
- if (fDistance < fRange)
- return 1.f;
- else
- return 0.f;
+ //if (fDistance < fRange)
+ // return 1.f;
+ //else
+ // return 0.f;
+
+ return saturate((fRange * 1.5f - fDistance) / fRange);
}
float ComputeShadowVisibility(float3 vWorldPosition)
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 73d961baa..b0a9093d7 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -1118,3 +1118,49 @@ void CEditEffect::Describe_Entity()
}
+
+HRESULT CEditEffect::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
+{
+ tinyxml2::XMLElement* object = doc.NewElement("Object");
+ root->InsertEndChild(object);
+
+ _float3 vPosition = {};
+ XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION));
+ _float3 vScale = m_pTransformCom->Get_Scale();
+ _float3 vRotation = m_pTransformCom->Get_Rotation();
+
+ tinyxml2::XMLElement* Position = doc.NewElement("Position");
+ Position->SetAttribute("x", vPosition.x);
+ Position->SetAttribute("y", vPosition.y);
+ Position->SetAttribute("z", vPosition.z);
+ object->InsertEndChild(Position);
+
+ tinyxml2::XMLElement* Scale = doc.NewElement("Scale");
+ Scale->SetAttribute("x", vScale.x);
+ Scale->SetAttribute("y", vScale.y);
+ Scale->SetAttribute("z", vScale.z);
+ object->InsertEndChild(Scale);
+
+ tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation");
+ Rotation->SetAttribute("x", vRotation.x);
+ Rotation->SetAttribute("y", vRotation.y);
+ Rotation->SetAttribute("z", vRotation.z);
+ object->InsertEndChild(Rotation);
+
+ return S_OK;
+}
+
+void CEditEffect::Control_Transform()
+{
+ m_pTransformCom->Describe_Entity();
+
+ _float3 vPosition = {};
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
+ {
+ _float3 vPosition = {};
+ if (m_pGameInstance->isPicking(&vPosition))
+ {
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
+ }
+ }
+}
diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
index 144f517ad..cfb950353 100644
--- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
@@ -64,13 +64,13 @@ HRESULT CLevel_MapViewer::Initialize()
return E_FAIL;
}
- if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
- return E_FAIL;
- }
+ //if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
+ // return E_FAIL;
+ //}
- if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
- return E_FAIL;
- }
+ //if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
+ // return E_FAIL;
+ //}
//if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) {
// return E_FAIL;
@@ -92,15 +92,14 @@ HRESULT CLevel_MapViewer::Initialize()
return E_FAIL;
}
- //m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
- m_pGameInstance->Setting_Volumetirc(0.f, 0.003f, 0.56f, 1.f, 0.031f);
+ m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
+ //m_pGameInstance->Setting_Volumetirc(0.f, 0.003f, 0.56f, 1.f, 0.031f);
return S_OK;
}
HRESULT CLevel_MapViewer::Ready_Layer_Light()
{
-
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT)))
return E_FAIL;
@@ -149,15 +148,15 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
CTerrain::TERRAIN_DESC Desc = {};
///* Hogsmeade */
- Desc.isEdit = false;
- Desc.iAlphaSizeX = 2048;
- Desc.iAlphaSizeY = 2048;
- Desc.vPosition = _float3(-194, 18.5f, -153.f);
- Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin";
- Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin";
- Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
- return E_FAIL;
+ //Desc.isEdit = false;
+ //Desc.iAlphaSizeX = 2048;
+ //Desc.iAlphaSizeY = 2048;
+ //Desc.vPosition = _float3(-194, 18.5f, -153.f);
+ //Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin";
+ //Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin";
+ //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ // return E_FAIL;
/* Hogwart */
Desc.isEdit = false;
@@ -513,6 +512,11 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
+ Desc.isShake = false;
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A_Dungeon.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ return E_FAIL;
+
/* Dogwood_B */
Desc.bEditMode = false;
Desc.isShake = true;
@@ -605,6 +609,29 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ return E_FAIL;
+
+ /* Stone_FrontSteps */
+ Desc.bEditMode = false;
+ Desc.isShake = false;
+ Desc.vRadius = _float2(0.015f, 0.02f);
+ Desc.vSpeed = _float2(0.3f, 1.f);
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Stone_FrontSteps";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/FrontSteps_A_HN_AW.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ return E_FAIL;
+
+ /* StoneKit_A */
+ Desc.bEditMode = false;
+ Desc.isShake = false;
+ Desc.vRadius = _float2(0.015f, 0.02f);
+ Desc.vSpeed = _float2(0.3f, 1.f);
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StoneKit_A";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StoneKit_A_HW.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ return E_FAIL;
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 7d9670f4d..e03420d5d 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -2577,6 +2577,226 @@ future*> CLoader::Deferred_ModelLoad(MODEL eType, const
HRESULT CLoader::Loading_For_MapViewer()
{
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::MAP), CEditEffect::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_SRO"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/base_Black_SRO.dds"), 0)))) {
+ return E_FAIL;
+ }
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Diffuse", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Flipbooks", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Gradients", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Nomal", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"NORMAL")))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Decal", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"DECAL")))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/DecalNormal", 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::MAP), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"DECALNORMAL")))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ m_strMessage = TEXT("Model Loading..");
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
+ return E_FAIL;
+
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Rock", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Goo", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/NomalMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Lightning", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Spline", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/DragonMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::MAP), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
#pragma region PLAYER_AND_RANROK
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
@@ -3079,7 +3299,7 @@ HRESULT CLoader::Loading_For_MapViewer()
#pragma endregion
-_bool bLoadHogsmeade = false;
+_bool bLoadHogsmeade = true;
if (bLoadHogsmeade)
{
#pragma region HOGSMEADE_OBJECT
@@ -3165,7 +3385,7 @@ _bool bLoadHogsmeade = false;
}
#pragma region HOGWART
-_bool bHogwartLoad = { true };
+_bool bHogwartLoad = { false };
/* Hogwart LOD */
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
@@ -3390,7 +3610,7 @@ if(bHogwartLoad)
#pragma region DUNGEON
-_bool bDungeonLoad = { false };
+_bool bDungeonLoad = { true };
if (bDungeonLoad)
{
@@ -3877,7 +4097,7 @@ if(isLoad_Map)
#pragma region INSTANCE_MODEL
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
- InstanceDesc.iNum = 200;
+ InstanceDesc.iNum = 20;
///* For.Prototype_Component_VIBuffer_Model_Instancel */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"),
@@ -4023,6 +4243,18 @@ if(isLoad_Map)
"../Bin/Resources/Models/InstanceProp/SM_OL_StratifiedRock_D_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_Stone_FrontSteps */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Stone_FrontSteps"),
+ CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_HM_Stone_FrontSteps_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_StoneKit_A */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_StoneKit_A"),
+ CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
+ return E_FAIL;
+
#pragma endregion // INSTANCE_MODEL
/* For.Prototype_Component_VIBuffer_Box */
diff --git a/Jusin154_Team3D/Editor/Private/MainLight.cpp b/Jusin154_Team3D/Editor/Private/MainLight.cpp
index a456ce051..6917fe8fe 100644
--- a/Jusin154_Team3D/Editor/Private/MainLight.cpp
+++ b/Jusin154_Team3D/Editor/Private/MainLight.cpp
@@ -143,8 +143,9 @@ HRESULT CMainLight::Ready_Components()
LightDesc.iLevel = NEXT_LEVEL;
#ifdef gimch
- LightDesc.vDiffuse = _float4(0.8f, 0.8f, 0.8f, 0.204f);
- LightDesc.vAmbient = _float4(0.8f, 0.8f, 0.8f, 0.0f);
+ LightDesc.vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
+ LightDesc.vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f);
+
#endif // gimch
/* Com_Light*/
if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &LightDesc)))
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp
index 51ce805c9..e81c70eaf 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp
@@ -50,6 +50,12 @@ HRESULT CMapElement_Static::Initialize(void* pArg)
m_pTransformCom->Set_Scale(m_vScale);
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
+
+ _float fMaxScale = max(m_vScale.z, max(m_vScale.x, m_vScale.y));
+
+ m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale;
+ _float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
+ XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix()));
#endif // _DEBUG
return S_OK;
@@ -68,7 +74,7 @@ void CMapElement_Static::Update(_float fTimeDelta)
void CMapElement_Static::Late_Update(_float fTimeDelta)
{
- //if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
+ //if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldCenterPosition), 1.f), m_fRadius)) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
//}
}
diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
index 2db8ecccb..f28d44fcb 100644
--- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
@@ -17,7 +17,7 @@
#include "DummyDecal.h"
#include "RaceRing.h"
#include "InstancedProp_Light.h"
-
+#include "EditEffect.h"
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
: CGameObject(pDevice, pContext), m_pInfoInstance{CInfoInstance::GetInstance()}
@@ -86,27 +86,24 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
// return E_FAIL;
#pragma region HOGSMEADE
- //if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
- // return E_FAIL;
+ /* if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
+ return E_FAIL;*/
#pragma endregion
#pragma region DUNGEON
- //if (FAILED(Load_MapData("Dungeon_Map_Data", L"LAYER_BACKGOURN")))
- // return E_FAIL;
- //m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
- //m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
+ if (FAILED(Load_MapData("Dungeon_Map_Data", L"LAYER_BACKGOURN")))
+ return E_FAIL;
+ m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
+ m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
#pragma endregion
#pragma region HOGWART
- /*if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
- return E_FAIL;
- if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
- return E_FAIL;*/
+ //if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
+ // return E_FAIL;
+ //if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
+ // return E_FAIL;
#pragma endregion
-
-
-
#pragma region Light
m_Light_Desc.eType = LIGHT::POINT;
@@ -120,6 +117,47 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
m_Light_Desc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
#pragma endregion
+#pragma region DADA_INT
+ //Load_DADA_INT();
+ //m_pGameInstance->Get_Camera(g_iStaticLevel, CAMERA_DEBUG)
+ // ->Get_Component()
+ // ->Set_State(STATE::POSITION, XMVectorSet(1000.f, 0.f, 1000.f, 1.f));
+#pragma endregion
+
+
+
+#pragma region EFFECT_PART
+ if (FAILED(Load_EffectParts("Goo0_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Goo1_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Ranrok_Goo2_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Ranrok_Goo3_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Ranrok_Goo4_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Ranrok_Decal_15_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Rotate_Rock_Small_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Small")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Ranrok_Particle_Black_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Ranrok_Particle_Red_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red")))
+ return E_FAIL;
+ //if (FAILED(Load_EffectParts("Ranrok_Decal_35_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35")))
+ //return E_FAIL;
+ if (FAILED(Load_EffectParts("Rotate_Rock_Large1_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large1")))
+ return E_FAIL;
+ if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
+ return E_FAIL;
+
+
+ if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
+ return E_FAIL;
+
+#pragma endregion
+
return S_OK;
}
@@ -232,9 +270,10 @@ void CMapObject_Manager::Update(_float fTimeDelta)
//Update_LightSpawer();
//Update_Decal();
- Update_RaceRing();
+ //Update_RaceRing();
+ Update_EffectParts();
- Update_Unified();
+ //Update_Unified();
if (ADD_TYPE::CONTAINER == m_eType)
{
@@ -2036,6 +2075,114 @@ HRESULT CMapObject_Manager::Load_DADA_INT()
return S_OK;
}
+HRESULT CMapObject_Manager::Save_EffectParts(const _char* pFileName)
+{
+ CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Effect_EDIT"));
+
+ if (nullptr == pLayer)
+ return S_OK;
+
+ tinyxml2::XMLDocument doc;
+ string strPath = "../Bin/Resources/Data/Map/EffectPart/" + string(pFileName) + ".xml";
+
+ tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
+
+ doc.Clear();
+ doc.InsertFirstChild(doc.NewDeclaration());
+
+ tinyxml2::XMLElement* root = doc.NewElement("EffectParts");
+ doc.InsertEndChild(root);
+
+ if (nullptr != pLayer)
+ {
+ const list* pList = pLayer->Get_Objects();
+
+ for (auto pGamObject : *pList)
+ {
+ CEditEffect* pEffect = dynamic_cast(pGamObject);
+
+ if (nullptr == pEffect)
+ return E_FAIL;
+
+ if (FAILED(pEffect->Save_XML(doc, root)))
+ return E_FAIL;
+ }
+ }
+
+ if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
+ MSG_BOX("Failed to Save File");
+ }
+ else
+ {
+ MSG_BOX("Succeed to Save EffectPart");
+ }
+
+ return S_OK;
+}
+
+HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath)
+{
+ tinyxml2::XMLDocument xmlDoc;
+
+ string strPath = "../Bin/Resources/Data/Map/EffectPart/" + string(pFileName) + ".xml";
+
+ if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
+ return E_FAIL;
+
+ tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts");
+
+ if (nullptr == root)
+ {
+ MSG_BOX("Failed to Find root");
+ return S_OK;
+ }
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+ for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
+ {
+ _float3 vScale = {};
+ _float3 vRotation = {};
+ _float3 vPosition = {};
+
+ /* Transform */
+ auto* Position = Object->FirstChildElement("Position");
+ Position->QueryFloatAttribute("x", &vPosition.x);
+ Position->QueryFloatAttribute("y", &vPosition.y);
+ Position->QueryFloatAttribute("z", &vPosition.z);
+
+ auto* Scale = Object->FirstChildElement("Scale");
+ Scale->QueryFloatAttribute("x", &vScale.x);
+ Scale->QueryFloatAttribute("y", &vScale.y);
+ Scale->QueryFloatAttribute("z", &vScale.z);
+
+ auto* Rotation = Object->FirstChildElement("Rotation");
+ Rotation->QueryFloatAttribute("x", &vRotation.x);
+ Rotation->QueryFloatAttribute("y", &vRotation.y);
+ Rotation->QueryFloatAttribute("z", &vRotation.z);
+
+ CEditEffect* pEffect = { nullptr };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_EffectParts"), &PartsDesc, nullptr, &pEffect)))
+ return E_FAIL;
+
+ if (nullptr == pEffect)
+ return E_FAIL;
+
+ CTransform* pTransformCom = pEffect->Get_Component();
+
+ pTransformCom->Set_Scale(vScale);
+ pTransformCom->Rotation(XMConvertToRadians(vRotation.x), XMConvertToRadians(vRotation.y), XMConvertToRadians(vRotation.z));
+ pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
+ pEffect->Load(pEffectrFilePath, LEVEL::MAP);
+ pEffect->Set_Visible(true);
+ }
+
+ return S_OK;
+}
+
void CMapObject_Manager::Update_PrototypeList()
{
GUI::Begin("Model Prototype List");
@@ -2407,6 +2554,50 @@ void CMapObject_Manager::Update_RaceRing()
GUI::End();
}
+void CMapObject_Manager::Update_EffectParts()
+{
+ GUI::Begin("EffectParts Editor");
+ GUI::InputText("MapFileName", m_szSaveFileName, MAX_PATH);
+ GUI::Spacing();
+ if (GUI::Button("Save EffectParts"))
+ {
+ Save_EffectParts(m_szSaveFileName);
+ }
+ if (GUI::Button("Load EffectParts"))
+ {
+ Load_EffectParts(m_szSaveFileName, "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black");
+ }
+ if (GUI::Button("Add Effect"))
+ {
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+ CEditEffect* pEffect = { nullptr };
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_Effect_EDIT"), &PartsDesc, nullptr, &pEffect)))
+ return;
+
+ pEffect->Load("../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35",LEVEL::MAP);
+ pEffect->Set_Visible(true);
+ }
+
+ GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex);
+ CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Effect_EDIT"));
+
+ if (nullptr != pLayer)
+ {
+ _uint iIndex = {};
+ for (auto& pObject : *pLayer->Get_Objects())
+ {
+ if (m_iSelectedIndex == iIndex)
+ dynamic_cast(pObject)->Control_Transform();
+
+ ++iIndex;
+ }
+ }
+
+ GUI::End();
+}
+
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
{
vector<_uint> LodModelIndices;
diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h
index ce5229d00..ea428f278 100644
--- a/Jusin154_Team3D/Editor/Public/EditEffect.h
+++ b/Jusin154_Team3D/Editor/Public/EditEffect.h
@@ -28,6 +28,8 @@ class CEditEffect final : public CEffectObject
void Reference_Mat_For_EditEffect();
HRESULT Save_Effect(const _char* pPath);
HRESULT Save_Path(HANDLE hFile);
+ void Control_Transform();
+
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -49,6 +51,7 @@ class CEditEffect final : public CEffectObject
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
void Describe_Entity() override;
+ HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/MapElement_Static.h b/Jusin154_Team3D/Editor/Public/MapElement_Static.h
index 47140d364..93118e86a 100644
--- a/Jusin154_Team3D/Editor/Public/MapElement_Static.h
+++ b/Jusin154_Team3D/Editor/Public/MapElement_Static.h
@@ -19,7 +19,9 @@ class CMapElement_Static : public CMapElement
virtual HRESULT Render() override;
private:
- _bool m_isCollision = {};
+ _bool m_isCollision = {};
+ _float m_fRadius = {};
+ _float3 m_vWorldCenterPosition = {};
private:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
index 8b472f058..13c0fa695 100644
--- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
+++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
@@ -87,6 +87,9 @@ class CMapObject_Manager final : public CGameObject
HRESULT Save_RaceRing(const _char* pFileName);
HRESULT Load_DADA_INT();
+
+ HRESULT Save_EffectParts(const _char* pFileName);
+ HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
#pragma endregion
void Update_PrototypeList();
@@ -97,6 +100,7 @@ class CMapObject_Manager final : public CGameObject
void Update_LightSpawer();
void Update_Decal();
void Update_RaceRing();
+ void Update_EffectParts();
void Create_PartObject(_wstring& strPrototypeTag);
void Create_Elemnt(_wstring& strPrototypeTag);
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl
index b732abfe0..fd31f29b0 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl
@@ -141,10 +141,12 @@ float ComputePointLightVisible(float3 vLightDir, float fRange)
{
float fDistance = length(vLightDir);
- if (fDistance < fRange)
- return 1.f;
- else
- return 0.f;
+ //if (fDistance < fRange)
+ // return 1.f;
+ //else
+ // return 0.f;
+
+ return saturate((fRange * 1.5f - fDistance) / fRange);
}
float ComputeShadowVisibility(float3 vWorldPosition)
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 3834a17a3..72ef5d7cb 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -22,10 +22,14 @@ CRigidBody_Dynamic::CRigidBody_Dynamic(const CRigidBody_Dynamic& rhs) :
#ifdef _DEBUG
HRESULT CRigidBody_Dynamic::Render()
{
- return Render(nullptr);
+ return Render(nullptr, CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f));
}
HRESULT CRigidBody_Dynamic::Render(function custumState)
+{
+ return Render(custumState, CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f));
+}
+HRESULT CRigidBody_Dynamic::Render(function custumState, _fvector vColor)
{
if (m_pOwner->isDead())
return S_OK;
@@ -34,7 +38,6 @@ HRESULT CRigidBody_Dynamic::Render(function custumState)
* XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTranform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTranform.p), 1.f));
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
- _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f);
switch (m_eActorType)
{
case ACTOR::BOX:
diff --git a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
index cfd501a0e..3b932b5df 100644
--- a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
+++ b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
@@ -32,6 +32,7 @@ HRESULT CTimeSocket::Initialize(void* pArg)
m_Contents.vParam_10 = pDesc->vParam_10;
m_Contents.vParam_11 = pDesc->vParam_11;
m_Contents.funcEvent = pDesc->funcEvent;
+ m_Contents.vParam_12 = pDesc->vParam_12;
switch (m_Contents.eTypeParam)
{
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index cc211d088..20d5b28c3 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -43,6 +43,11 @@ void CUnit::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
}
+const _float4x4* CUnit::Get_SocketMatrixPtr(const _char* pSocketName)
+{
+ return m_pModelCom->Get_BoneMatrixPtr(pSocketName);
+}
+
#ifdef _DEBUG
void CUnit::Load_KeyFrame()
{
diff --git a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
index 70ec53eeb..31982bb57 100644
--- a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
+++ b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
@@ -33,6 +33,9 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback
case PXOBJECT::JOINT_ANCHOR:
return PSX::PxQueryHitType::eNONE;
break;
+ case PXOBJECT::RANROK_PROP:
+ return PSX::PxQueryHitType::eNONE;
+ break;
case PXOBJECT::NPC:
case PXOBJECT::OLLIVANDER:
case PXOBJECT::ELEAZARFIG:
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index 23482af90..cb0be9b99 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -32,6 +32,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
_float3 Get_LocalTranslation() {return m_vLocalTranslation; }
virtual HRESULT Render()override;
HRESULT Render(function custumState);
+ HRESULT Render(function custumState, _fvector vColor);
#endif // _DEBUG
virtual PSX::PxRigidDynamic* Get_Actor() override { return m_pRigidBody; };
diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h
index ed1c29947..4970cb129 100644
--- a/Jusin154_Team3D/Engine/Public/TimeSocket.h
+++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h
@@ -98,6 +98,7 @@ typedef struct tagSocketContents {
_boolean vFlags = {};
_uint4 vParam_10 = {};
_float4 vParam_11 = {};
+ _string vParam_12 = {};
function funcEvent = { nullptr };
}SOCKETCONTENTS;
diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h
index 203419e88..15bb39876 100644
--- a/Jusin154_Team3D/Engine/Public/Unit.h
+++ b/Jusin154_Team3D/Engine/Public/Unit.h
@@ -33,6 +33,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual void Trigger(class CTimeSocket& Socket) {};
+ virtual const _float4x4* Get_SocketMatrixPtr(const _char* pSocketName);
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
_bool IsAI() { return m_bAI; }