From 080bdc29e8057c684e1dbb03b8337fcb91b39470 Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Fri, 2 Jan 2026 11:59:08 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=EC=97=90=EB=94=94=ED=84=B0=20=EB=9E=80?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Default/Client.cpp | 41 +++++++++++++- Jusin154_Team3D/Editor/Private/Ranrok.cpp | 59 +++++++++++++++++++-- Jusin154_Team3D/Engine/Private/Collider.cpp | 4 ++ Jusin154_Team3D/Engine/Private/Renderer.cpp | 4 +- 4 files changed, 100 insertions(+), 8 deletions(-) diff --git a/Jusin154_Team3D/Client/Default/Client.cpp b/Jusin154_Team3D/Client/Default/Client.cpp index faf8b9092..29d272604 100644 --- a/Jusin154_Team3D/Client/Default/Client.cpp +++ b/Jusin154_Team3D/Client/Default/Client.cpp @@ -179,7 +179,7 @@ ATOM MyRegisterClass(HINSTANCE hInstance) BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { g_hInstance = hInstance; - +#ifdef _DEBUG RECT rcWindow = { 0, 0, g_iWinSizeX, g_iWinSizeY }; AdjustWindowRect(&rcWindow, WS_OVERLAPPEDWINDOW, FALSE); @@ -196,10 +196,49 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) UpdateWindow(hWnd); g_hWnd = hWnd; +#endif // _DEBUG + +#ifdef Bin +#ifndef _DEBUG + int screenX = GetSystemMetrics(SM_CXSCREEN); + int screenY = GetSystemMetrics(SM_CYSCREEN); + + HWND hWnd = CreateWindowW( + szWindowClass, + szTitle, + WS_POPUP, + 0, 0, + screenX, screenY, + nullptr, + nullptr, + hInstance, + nullptr + ); + + if (!hWnd) + return FALSE; + + g_hWnd = hWnd; + + ShowWindow(hWnd, SW_SHOW); + UpdateWindow(hWnd); + +#endif // !_DEBUG +#endif // Bin + return TRUE; +} + +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + g_hInstance = hInstance; + + // 원하는 해상도 + return TRUE; } + LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { if (ImGui_ImplWin32_WndProcHandler(hWnd, message, wParam, lParam)) { diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp index 5a646c65a..4dc10b5e5 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp @@ -532,10 +532,11 @@ void CRanrok::MoveTo(_float fTimeDelta) _vector CurPos = m_pCharacter_Controller->Get_Position(); _vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)); + _vector toTarget = Target - CurPos; _float fDist = XMVectorGetX(XMVector3Length(toTarget)); - if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 30.f) + if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 15.f) { NextTarget = m_Points[m_iCurrentFlow][m_iCurrentPoint + 1]; } @@ -545,7 +546,7 @@ void CRanrok::MoveTo(_float fTimeDelta) if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1) { - if (fDist < 20.f) + if (fDist < 5.f) { if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1) { @@ -557,7 +558,7 @@ void CRanrok::MoveTo(_float fTimeDelta) return; } } - else if (fDist < 20.f) + else if (fDist < 10.f) { if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1) { @@ -571,7 +572,7 @@ void CRanrok::MoveTo(_float fTimeDelta) _vector LerpTarget = XMVectorLerp(Target, NextTarget, 0.5f); - m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta, 2.5f); + m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta, 5.f); m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta); } @@ -671,6 +672,54 @@ void CRanrok::Describe_Entity() m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f)); } + GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed); + + for (_uint i = 0; i < m_Points.size(); ++i) + { + GUI::Separator(); + + if (GUI::TreeNode(("Points " + to_string(i)).c_str())) + { + GUI::Text("Points[%d] Count : %d", i, (_int)m_Points[i].size()); + + for (_uint j = 0; j < m_Points[i].size(); ) + { + _float3 p; + XMStoreFloat3(&p, m_Points[i][j]); + + GUI::PushID((int)(i * 10000 + j)); + + GUI::Text("[%d] (%.2f, %.2f, %.2f)", j, p.x, p.y, p.z); + GUI::SameLine(); + + if (GUI::SmallButton("Move")) + { + m_pCharacter_Controller->Set_Position( + XMVectorSet(p.x, p.y, p.z, 1.f)); + } + + GUI::SameLine(); + + if (GUI::SmallButton("X")) + { + m_Points[i].erase(m_Points[i].begin() + j); + GUI::PopID(); + continue; + } + + GUI::PopID(); + ++j; + } + + if (GUI::SmallButton(("Clear##" + to_string(i)).c_str())) + { + m_Points[i].clear(); + } + GUI::TreePop(); + } + + } + #ifdef gimch if (m_pGameInstance->Key_Down(DIK_L)) @@ -686,7 +735,7 @@ void CRanrok::Describe_Entity() m_pTransformCom->Describe_Entity(); - GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed); + } #endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Collider.cpp b/Jusin154_Team3D/Engine/Private/Collider.cpp index d90884c65..41e264c14 100644 --- a/Jusin154_Team3D/Engine/Private/Collider.cpp +++ b/Jusin154_Team3D/Engine/Private/Collider.cpp @@ -28,10 +28,14 @@ CCollider::CCollider(const CCollider& rhs) #endif } +#ifdef _DEBUG void CCollider::Set_Desc(void* pDesc) { m_pBounding->Set_Desc(pDesc); } +#endif // _DEBUG + + HRESULT CCollider::Initialize_Prototype() { diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index fd84aed39..9ea1ef723 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -569,7 +569,7 @@ void CRenderer::Render_Fog() if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Fog"), m_pShader, "g_Texture"))) { return; } - m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::PRINT_BACKBUFFER)); + m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::FOG)); m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); @@ -585,7 +585,7 @@ void CRenderer::Render_Fog() return; } - m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::FOG)); + m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::PRINT_BACKBUFFER)); m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render();