[add] ExceptBin
This commit is contained in:
@@ -354,23 +354,20 @@ void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex)
|
||||
_vector CCamPosition_Shoulder::Get_ShoulderGlobalPos()
|
||||
{
|
||||
// Right/Left 숄더를 로컬 X 부호로 결정
|
||||
_float shoulderSideSign = (true == m_bRightShoulderActive) ? 1.f : -1.f;
|
||||
_float fShoulderSide = (true == m_bRightShoulderActive) ? 1.f : -1.f;
|
||||
|
||||
_float3 shoulderLocalPosition = m_vShoulderLocalPos;
|
||||
shoulderLocalPosition.x *= shoulderSideSign;
|
||||
_float3 vShoulderLocalPos = m_vShoulderLocalPos;
|
||||
vShoulderLocalPos.x *= fShoulderSide;
|
||||
|
||||
_vector shoulderLocalOffset = XMLoadFloat3(&shoulderLocalPosition);
|
||||
_vector vShoulderLocalOffset = XMLoadFloat3(&vShoulderLocalPos);
|
||||
|
||||
// 카메라 회전(현재 마우스로 누적된 pitch/yaw)
|
||||
_vector cameraRotationQuaternion = XMQuaternionRotationRollPitchYaw(
|
||||
_vector vCameraRotQ = XMQuaternionRotationRollPitchYaw(
|
||||
XMConvertToRadians(m_vAccRotDegrees.x + m_vAccRealDegrees.x),
|
||||
XMConvertToRadians(m_vAccRotDegrees.y + m_vAccRealDegrees.y), 0.f
|
||||
);
|
||||
|
||||
// 카메라 로컬 오프셋을 카메라 회전에 맞춰 월드로 회전
|
||||
_vector shoulderWorldOffset = XMVector3Rotate(shoulderLocalOffset, cameraRotationQuaternion);
|
||||
|
||||
return shoulderWorldOffset;
|
||||
return XMVector3Rotate(vShoulderLocalOffset, vCameraRotQ);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
||||
case TIMESOCKET_FUNC::ROTATION_LERP:
|
||||
{
|
||||
Clear_Lerp_Rotation();
|
||||
Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform);
|
||||
Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform, pContents->vFlags.b[0]);
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::LOOK_AT:
|
||||
{
|
||||
@@ -352,17 +352,21 @@ void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta)
|
||||
Rotation(vRotQ);
|
||||
}
|
||||
}
|
||||
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform)
|
||||
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance)
|
||||
{
|
||||
_float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
|
||||
Start_Lerp_Rotation(fTimeMaximum, vRotQ);
|
||||
Start_Lerp_Rotation(fTimeMaximum, vRotQ, bMainTainDistance);
|
||||
|
||||
}
|
||||
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ)
|
||||
void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance)
|
||||
{
|
||||
m_bLerpRotiation = { fTimeMaximum != 0 };
|
||||
m_vLerpRotiationTimer = { 0.f, fTimeMaximum };
|
||||
XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector());
|
||||
m_vLerpRotQEnd = vRotQ;
|
||||
_vector vPos = m_pFollowTargetPart->Get_WorldPostion();
|
||||
_vector vLookPos = m_pLookTargetPart->Get_WorldPostion();
|
||||
m_fMaintainingDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos));
|
||||
}
|
||||
void CCamera_Cinematic::Clear_Lerp_Rotation()
|
||||
{
|
||||
@@ -370,6 +374,7 @@ void CCamera_Cinematic::Clear_Lerp_Rotation()
|
||||
m_vLerpRotiationTimer = {};
|
||||
m_vLerpRotQStart = {};
|
||||
m_vLerpRotQEnd = {};
|
||||
m_fMaintainingDistance = {};
|
||||
}
|
||||
void CCamera_Cinematic::Lerp_FovY(_float fTimeDelta)
|
||||
{
|
||||
@@ -427,6 +432,9 @@ void CCamera_Cinematic::Rotation(_fvector vRotQ)
|
||||
_vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ);
|
||||
|
||||
if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임
|
||||
if (true == m_bLerpRotiation) {
|
||||
fDistance = m_fMaintainingDistance;
|
||||
}
|
||||
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f));
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -254,6 +254,10 @@ void CCamera_Gaze::Describe_Entity()
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
|
||||
_float fFovYDegree = XMConvertToDegrees(m_fFovy);
|
||||
if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) {
|
||||
m_fFovy = XMConvertToRadians(fFovYDegree);
|
||||
}
|
||||
m_pTransformCom->Describe_Entity();
|
||||
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
|
||||
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
|
||||
|
||||
@@ -121,7 +121,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
m_isActiveEffectCreate = true;
|
||||
|
||||
@@ -307,6 +307,7 @@ _vector CGoblin_Mage::Get_LockOnPos()
|
||||
|
||||
void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
return;
|
||||
if (true == m_bDead) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ void CInstancedProp::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
#ifdef Bin
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
#endif // Bin
|
||||
//#ifdef Bin
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
//#endif // Bin
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Render()
|
||||
|
||||
@@ -32,10 +32,10 @@ void CLand::Late_Update(_float fTimeDelta)
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis))
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
#ifdef Bin
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
#endif // Bin
|
||||
//#ifdef Bin
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
//#endif // Bin
|
||||
for (auto& pInstanceProp : m_InstanceProps){
|
||||
pInstanceProp->Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
_bool bLoadNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bLoadNPC = true;
|
||||
bLoadNPC = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
if (true == bLoadNPC) {
|
||||
@@ -1158,8 +1158,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
isLoad_NPC = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_RandomNPC = true;
|
||||
|
||||
@@ -565,8 +565,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = true;
|
||||
isLoad_NPC = true;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = false;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
@@ -1343,7 +1343,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
TEXT("Prototype_Component_Troll_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Ranrok_Model")
|
||||
));
|
||||
}
|
||||
|
||||
@@ -89,10 +89,10 @@ void CMapObject_Render::Late_Update(_float fTimeDelta)
|
||||
m_iNumMeshe = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
#ifdef Bin
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
#endif // Bin
|
||||
//#ifdef Bin
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
//#endif // Bin
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,10 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
#if 진우
|
||||
m_isDebugMode = false; // 디버그 무적 모드
|
||||
#endif
|
||||
|
||||
#if 기무리
|
||||
m_isDebugMode = true; // 디버그 무적 모드
|
||||
#endif
|
||||
#if 나
|
||||
m_isDebugMode = true; // 디버그 무적 모드
|
||||
#endif
|
||||
|
||||
@@ -201,21 +201,21 @@ void CThestralCarriage::Trigger(CTimeSocket& Socket)
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::SET_FSMSTATE:
|
||||
{
|
||||
// if (pContents->vFlags.b[0]) {
|
||||
// m_iAnimationIndex = 0;
|
||||
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
// m_pModelCom->IsRootBone(false);
|
||||
// }
|
||||
// else if (pContents->vFlags.b[1]) {
|
||||
// m_iAnimationIndex = 1;
|
||||
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
// m_pModelCom->IsRootBone(false);
|
||||
// }
|
||||
// else if (pContents->vFlags.b[2]) {
|
||||
// m_iAnimationIndex = 2;
|
||||
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
// m_pModelCom->IsRootBone(false);
|
||||
// }
|
||||
if (pContents->vFlags.b[0]) {
|
||||
m_iAnimationIndex = 0;
|
||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
m_pModelCom->IsRootBone(false);
|
||||
}
|
||||
else if (pContents->vFlags.b[1]) {
|
||||
m_iAnimationIndex = 1;
|
||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
m_pModelCom->IsRootBone(false);
|
||||
}
|
||||
else if (pContents->vFlags.b[2]) {
|
||||
m_iAnimationIndex = 2;
|
||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
m_pModelCom->IsRootBone(false);
|
||||
}
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
|
||||
{
|
||||
|
||||
@@ -73,6 +73,10 @@ class CCamPosition_Shoulder final : public CCamPosition
|
||||
|
||||
_float2 m_vMoveLerpPositions = { };
|
||||
_float2 m_vMoveLerpTimer = { 0.f, TIMER_SHORT_LERP };
|
||||
|
||||
//_int m_iSpellFovLerp = { 0 };
|
||||
//_float3 m_vSpellFovLerpTimer = { 0.f, 1.f, 2.f };
|
||||
//_float3 m_vSpellFovLerpDegree = { 60.f, 30.f, 60.f };
|
||||
#pragma endregion
|
||||
_float2 m_vCameraShakeTimer = { 0.f, 0.3f };
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ class CCamera_Cinematic final : public CCamera
|
||||
void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans);
|
||||
void Clear_Lerp_Translation();
|
||||
void Lerp_Rotation(_float fTimeDelta);
|
||||
void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform);
|
||||
void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ);
|
||||
void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance);
|
||||
void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance);
|
||||
void Clear_Lerp_Rotation();
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ class CCamera_Cinematic final : public CCamera
|
||||
_bool m_bLerpFovY = { false };
|
||||
_float2 m_vFovYLerp = { 60.f, 60.f };
|
||||
_float2 m_vLerpFovYTimer = { };
|
||||
_float m_fMaintainingDistance = { };
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch = { nullptr };
|
||||
|
||||
@@ -294,7 +294,7 @@ class CPlayer final : public CUnit
|
||||
void Behavior_Broom_HoverEnter();
|
||||
HRESULT Behavior_Broom_HoverExitCheck(_float fTimeDelta);
|
||||
void Behavior_Broom_HoverExit();
|
||||
|
||||
|
||||
void Behavior_Broom_FlyEnter();
|
||||
HRESULT Behavior_Broom_FlyExitCheck(_float fTimeDelta);
|
||||
void Behavior_Broom_FlyExit();
|
||||
|
||||
Reference in New Issue
Block a user