From affa50b96ea79c5da36f8c2769d79954175ec50b Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 28 Nov 2025 16:48:56 +0900 Subject: [PATCH 1/4] [add] PhysxHeightMap --- Jusin154_Team3D/Client/Private/Loader.cpp | 24 +++++++-- Jusin154_Team3D/Client/Private/Monster.cpp | 3 +- Jusin154_Team3D/Client/Private/Terrain.cpp | 14 ++++- Jusin154_Team3D/Client/Public/Terrain.h | 1 + .../Editor/Private/MapObject_LOD.cpp | 1 + .../Engine/Private/GameInstance.cpp | 5 ++ .../Engine/Private/PhysX_Manager.cpp | 54 +++++++++++++++++-- .../Engine/Private/RigidBody_Static.cpp | 2 + .../Engine/Private/VIBuffer_Terrain.cpp | 37 +++++++++++++ Jusin154_Team3D/Engine/Public/GameInstance.h | 1 + .../Engine/Public/PhysX/cooking/PxCooking.h | 2 +- .../Engine/Public/PhysX/foundation/PxIO.h | 2 +- Jusin154_Team3D/Engine/Public/PhysX_Manager.h | 24 +++------ .../Engine/Public/RigidBody_Static.h | 2 +- .../Engine/Public/VIBuffer_Terrain.h | 1 + 15 files changed, 143 insertions(+), 30 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 59a38a05d..765f2afc7 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -763,9 +763,27 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region MAP PROTOTYPE /* For.Prototype_Component_VIBuffer_Terrain */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), - CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512)))) - return E_FAIL; + { + CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), pTerrain))) { + return E_FAIL; + } + pTerrain->ConvertToHeightField(TEXT("Hogsmeade_HeightMap")); + + CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // 터레인 리지드 지형 추가 + { + Desc.eType = ACTOR::HEIGHTFIELD; + Desc.ePxRigidBodyFlags = {}; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT; + Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); + Desc.fContactOffset = 0.f; + } + CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"), pRigid))) { + return E_FAIL; + } + } /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"), diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp index ef07ceeec..3c3a4bd3d 100644 --- a/Jusin154_Team3D/Client/Private/Monster.cpp +++ b/Jusin154_Team3D/Client/Private/Monster.cpp @@ -63,7 +63,7 @@ HRESULT CMonster::Render_OutLine() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - GUI::Begin("OutLine"); + GUI::SetNextItemWidth(80.f); static _float3 vOutLineColor = _float3(1.f, 0.960784376f, 0.933333397f); static _float fOutLineThickness = { 1.f }; // 카메라로부터 거리가 멀어지면 늘어나게끔 바꾸는걸 추천함 @@ -73,7 +73,6 @@ HRESULT CMonster::Render_OutLine() GUI::SliderFloat("Thickness", &fOutLineThickness, 0.1f, 2.f, "%.1f"); GUI::SliderFloat("Scale", &fOutLineScale, 0.1f, 2.f, "%.1f"); GUI::SliderFloat("Power", &fOutLinePower, 0.1f, 2.f, "%.1f"); - GUI::End(); if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &vOutLineColor, sizeof(_float3)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp index d6c9f79a4..89d7a3cae 100644 --- a/Jusin154_Team3D/Client/Private/Terrain.cpp +++ b/Jusin154_Team3D/Client/Private/Terrain.cpp @@ -35,6 +35,15 @@ HRESULT CTerrain::Initialize(void* pArg) m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{}; + Desc.pMeshName = TEXT("Hogsmeade_HeightMap"); + Desc.iSubKind = 998; + /* Com_RigidBody */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"), + reinterpret_cast(&m_pRigidBody), &Desc))) { + return E_FAIL; + } + return S_OK; } @@ -106,8 +115,10 @@ HRESULT CTerrain::Ready_Components(void* pArg) /* Com_VIBuffer */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), - reinterpret_cast(&m_pVIBufferCom)))) + reinterpret_cast(&m_pVIBufferCom)))){ return E_FAIL; + } + /* Com_Shader */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NORTEX, @@ -205,6 +216,7 @@ void CTerrain::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pVIBufferCom); + SAFE_RELEASE(m_pRigidBody); SAFE_RELEASE(m_pDiffuseTextureCom); SAFE_RELEASE(m_pNormalTextureCom); SAFE_RELEASE(m_pMROTextureCom); diff --git a/Jusin154_Team3D/Client/Public/Terrain.h b/Jusin154_Team3D/Client/Public/Terrain.h index e29ed7a38..ac2349963 100644 --- a/Jusin154_Team3D/Client/Public/Terrain.h +++ b/Jusin154_Team3D/Client/Public/Terrain.h @@ -38,6 +38,7 @@ class CTerrain final : public CGameObject private: CShader* m_pShaderCom = { nullptr }; CVIBuffer_Terrain* m_pVIBufferCom = { nullptr }; + CRigidBody_Static* m_pRigidBody = { nullptr }; CTexture* m_pDiffuseTextureCom = { nullptr }; CTexture* m_pNormalTextureCom = { nullptr }; CTexture* m_pMROTextureCom = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp index d71a8a5eb..9fab8a619 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp @@ -361,6 +361,7 @@ void CMapObject_LOD::Describe_Entity() { // RIGID_BODY _wstring dest = CMyTools::ToWstring(m_pModelComs[iModelIndex]->Get_MeshName(iMeshIndex) + to_string(iMeshIndex)).c_str(); Desc.pMeshName = dest.c_str(); + Desc.iSubKind = 998; if (FAILED(Add_Asset_Component(g_iStaticLevel, Desc.pMeshName, nullptr, &Desc))) { assert(false); diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index eba74dd9a..cf6a16be5 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -652,6 +652,11 @@ void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTr return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh); } +void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc) +{ + return m_pPhysX_Manager->RegistHeight(pName, Desc); +} + PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody) { return m_pPhysX_Manager->Add_DynamicActor(RigidBody); diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 39812e099..01ba1a23f 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -77,15 +77,17 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody // PxRigidStatic 씬의 정적 바디 인터페이스 PSX::PxRigidStatic* pActor = m_pPhysics->createRigidStatic(pxWorldMatrix); PSX::PxShape* pShape = { nullptr }; - PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey()); - PSX::PxTriangleMeshGeometry* pPxMeshGeometry = { nullptr }; - + PSX::PxGeometry* pGeometry = { nullptr }; + switch (RigidBody.Get_Type()) { case ACTOR::PLANE: break; case ACTOR::TRIANGLEMESH: { // SetUp Geometry + PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey()); + PSX::PxTriangleMeshGeometry* pPxMeshGeometry = { nullptr }; + _vector vPos, vRotq, vScale; XMMatrixDecompose(&vScale, &vRotq, &vPos, WorldMatrix); vRotq = XMQuaternionNormalize(vRotq); @@ -103,17 +105,41 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody // pPxMeshGeometry->meshFlags |= PSX::PxMeshGeometryFlag::eDOUBLE_SIDED; // 유효성 체크 PX_ASSERT(pPxMeshGeometry->isValid()); + pGeometry = pPxMeshGeometry; m_TriangleMeshGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry); } break; case ACTOR::HEIGHTFIELD: + { // SetUp HeightField + PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey()); + PSX::PxHeightFieldGeometry* pPxHeightGeometry = { nullptr }; + + _vector vPos, vRotq, vScale; + XMMatrixDecompose(&vScale, &vRotq, &vPos, WorldMatrix); + vRotq = XMQuaternionNormalize(vRotq); + + PSX::PxTransform out; + XMStoreFloat3((_float3*)&out.p, vPos); + XMStoreFloat4((_float4*)&out.q, vRotq); + PSX::PxMeshScale meshScale( + PSX::PxVec3(fabsf(vScale.m128_f32[0]), fabsf(vScale.m128_f32[1]), fabsf(vScale.m128_f32[2])), + PSX::PxQuat(PSX::PxIdentity) // 스케일 축은 로컬 기준 + ); + pPxHeightGeometry = new PSX::PxHeightFieldGeometry(pHeightField); + + // 유효성 체크 + PX_ASSERT(pPxHeightGeometry->isValid()); + pGeometry = pPxHeightGeometry; + m_HeightFieldGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry); + } + break; break; default: assert(false); break; } - pShape = PSX::PxRigidActorExt::createExclusiveShape(*pActor, *pPxMeshGeometry, *m_pMaterials[ENUM_CLASS(RigidBody.Get_MaterialType())]); + pShape = PSX::PxRigidActorExt::createExclusiveShape(*pActor, *pGeometry, *m_pMaterials[ENUM_CLASS(RigidBody.Get_MaterialType())]); pShape->setFlags(RigidBody.Get_ShapeFlags()); pShape->setContactOffset(RigidBody.Get_ContactOffset()); @@ -144,6 +170,17 @@ void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxT { m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh); } +void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc) +{ + PSX::PxHeightField* pHeightField = PxCreateHeightField(Desc); + if (nullptr == pHeightField) { + assert(false); + } + else { + m_HeightFields.emplace(pName, pHeightField); + } + +} #ifdef EDITOR_PROJECT HRESULT CPhysX_Manager::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix) @@ -243,6 +280,15 @@ PSX::PxTriangleMesh* CPhysX_Manager::Find_TriangleMesh(const _tchar* pMeshName) return nullptr; } +PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName) +{ + map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields.find(pFieldName); + if (iter != m_HeightFields.end()) { + return iter->second; + } + return nullptr; +} + void CPhysX_Manager::Update_Kinematic() { for (auto& pBody : m_pActiveBodys) { diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp index 32d82d0f3..9f450afb4 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp @@ -30,6 +30,8 @@ HRESULT CRigidBody_Static::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))) { return E_FAIL; } + RIGIDBODY_STATIC_DESC* pDesc = static_cast(pArg); + m_pMeshName = pDesc->pMeshName; m_tagData.pOwner = m_pOwner; XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix()); m_tagData.pBody = this; diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp index 44b085125..a1dbe15c3 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp @@ -389,6 +389,43 @@ HRESULT CVIBuffer_Terrain::Initialize(void* pArg) return S_OK; } +void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey) +{ + vector pxSamples = {}; + pxSamples.resize(m_iNumVerticesZ * m_iNumVerticesX); + + for (_uint iRow = 0; iRow < m_iNumVerticesZ; ++iRow) { + for (_uint iCol = 0; iCol < m_iNumVerticesX; ++iCol) { + _uint iIndex = iRow * m_iNumVerticesZ + iCol; + + _float fRealHeight = m_HeigthValues[iIndex]; + PSX::PxI16 iClampHeight = (PSX::PxI16)(PSX::PxClamp(fRealHeight, -32767.f, 32767.f)); + + PSX::PxHeightFieldSample& pxSample = pxSamples[iIndex]; + + pxSample.height = iClampHeight; + pxSample.materialIndex0 = pxSample.materialIndex1 = 0; + pxSample.clearTessFlag(); + } + } + + PSX::PxHeightFieldDesc Desc{}; + Desc.format = PSX::PxHeightFieldFormat::eS16_TM; + Desc.nbRows = m_iNumVerticesZ; + Desc.nbColumns = m_iNumVerticesX; + + Desc.samples.data = pxSamples.data(); + Desc.samples.stride = sizeof(PSX::PxHeightFieldSample); + Desc.convexEdgeThreshold = 0; + if (false == Desc.isValid()) { + assert(false); + } + else { + m_pGameInstance->RegistHeight(pStaticKey, Desc); + } + +} + _bool CVIBuffer_Terrain::Picking(_fmatrix WorldMatrix, _float3* pOut) { _matrix WorldInv = XMMatrixInverse(nullptr, WorldMatrix); diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 9939c98a1..9aabd37bb 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -193,6 +193,7 @@ class ENGINE_DLL CGameInstance final : public CBase #pragma region PhysX_Manager PSX::PxMaterial* Create_Material(_float3* vMatInfo); void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh); + void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc); PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody); PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody); PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame); diff --git a/Jusin154_Team3D/Engine/Public/PhysX/cooking/PxCooking.h b/Jusin154_Team3D/Engine/Public/PhysX/cooking/PxCooking.h index 4bfef7c9c..cb03c91e2 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX/cooking/PxCooking.h +++ b/Jusin154_Team3D/Engine/Public/PhysX/cooking/PxCooking.h @@ -1,4 +1,4 @@ -// Redistribution and use in source and binary forms, with or without +// Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright diff --git a/Jusin154_Team3D/Engine/Public/PhysX/foundation/PxIO.h b/Jusin154_Team3D/Engine/Public/PhysX/foundation/PxIO.h index 177d4776e..2a239d302 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX/foundation/PxIO.h +++ b/Jusin154_Team3D/Engine/Public/PhysX/foundation/PxIO.h @@ -1,4 +1,4 @@ -// Redistribution and use in source and binary forms, with or without +// Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h index cf9fb125f..c6023f59a 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h +++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h @@ -27,6 +27,7 @@ class CPhysX_Manager final : public CBase PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame); void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh); + void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc); PSX::PxMaterial* Create_Material(const _float3* vMatInfo); #ifdef EDITOR_PROJECT @@ -36,6 +37,7 @@ class CPhysX_Manager final : public CBase HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); //HRESULT LoadTriMeshes_Binary(const _char* pPath, vector& TriMeshes); PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName); + PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName); void Update(_float fTimeDelta); void ClearScene(); @@ -80,27 +82,15 @@ class CPhysX_Manager final : public CBase unordered_set m_pActiveBodys = { }; unordered_set m_pRestBodies = { }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함 + map<_wstring, PSX::PxTriangleMesh*> m_TriangleMeshes = {}; map<_wstring, PSX::PxTriangleMeshGeometry*> m_TriangleMeshGeometry = {}; -#ifdef 기무리 + + map<_wstring, PSX::PxHeightField*> m_HeightFields = {}; + map<_wstring, PSX::PxHeightFieldGeometry*> m_HeightFieldGeometry = {}; + PhsXUserData PlaneData = {}; -#endif // 기무리 -#ifdef 진우 - PhsXUserData PlaneData = {}; - -#endif // 기무리 -#ifdef gimch - PhsXUserData PlaneData = {}; - -#endif // 기무리 - -#ifdef Bin - PhsXUserData PlaneData = {}; - -#endif // 기무리 - - vector m_pMaterials = { }; _uint m_iNumLevel = {}; private: diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Static.h b/Jusin154_Team3D/Engine/Public/RigidBody_Static.h index d0122d2fd..1d7794439 100644 --- a/Jusin154_Team3D/Engine/Public/RigidBody_Static.h +++ b/Jusin154_Team3D/Engine/Public/RigidBody_Static.h @@ -14,7 +14,7 @@ class ENGINE_DLL CRigidBody_Static : public CRigidBody }RIGIDBODY_STATIC_PROTOTYPEDESC; - typedef struct tagRigidBody_STATIC_Desc : public CRigidBody::RIGIDBODY_PROTOTYPEDESC + typedef struct tagRigidBody_STATIC_Desc : public CRigidBody::RIGIDBODY_DESC { const _tchar* pMeshName = { nullptr }; }RIGIDBODY_STATIC_DESC; diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h index 7aa8f3dc7..6c02deb16 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h @@ -24,6 +24,7 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer #endif // EDITOR_PROJECT virtual HRESULT Initialize_Prototype(const _char* pFilePath, _uint iSizeX, _uint iSizeZ); virtual HRESULT Initialize(void* pArg); + void ConvertToHeightField(const _tchar* pStaticKey); _bool Picking(_fmatrix WorldMatrix, _float3* pOut); void Culling(_fmatrix WorldMatrix); From 466381093e48de9746a029b7d14c988af3e0b486 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 28 Nov 2025 17:53:40 +0900 Subject: [PATCH 2/4] [fix] image bug --- .../Textures/Mission/Finishi_Rect.png | Bin 129 -> 1327 bytes .../Textures/Mission/Mission_Icon_0.png | Bin 130 -> 11563 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/Finishi_Rect.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/Finishi_Rect.png index 684b05ee110467acab690e4e4c83173e9fa4871d..4900acd60874a214cb58d98a370bda8435e55eb6 100644 GIT binary patch literal 1327 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K5893O0R7}x|G!U;i$lZxy-8q?;Kn_c~qpu?a z!^VE@KZ&eBK4*bPWHAE+-yRTVoVusT6R4p*GbExU!q>+tIX_n~F(p4KRj(qq0H~UQ z!N$I#ATc>RwL~E)H9a%WR{j0%{pt#tDYok2roINg1e6A&sHg;q@=(~ zU%$M(T(8_%FTW^V-_X+1Qs2Nx-^fT8s6w~6GOr}DLN~8i8ESw_YH@N=WpeUOa4p`HQA$so3se^F*C&=nvn?F?*s0*j!@*M-yp8L;FvQdm6X5z5QI#Kl5Ad_czy>6COl*U|L$bI(mcS)aEOJ$Z${N38Oer~vsuffB^e&bFg6&#(1wZic{@IbH`Lzm z-~PjOTdwuJs@q5GnJpO|W-#n|e)#K&?rxR`R{Xb$Z_WlXr1)=qzPXs2<$(?VwfBkZ z{e&1eghvtaA<*#IuHU>ur@C|!L(JoYRd&@SjSMl*8LRcGizfnu`!YDV84lU?nXBE{ zcJ_9|?YF<}^5W(&DEJ_uoIBfR>DO^S@Dr|QjPPT)U}nY;+|64qCC#wo^poi)Z?x|H zq1P~fhRvVToD8?zuD?C1*--9N|9ia`!!(Y9z{DTnnhf477AuYZtQKofWvW?h@@KUK zh_TS@hyF>|{Tz%}57v9?|ML)dwwm9Dw6qLSZF4VPL;j>tLHEBiAOTNTKbLh*2~7Z_ Cre)Ir literal 129 zcmWN{K@!3s3;@78uiyig5|DKIn~(%yMx`UzgRi%zz3i!<(fZrgIghbB_h|F>EMvK> z-@I^txp64F)0^JJj!JM(`^MzGXHm{6B_&#OE))bphFB0$IUr`F4OB{r03z4+L{VjB LF{Ay|`T%JD5~3+n diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/Mission_Icon_0.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/Mission_Icon_0.png index 17c51312045ec2c449f8fe07cac3389171326b0e..322c2fb005c7e49011bebb80e349f7097709c071 100644 GIT binary patch literal 11563 zcmdsd_cvWn`0hT4Btj6KAPCWG^r%7f-Z^S?B6@;@MDIlJy|?JSMD#Ao(T_wgM{mc$ zx##n}KiqZygnMVL*?ab^nOX15JNunyp7#w`SN(v8Lx}?b0G@)pj3xkp0{+WSu+cSz zgN@zj7syTXgEVMynB5=!@$|F2fg1okBl<6cfb>jq0AQa|kde~{pl&N8G$8p|;}bsQQyQ$|Xf=7WD_Xd>_X?w@zrQ*V=Vg^Z02ia;J4?#qCHe zC$`~&9p*D3W|LD7UGjl9Leo>xLjJ#y0+^=31OQ-5xcU?qX!*MekZZM(f(SaO0L!SV zz?sEw*BH5vf<)Tl`#r#~aI+S?FaWvKg&5UP=f@rR00&)T{mkhg+1jH3Qgis2^HNJ4 zGVi*wCk$of!A}k^$mA z%iz|Aw~L1vKFK>drZo3=zZ| zVos9f{?ZrSX&TpacX|eq#SI|D{WYavzjJ-;!S;|pX?g$>ZF1aP#6VAMFcW-&Eb+Y2 zhfaOVm@ld(Bsa)Rco*r)yB~D)21YaNRGzkm&|+itS*xG?NdrvDRA!y^<;?|u@MSq$ ztsiaYLnai2oDIBEqr#KSyV6?TDex}$o_}*>B?jaw=!+K6i-+V9)N#_crZ+6GHzypl z(f3V}Vyc&B%?{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!9oC5l|`!;9aKd-Re_a3m{aFK#}alr3&m~1j}~@D7JC{ ML?!*l8qo)*{=S(ewg3PC From 7e88b5ccfe233decaa88c6aa2fa835f206d67bc9 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 28 Nov 2025 19:56:44 +0900 Subject: [PATCH 3/4] [add] CCT Adjust --- Jusin154_Team3D/Client/Private/Player.cpp | 3 +-- Jusin154_Team3D/Engine/Private/Character_Controller.cpp | 8 ++++---- Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp | 1 - Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp | 5 +++-- Jusin154_Team3D/Engine/Public/Character_Controller.h | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index a631dba9d..4adb19160 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -110,7 +110,6 @@ void CPlayer::Update(_float fTimeDelta) m_pFSM->Update_State(fTimeDelta); - m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); @@ -127,7 +126,7 @@ void CPlayer::Update(_float fTimeDelta) void CPlayer::Late_Update(_float fTimeDelta) { - m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position()); + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 11d05e60b..800c43a40 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -159,7 +159,7 @@ void CCharacter_Controller::Move(_float fTimeDelta) const PSX::PxObstacleContext* pPxObstacles = { nullptr }; // 캐릭터가 충돌해야할 추가적인 장애물 객체?, 닿은 장애물은 캐시된다? if (true == m_bGravity) { - m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f)); + m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -3.5f * fTimeDelta, 0.f, 0.f)); } XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentMomentum()); @@ -182,10 +182,10 @@ _vector CCharacter_Controller::Get_Position() return XMVectorSet((_float)pxVPos.x, (_float)pxVPos.y, (_float)pxVPos.z, 1.f); } -_float3 CCharacter_Controller::Get_FootPosition() +_vector CCharacter_Controller::Get_FootPosition() { PSX::PxExtendedVec3 pxLVecfootPos = m_pController->getFootPosition(); - return { (_float)pxLVecfootPos.x, (_float)pxLVecfootPos.y, (_float)pxLVecfootPos.z }; + return XMVectorSet((_float)pxLVecfootPos.x, (_float)pxLVecfootPos.y, (_float)pxLVecfootPos.z, 1.f ); } HRESULT CCharacter_Controller::Initialize_Prototype() @@ -372,7 +372,7 @@ void CCharacter_Controller::Describe_Entity() GUIHelpMarker("A capsule is affected by its lower sphere and tends to generate an up vector on steps.\nIn eEASY, the up vector is combined with the step offset, allowing easier climbing; in eCONSTRAINED, the up vector is removed during step detection and only the step offset is used."); } } - + GUI::Text("%.1f", cosf(m_fSlopeLimit)); GUI::SameLine(); GUI::SliderFloat("m_fSlopeLimit", &m_fSlopeLimit, 0.0f, 1.f); if (GUI::SliderFloat3("Volume", (_float*)&vVolume, 0.1f, 10.f, "%.2f")) { Modify_Volume(vVolume); }GUIHelpMarker("Box uses vSize; Capsule uses x->fRadius, y->fHeight.\nThe capsule's fHeight is likely the distance from the lower sphere center to the upper sphere center."); diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 41318b3e6..da35fb0ae 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -133,7 +133,6 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody m_HeightFieldGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry); } break; - break; default: assert(false); break; diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp index a1dbe15c3..67b8a6fe3 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp @@ -396,12 +396,13 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey) for (_uint iRow = 0; iRow < m_iNumVerticesZ; ++iRow) { for (_uint iCol = 0; iCol < m_iNumVerticesX; ++iCol) { - _uint iIndex = iRow * m_iNumVerticesZ + iCol; + _uint iIndex = iRow * m_iNumVerticesX + iCol; + _uint iPhysXIndex = iCol * m_iNumVerticesZ + iRow; _float fRealHeight = m_HeigthValues[iIndex]; PSX::PxI16 iClampHeight = (PSX::PxI16)(PSX::PxClamp(fRealHeight, -32767.f, 32767.f)); - PSX::PxHeightFieldSample& pxSample = pxSamples[iIndex]; + PSX::PxHeightFieldSample& pxSample = pxSamples[iPhysXIndex]; pxSample.height = iClampHeight; pxSample.materialIndex0 = pxSample.materialIndex1 = 0; diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h index 18aed237d..beae886b9 100644 --- a/Jusin154_Team3D/Engine/Public/Character_Controller.h +++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h @@ -54,7 +54,7 @@ class ENGINE_DLL CCharacter_Controller final : void Move(_float fTimeDelta); // 이동 // 충돌보정만 있음, void Set_Position(_fvector vNewPos); // 순간이동 _vector Get_Position(); - _float3 Get_FootPosition(); // ContactOffset이 고려된 발바닥 위치( 실제보다 바닥 위치가 더 아래에 위치한다는 뜻 ) + _vector Get_FootPosition(); // ContactOffset이 고려된 발바닥 위치( 실제보다 바닥 위치가 더 아래에 위치한다는 뜻 ) void Resize_Volume(_float fHeight); // 높이를 수정하고 바닥에 붙임 void Modify_Volume(_float3 fVolume); @@ -71,7 +71,7 @@ class ENGINE_DLL CCharacter_Controller final : PSX::PxController* m_pController = { nullptr }; CTransform* m_pTransform = { nullptr }; _bool m_bAutoStepping = { false }; - _float m_fSlopeLimit = { 0.f }; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 ) + _float m_fSlopeLimit = { 0.5f/*0~1*/}; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 ) PhsXUserData m_tagData = {}; PSX::PxControllerCollisionFlags m_eBeforeCollisionFlags = {}; From 2f98337cbbb5691b966c6d9a815b97d1401107a2 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 28 Nov 2025 20:40:47 +0900 Subject: [PATCH 4/4] =?UTF-8?q?[add]=20CCT=20=EB=B3=B4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Default/Client.cpp | 2 +- Jusin154_Team3D/Client/Default/Client.vcxproj | 4 +-- Jusin154_Team3D/Client/Private/NomalJap.cpp | 6 ++-- Jusin154_Team3D/Client/Private/Player.cpp | 2 +- .../Engine/Private/Character_Controller.cpp | 5 ++-- .../Engine/Private/PhysX_Manager.cpp | 30 +++++++++++++------ .../Engine/Public/Character_Controller.h | 5 ++-- Jusin154_Team3D/Engine/Public/PhysX_Manager.h | 6 ++++ 8 files changed, 41 insertions(+), 19 deletions(-) diff --git a/Jusin154_Team3D/Client/Default/Client.cpp b/Jusin154_Team3D/Client/Default/Client.cpp index 149f8d4c1..905d6a176 100644 --- a/Jusin154_Team3D/Client/Default/Client.cpp +++ b/Jusin154_Team3D/Client/Default/Client.cpp @@ -25,7 +25,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, { #ifdef _DEBUG _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); - //_CrtSetBreakAlloc(1181); + _CrtSetBreakAlloc(45489776); //_CrtSetBreakAlloc(1182); //_CrtSetBreakAlloc(1183); //_CrtSetBreakAlloc(1184); diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index e1de4a5ba..a9d8abb8e 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -127,7 +127,7 @@ cd /d "$(SolutionDir)" -call Update_Shaders.bat +call Update_Resources.bat @@ -154,7 +154,7 @@ call Update_Shaders.bat cd /d "$(SolutionDir)" -call Update_Shaders.bat +call Update_Resources.bat diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index 73ae777d4..7d9d54370 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -232,8 +232,10 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) Get_PartObject()->Set_Visible(false); Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); - m_pPhysHitBox->Set_Dead(); - SAFE_RELEASE(m_pPhysHitBox); + if (nullptr != m_pPhysHitBox) { + m_pPhysHitBox->Set_Dead(); + SAFE_RELEASE(m_pPhysHitBox); + } } void CNomalJap::Free() diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 5919a3235..760b01efc 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -253,7 +253,7 @@ HRESULT CPlayer::Ready_Components() Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER); Desc.pTransform = m_pTransformCom; Desc.eBodyType = ACTOR::CAPSULE; - Desc.fContactOffset = 0.1f; + Desc.fContactOffset = 0.17f; Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; Desc.bAutoStepping = { false }; Desc.fStepOffset = { 0.05f }; diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 800c43a40..1fff47315 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -159,7 +159,7 @@ void CCharacter_Controller::Move(_float fTimeDelta) const PSX::PxObstacleContext* pPxObstacles = { nullptr }; // 캐릭터가 충돌해야할 추가적인 장애물 객체?, 닿은 장애물은 캐시된다? if (true == m_bGravity) { - m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -3.5f * fTimeDelta, 0.f, 0.f)); + m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * m_fGravity * fTimeDelta, 0.f, 0.f)); } XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentMomentum()); @@ -372,7 +372,8 @@ void CCharacter_Controller::Describe_Entity() GUIHelpMarker("A capsule is affected by its lower sphere and tends to generate an up vector on steps.\nIn eEASY, the up vector is combined with the step offset, allowing easier climbing; in eCONSTRAINED, the up vector is removed during step detection and only the step offset is used."); } } - GUI::Text("%.1f", cosf(m_fSlopeLimit)); GUI::SameLine(); GUI::SliderFloat("m_fSlopeLimit", &m_fSlopeLimit, 0.0f, 1.f); + GUI::Text("%.1f", XMConvertToDegrees(acosf(m_fSlopeLimit))); GUI::SameLine(); GUI::SliderFloat("m_fSlopeLimit", &m_fSlopeLimit, 0.0f, 1.f); + GUI::SliderFloat("m_fGravity_Multiplier", &m_fGravity, 0.0f, 3.f); if (GUI::SliderFloat3("Volume", (_float*)&vVolume, 0.1f, 10.f, "%.2f")) { Modify_Volume(vVolume); }GUIHelpMarker("Box uses vSize; Capsule uses x->fRadius, y->fHeight.\nThe capsule's fHeight is likely the distance from the lower sphere center to the upper sphere center."); diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index da35fb0ae..811af0234 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -534,16 +534,20 @@ HRESULT CPhysX_Manager::Initialize() m_pMaterials.push_back(m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f)); // m_pScene->overlap();?????? +#ifdef EDITOR_PROJECT - PlaneData.eKind = PHYSX_KIND::BODY_STATIC; - PlaneData.iSubKind = UINT_MAX; - PlaneData.pOwner = nullptr; - PlaneData.pBody = nullptr; + if (true == m_bDebugCreatePlane) { + PlaneData.eKind = PHYSX_KIND::BODY_STATIC; + PlaneData.iSubKind = UINT_MAX; + PlaneData.pOwner = nullptr; + PlaneData.pBody = nullptr; - PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]); - pGroundPlane->userData = &PlaneData; - pGroundPlane->setName("PHYSX_MANAGER_PLANE"); - m_pScene->addActor(*pGroundPlane);; + PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]); + pGroundPlane->userData = &PlaneData; + pGroundPlane->setName("PHYSX_MANAGER_PLANE"); + m_pScene->addActor(*pGroundPlane); + } +#endif return S_OK; } @@ -582,7 +586,7 @@ CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContex void CPhysX_Manager::Free() { ClearScene(); - + for (auto& pMeshes : m_TriangleMeshes) { pMeshes.second->release(); } m_TriangleMeshes.clear(); @@ -591,6 +595,14 @@ void CPhysX_Manager::Free() Safe_Delete(pGeometry.second); } m_TriangleMeshGeometry.clear(); + for (auto& pGeometry : m_HeightFieldGeometry) { + Safe_Delete(pGeometry.second); + } m_HeightFieldGeometry.clear(); + + for (auto& pField : m_HeightFields) { + pField.second->release(); + } m_HeightFields.clear(); + if (nullptr != m_pCookingParam) { Safe_Delete(m_pCookingParam); } diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h index beae886b9..44f4fe536 100644 --- a/Jusin154_Team3D/Engine/Public/Character_Controller.h +++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h @@ -69,9 +69,10 @@ class ENGINE_DLL CCharacter_Controller final : private: ACTOR m_eBodyType = { ACTOR::END }; PSX::PxController* m_pController = { nullptr }; - CTransform* m_pTransform = { nullptr }; + CTransform* m_pTransform = { nullptr }; _bool m_bAutoStepping = { false }; - _float m_fSlopeLimit = { 0.5f/*0~1*/}; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 ) + _float m_fGravity = { 0.129f }; + _float m_fSlopeLimit = { 0.69f/*0~1*/}; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 ) PhsXUserData m_tagData = {}; PSX::PxControllerCollisionFlags m_eBeforeCollisionFlags = {}; diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h index c6023f59a..9f6e97662 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h +++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h @@ -89,7 +89,13 @@ class CPhysX_Manager final : public CBase map<_wstring, PSX::PxHeightField*> m_HeightFields = {}; map<_wstring, PSX::PxHeightFieldGeometry*> m_HeightFieldGeometry = {}; + +#ifdef EDITOR_PROJECT + _bool m_bDebugCreatePlane = { true }; PhsXUserData PlaneData = {}; +#else + _bool m_bDebugCreatePlane = { false }; +#endif // EDITOR_PROJECT vector m_pMaterials = { }; _uint m_iNumLevel = {};