[add] camera priority debugger
This commit is contained in:
@@ -58,7 +58,9 @@ void CCamera_Cinematic::Late_Update(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
HRESULT CCamera_Cinematic::Render() {
|
HRESULT CCamera_Cinematic::Render() {
|
||||||
|
if (FAILED(Bind_ShaderResources())) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
RENDER eType = m_pGameInstance->Get_CurrentRenderPass();
|
RENDER eType = m_pGameInstance->Get_CurrentRenderPass();
|
||||||
if (RENDER::NONBLEND == eType) {
|
if (RENDER::NONBLEND == eType) {
|
||||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
@@ -451,6 +453,12 @@ void CCamera_Cinematic::Free()
|
|||||||
void CCamera_Cinematic::Describe_Entity()
|
void CCamera_Cinematic::Describe_Entity()
|
||||||
{
|
{
|
||||||
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||||
|
_int iPriority = m_iPriority;
|
||||||
|
size_t iAddress = (size_t)this;
|
||||||
|
_string strHeader = "CINEMATIC_CAMERA_Priority##" + to_string(iAddress);
|
||||||
|
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||||
|
m_iPriority = iPriority;
|
||||||
|
}
|
||||||
if (GUI::CollapsingHeader("Camera_Cinematic_Describe")) {
|
if (GUI::CollapsingHeader("Camera_Cinematic_Describe")) {
|
||||||
if (GUI::SmallButton("Trigger_RanrokIntro")) {
|
if (GUI::SmallButton("Trigger_RanrokIntro")) {
|
||||||
_string strCutSceneName = "RanrokIntro";
|
_string strCutSceneName = "RanrokIntro";
|
||||||
|
|||||||
@@ -197,6 +197,12 @@ void CCamera_Debug::Describe_Entity()
|
|||||||
}
|
}
|
||||||
GUI::End();
|
GUI::End();
|
||||||
GUI::Begin("CAMERA");
|
GUI::Begin("CAMERA");
|
||||||
|
_int iPriority = m_iPriority;
|
||||||
|
size_t iAddress = (size_t)this;
|
||||||
|
_string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress);
|
||||||
|
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||||
|
m_iPriority = iPriority;
|
||||||
|
}
|
||||||
if (GUI::CollapsingHeader("DebugCamera")){
|
if (GUI::CollapsingHeader("DebugCamera")){
|
||||||
m_pTransformCom->Describe_Entity();
|
m_pTransformCom->Describe_Entity();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -247,6 +247,12 @@ void CCamera_Gaze::Free()
|
|||||||
void CCamera_Gaze::Describe_Entity()
|
void CCamera_Gaze::Describe_Entity()
|
||||||
{
|
{
|
||||||
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||||
|
_int iPriority = m_iPriority;
|
||||||
|
size_t iAddress = (size_t)this;
|
||||||
|
_string strHeader = "GAZE_CAMERA_Priority##" + to_string(iAddress);
|
||||||
|
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||||
|
m_iPriority = iPriority;
|
||||||
|
}
|
||||||
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
|
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
|
||||||
m_pTransformCom->Describe_Entity();
|
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_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
#include "Light_Main.h"
|
#include "Light_Main.h"
|
||||||
#include "Camera_Debug.h"
|
#include "Camera_Debug.h"
|
||||||
#include "InfoInstance.h"
|
#include "InfoInstance.h"
|
||||||
#include "Camera_Model.h"
|
|
||||||
#include "UI_Manager.h"
|
#include "UI_Manager.h"
|
||||||
#include "Layer.h"
|
#include "Layer.h"
|
||||||
#include "SkyBox.h"
|
#include "SkyBox.h"
|
||||||
@@ -897,26 +896,6 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
|||||||
|
|
||||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
||||||
}
|
}
|
||||||
{
|
|
||||||
CCamera_Model::CAMERA_MODEL_DESC Camera_Desc{};
|
|
||||||
Camera_Desc.fSpeedPerSec = 5.f;
|
|
||||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
|
||||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
|
||||||
Camera_Desc.fNear = 0.1f;
|
|
||||||
Camera_Desc.fFar = 500.f;
|
|
||||||
Camera_Desc.pCameraKey = CAMERA_MODEL;
|
|
||||||
Camera_Desc.iPriority = 49;
|
|
||||||
Camera_Desc.pFollowTarget = { nullptr };
|
|
||||||
Camera_Desc.pLookTarget = { nullptr };
|
|
||||||
|
|
||||||
CCamera_Model* pCamera = { nullptr };
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Model>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_MODEL);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
|||||||
@@ -46,10 +46,6 @@
|
|||||||
#include "Ranrok.h"
|
#include "Ranrok.h"
|
||||||
#include "RandomNpc.h"
|
#include "RandomNpc.h"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
#include "Camera_Model.h"
|
|
||||||
#endif // _DEBUG
|
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -3762,14 +3758,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
if (FAILED(m_pGameInstance->Add_Prototype<CRandomNpc>(g_iStaticLevel, CRandomNpc::Create(m_pDevice, m_pContext)))) {
|
if (FAILED(m_pGameInstance->Add_Prototype<CRandomNpc>(g_iStaticLevel, CRandomNpc::Create(m_pDevice, m_pContext)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Model>(g_iStaticLevel, CCamera_Model::Create(m_pDevice, m_pContext)))) {
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
|
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
|
|||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
m_iAnimationIndex = 2;
|
||||||
|
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||||
//vector<pair<_uint, _bool>> chain =
|
//vector<pair<_uint, _bool>> chain =
|
||||||
//{
|
//{
|
||||||
// { 0, false },
|
// { 0, false },
|
||||||
@@ -72,19 +74,6 @@ void CThestralCarriage::Priority_Update(_float fTimeDelta)
|
|||||||
void CThestralCarriage::Update(_float fTimeDelta)
|
void CThestralCarriage::Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
switch (m_iAnimationIndex)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-480.036f, 200.166f, -436.154f, 1.f));
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-480.036f, 200.166f, -436.154f, 1.f));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
@@ -213,21 +202,21 @@ void CThestralCarriage::Trigger(CTimeSocket& Socket)
|
|||||||
} break;
|
} break;
|
||||||
case TIMESOCKET_FUNC::SET_FSMSTATE:
|
case TIMESOCKET_FUNC::SET_FSMSTATE:
|
||||||
{
|
{
|
||||||
if (pContents->vFlags.b[0]) {
|
// if (pContents->vFlags.b[0]) {
|
||||||
m_iAnimationIndex = 0;
|
// m_iAnimationIndex = 0;
|
||||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||||
m_pModelCom->IsRootBone(false);
|
// m_pModelCom->IsRootBone(false);
|
||||||
}
|
// }
|
||||||
else if (pContents->vFlags.b[1]) {
|
// else if (pContents->vFlags.b[1]) {
|
||||||
m_iAnimationIndex = 1;
|
// m_iAnimationIndex = 1;
|
||||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||||
m_pModelCom->IsRootBone(false);
|
// m_pModelCom->IsRootBone(false);
|
||||||
}
|
// }
|
||||||
else if (pContents->vFlags.b[2]) {
|
// else if (pContents->vFlags.b[2]) {
|
||||||
m_iAnimationIndex = 2;
|
// m_iAnimationIndex = 2;
|
||||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||||
m_pModelCom->IsRootBone(false);
|
// m_pModelCom->IsRootBone(false);
|
||||||
}
|
// }
|
||||||
} break;
|
} break;
|
||||||
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
|
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user