diff --git a/Jusin154_Team3D/.editorconfig b/Jusin154_Team3D/.editorconfig index 3c2b1f208..2161bb656 100644 --- a/Jusin154_Team3D/.editorconfig +++ b/Jusin154_Team3D/.editorconfig @@ -1,5 +1,18 @@ #sln +# h 저장형ì‹� 지정 +[*.h] +charset = utf-8 +insert_final_newline = true +end_of_line = crlf + +# cpp 저장형ì‹� 지정 +[*.cpp] +charset = utf-8 +insert_final_newline = true +end_of_line = crlf + + # hlsl 저장형ì‹� 지정 [*.hlsl] charset = utf-8 diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index cdf549911..6ed63d2fe 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -1117,4 +1117,4 @@ void CMapObject_Manager::Free() void CMapObject_Manager::Describe_Entity() { -} \ No newline at end of file +} diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 511a48fb4..2cdd0b66f 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -20,19 +20,19 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #pragma endregion #pragma region Animation - void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // 애니메ì�´ì…˜ì�„ 다른 ì�¸ë�±ìŠ¤ë¡œ 변경함 - _bool Play_Animation(_float fTimeDelta); // 애니메ì�´ì…˜ì—� ë�¸íƒ€íƒ€ìž„ì�„ 넣어줌 - void RefreshAnim(); // 애님ì�„ 현재 애님ì�˜ 초기ìƒ�태로 ë�˜ë�Œë¦¼ + void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // ¾Ö´Ï¸ÞÀ̼ÇÀ» ´Ù¸¥ À妽º·Î º¯°æÇÔ + _bool Play_Animation(_float fTimeDelta); // ¾Ö´Ï¸ÞÀ̼ǿ¡ µ¨Å¸Å¸ÀÓÀ» ³Ö¾îÁÜ + void RefreshAnim(); // ¾Ö´ÔÀ» ÇöÀç ¾Ö´ÔÀÇ Ãʱâ»óÅ·ΠµÇµ¹¸² void Set_AnimationIndex(_uint iIndex, _bool isLoop = true); - void Stop_Animation(); // 애니메ì�´ì…˜ì�„ ì •ì§€ (초기ìƒ�태로) + void Stop_Animation(); // ¾Ö´Ï¸ÞÀ̼ÇÀ» Á¤Áö (Ãʱâ»óÅ·Î) _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } _bool IsFinishedLerp() const { return m_bIsFinishedLerp; } _float Get_AnimProgressRatio(); _int Get_AnimProgressPostion(const char* pAnimChannelName); _float Get_AnimEstimatedDuration(); void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition); - void Set_AnimPauseState(_bool bValue);// 애님ì�„ 현재ìƒ�태로 ì •ì§€ - void ReallocateResources(class CTransform* pTransform = nullptr); // 애님 ì�´ë�™ì�˜ 대ìƒ� 트랜스í�¼(ì�´ë�™ì‹œì¼œì•¼í•  트랜스í�¼)ì�„ 재지정함 + void Set_AnimPauseState(_bool bValue);// ¾Ö´ÔÀ» ÇöÀç»óÅ·ΠÁ¤Áö + void ReallocateResources(class CTransform* pTransform = nullptr); // ¾Ö´Ô À̵¿ÀÇ ´ë»ó Æ®·£½ºÆû(À̵¿½ÃÄѾßÇÒ Æ®·£½ºÆû)À» ÀçÁöÁ¤ÇÔ void Set_CurrentTrackPosition(_float TrackPosition); const _char* Get_AnimList(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } @@ -54,7 +54,7 @@ class ENGINE_DLL CModel final : public CComponent const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; _int Get_RootBoneIndex() const { return m_iRootBoneIndex; } void Set_RootBoneIndex(_int iIndex) { m_iRootBoneIndex = iIndex; } -static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 본ì�˜ 벡터와 ì�´ë¦„ì�„ 넘겨주면 ì�¸ë�±ìŠ¤ë¥¼ 넘겨줌 ( n 순회 ) +static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // º»ÀÇ º¤ÅÍ¿Í À̸§À» ³Ñ°ÜÁÖ¸é À妽º¸¦ ³Ñ°ÜÁÜ ( n ¼øÈ¸ ) _int Get_BoneIndex(const _char* pBoneName) const; _matrix Get_BoneMatrix(_uint iBoneIndex); #pragma endregion @@ -74,7 +74,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / HRESULT Ready_Materials_FromFile(const aiScene* pAIScene, const _char* pModelFilePath); HRESULT Ready_Animations(const aiScene* pAIScene); HRESULT Ready_Bones(const aiNode* pAINode, _int iParentIndex); - // ë°”ì�´ë„ˆë¦¬ + // ¹ÙÀ̳ʸ® _bool SaveAssimpModel(const _char* filename); _int SaveNodeRecursive(const aiNode* pAINode, std::vector& outNodes, _int parentIndex); // @@ -88,49 +88,49 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / #endif private: - MODEL m_eType = {}; // 모ë�¸ì�˜ 타입 - _float4x4 m_PreTransformMatrix = {}; // 사전ì—� 루트본ì—� 곱해줄 매트릭스 + MODEL m_eType = {}; // ¸ðµ¨ÀÇ Å¸ÀÔ + _float4x4 m_PreTransformMatrix = {}; // »çÀü¿¡ ·çÆ®º»¿¡ °öÇØÁÙ ¸ÅÆ®¸¯½º - _uint m_iNumMeshes = {}; // 메쉬ì�˜ 갯수 - vector m_Meshes; // 메쉬ì�˜ 벡터 - _uint m_iNumPhysXMeshes = {}; // 피ì§�스 메쉬ì�˜ 갯수 - vector m_TriMeshes = {}; // 피ì§�스 메쉬ì�˜ 갯수 + _uint m_iNumMeshes = {}; // ¸Þ½¬ÀÇ °¹¼ö + vector m_Meshes; // ¸Þ½¬ÀÇ º¤ÅÍ + _uint m_iNumPhysXMeshes = {}; // ÇÇÁ÷½º ¸Þ½¬ÀÇ °¹¼ö + vector m_TriMeshes = {}; // ÇÇÁ÷½º ¸Þ½¬ÀÇ °¹¼ö - _uint m_iNumMaterials = {}; // 머테리얼ì�˜ 갯수 - vector m_Materials; // 머테리얼ì�˜ 벡터 + _uint m_iNumMaterials = {}; // ¸ÓÅ׸®¾óÀÇ °¹¼ö + vector m_Materials; // ¸ÓÅ׸®¾óÀÇ º¤ÅÍ - vector m_Bones; // 본ì�˜ 벡터, 정렬순서는 루트본부터 트리ì�˜ 마지막 노드까지 + vector m_Bones; // º»ÀÇ º¤ÅÍ, Á¤·Ä¼ø¼­´Â ·çÆ®º»ºÎÅÍ Æ®¸®ÀÇ ¸¶Áö¸· ³ëµå±îÁö - _int m_iCurrentAnimIndex = { -1 }; // 현재 ì„ íƒ�ë�œ 애니메ì�´ì…˜ ( m_Animationsì�˜ ì�¸ë�±ìФ ) - _uint m_iNumAnimations = {}; // 애니메ì�´ì…˜ì�˜ 종류 - _bool m_bIsLoop = { false }; // 루프애니메ì�´ì…˜ì�¸ì§€ - _bool m_bIsFinishedAnim = { false }; // 대ìƒ� 애니메ì�´ì…˜ì�´ ë��났는지 - _bool m_bIsFinishedLerp = { false }; // 럴프 애니메ì�´ì…˜ì�´ ë��났는지 + _int m_iCurrentAnimIndex = { -1 }; // ÇöÀç ¼±ÅÃµÈ ¾Ö´Ï¸ÞÀÌ¼Ç ( m_AnimationsÀÇ À妽º ) + _uint m_iNumAnimations = {}; // ¾Ö´Ï¸ÞÀ̼ÇÀÇ Á¾·ù + _bool m_bIsLoop = { false }; // ·çÇÁ¾Ö´Ï¸ÞÀ̼ÇÀÎÁö + _bool m_bIsFinishedAnim = { false }; // ´ë»ó ¾Ö´Ï¸ÞÀ̼ÇÀÌ ³¡³µ´ÂÁö + _bool m_bIsFinishedLerp = { false }; // ·²ÇÁ ¾Ö´Ï¸ÞÀ̼ÇÀÌ ³¡³µ´ÂÁö _bool m_bPlayAnim = { true }; - vector m_Animations; // 애니메ì�´ì…˜ì�˜ 벡터, + vector m_Animations; // ¾Ö´Ï¸ÞÀ̼ÇÀÇ º¤ÅÍ, - class CLerpAnim* m_pLerpAnim = { nullptr }; // 럴프전용 애니메ì�´ì…˜ + class CLerpAnim* m_pLerpAnim = { nullptr }; // ·²ÇÁÀü¿ë ¾Ö´Ï¸ÞÀÌ¼Ç - _int m_iRootBoneIndex = { -1 }; // 루트본ì�˜ ì�¸ë�±ìФ - _matrix m_PrevAnimationMatrix = XMMatrixIdentity(); // 루트본ì�˜ ì�´ì „ 위치 - _matrix m_DeltaAnimationMatrix = {}; // 루트본ì�˜ ë�¸íƒ€ì• ë‹ˆë©”ì�´ì…˜ - class CTransform* m_pTransform = { nullptr }; // 모ë�¸ 대ìƒ�ì�˜ 트랜스í�¼ + _int m_iRootBoneIndex = { -1 }; // ·çÆ®º»ÀÇ À妽º + _matrix m_PrevAnimationMatrix = XMMatrixIdentity(); // ·çÆ®º»ÀÇ ÀÌÀü À§Ä¡ + _matrix m_DeltaAnimationMatrix = {}; // ·çÆ®º»ÀÇ µ¨Å¸¾Ö´Ï¸ÞÀÌ¼Ç + class CTransform* m_pTransform = { nullptr }; // ¸ðµ¨ ´ë»óÀÇ Æ®·£½ºÆû - // ë°”ì�´ë„ˆë¦¬ + // ¹ÙÀ̳ʸ® SaveModel* m_pSaveModel = { nullptr }; list m_SaveModel; // private: - // ë°”ì�´ë„ˆë¦¬ + // ¹ÙÀ̳ʸ® virtual HRESULT Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix); bool LoadData(const _char* filename); // virtual HRESULT Initialize(void* pArg) override; private: - // ë°”ì�´ë„ˆë¦¬ + // ¹ÙÀ̳ʸ® HRESULT Ready_Meshes(); HRESULT Ready_Materials(const _char* pModelFilePath); HRESULT Ready_Bones(const std::vector& allNodes, _int currentIndex, _int parentIndex); @@ -138,7 +138,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / // public: - // ë°”ì�´ë„ˆë¦¬ + // ¹ÙÀ̳ʸ® static CModel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix = XMMatrixIdentity()); // virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr); diff --git a/Jusin154_Team3D/Jusin154_Team3D.sln b/Jusin154_Team3D/Jusin154_Team3D.sln index 3030ee6cc..78e5e4dca 100644 --- a/Jusin154_Team3D/Jusin154_Team3D.sln +++ b/Jusin154_Team3D/Jusin154_Team3D.sln @@ -8,9 +8,6 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "01.Editor", "01.Editor", "{8F2ABBAF-8EC5-4CF8-8AD2-B09FB2AC9B14}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03.Engine", "03.Engine", "{C8D5274F-AC00-46C7-1F8D-E88E81087A52}" - ProjectSection(SolutionItems) = preProject - Editor\public\DummySkyBox.h = Editor\public\DummySkyBox.h - EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "98.Batch", "98.Batch", "{15C374FB-70F1-426A-AF16-1922F28ABE5D}" ProjectSection(SolutionItems) = preProject