[add] IMGUI 정리 1차
This commit is contained in:
@@ -204,33 +204,35 @@ void CBroom::Free()
|
||||
|
||||
void CBroom::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Broom")) {
|
||||
GUI::DragFloat("MaxSpeed", &m_fFlyMaxSpeed, 0.01f);
|
||||
GUI::DragFloat("Speed", &m_fSpeed, 0.01f);
|
||||
GUI::DragFloat("Accle", &m_fAccel, 0.01f);
|
||||
GUI::DragFloat("Decel", &m_fDecel, 0.01f);
|
||||
|
||||
GUI::DragFloat("MaxSpeed", &m_fFlyMaxSpeed, 0.01f);
|
||||
GUI::DragFloat("Speed", &m_fSpeed, 0.01f);
|
||||
GUI::DragFloat("Accle", &m_fAccel, 0.01f);
|
||||
GUI::DragFloat("Decel", &m_fDecel, 0.01f);
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
|
||||
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -392,15 +392,16 @@ void CCamPosition_Shoulder::Free()
|
||||
|
||||
void CCamPosition_Shoulder::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Cam_Shoulder");
|
||||
m_pTransformCom->Describe_Entity();
|
||||
GUI::Begin("CAMERA");
|
||||
if (GUI::CollapsingHeader("Cam_Shoulder")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
|
||||
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
|
||||
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
|
||||
GUI::SliderFloat("m_vFocalRatio", &m_vFocalRatio.x, 0.f, 1.f);
|
||||
GUI::SliderFloat("m_fCameraFowardDistance", &m_fCameraFowardDistance, 0.f, 4.f);
|
||||
//GUI::
|
||||
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
|
||||
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
|
||||
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
|
||||
GUI::SliderFloat("m_vFocalRatio", &m_vFocalRatio.x, 0.f, 1.f);
|
||||
GUI::SliderFloat("m_fCameraFowardDistance", &m_fCameraFowardDistance, 0.f, 4.f);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -182,30 +182,32 @@ void CCamera_Gaze::Free()
|
||||
|
||||
void CCamera_Gaze::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Camera_Gaze_Describe");
|
||||
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);
|
||||
GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z);
|
||||
GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z);
|
||||
GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp);
|
||||
if (true == m_bEnable_TransitionLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y);
|
||||
GUI::SliderFloat("TranslationTime", &m_vTransitionTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
GUI::Begin("CAMERA");
|
||||
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
|
||||
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);
|
||||
GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z);
|
||||
GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z);
|
||||
GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp);
|
||||
if (true == m_bEnable_TransitionLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y);
|
||||
GUI::SliderFloat("TranslationTime", &m_vTransitionTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
|
||||
GUI::Checkbox("LookLerp", &m_bEnable_LookLerp);
|
||||
if (true == m_bEnable_LookLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vLookLerpTime.x, m_vLookLerpTime.y);
|
||||
GUI::SliderFloat("LookTime", &m_vLookLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
GUI::Checkbox("LookLerp", &m_bEnable_LookLerp);
|
||||
if (true == m_bEnable_LookLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vLookLerpTime.x, m_vLookLerpTime.y);
|
||||
GUI::SliderFloat("LookTime", &m_vLookLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
|
||||
GUI::Checkbox("FollowLerp", &m_bEnable_FollowLerp);
|
||||
if (true == m_bEnable_FollowLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vFollowLerpTime.x, m_vFollowLerpTime.y);
|
||||
GUI::SliderFloat("FollowTime", &m_vFollowLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
GUI::Checkbox("FollowLerp", &m_bEnable_FollowLerp);
|
||||
if (true == m_bEnable_FollowLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vFollowLerpTime.x, m_vFollowLerpTime.y);
|
||||
GUI::SliderFloat("FollowTime", &m_vFollowLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -86,10 +86,6 @@ void CGoblin::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Play_Event();
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("%d", m_pCharacter_Controller->IsActive());
|
||||
GUI::Text("%f %f", m_vStunTimer.x, m_vStunTimer.y);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
{ // 세트
|
||||
@@ -489,40 +485,40 @@ void CGoblin::Free()
|
||||
|
||||
void CGoblin::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Goblin");
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Goblin")) {
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
}
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
}
|
||||
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -84,10 +84,6 @@ void CGoblin_Mage::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Play_Event();
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("%d", m_pCharacter_Controller->IsActive());
|
||||
GUI::Text("%f %f", m_vStunTimer.x, m_vStunTimer.y);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
{ // 세트
|
||||
@@ -447,40 +443,42 @@ void CGoblin_Mage::Free()
|
||||
|
||||
void CGoblin_Mage::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Goblin");
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Goblin_Mage")) {
|
||||
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
}
|
||||
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
}
|
||||
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -348,11 +348,12 @@ void CGoblin_Spector::Free()
|
||||
|
||||
void CGoblin_Spector::Describe_Entity()
|
||||
{
|
||||
|
||||
GUI::Begin("GoblinSpector");
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
GUI::DragFloat3("Scale", (_float*)&vScale);
|
||||
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("GoblinSpector")) {
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
GUI::DragFloat3("Scale", (_float*)&vScale);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,8 +39,10 @@ void CLight_Main::Priority_Update(_float fTimeDelta)
|
||||
void CLight_Main::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("Main_Light");
|
||||
m_pLightCom->Describe_Entity();
|
||||
GUI::Begin("LIGHT");
|
||||
if (GUI::CollapsingHeader("Main_Light")) {
|
||||
m_pLightCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
@@ -68,7 +68,9 @@ void CMainApp::Update(_float fTimeDelta)
|
||||
GUI::NewFrame();
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Present_TimeCost();
|
||||
GUI::Begin("SYSTEM");
|
||||
GUI::SliderFloat("fTimeMult", &g_fTimeMult, 0.01f, 4.f);
|
||||
GUI::End();
|
||||
m_pGameInstance->Update_Engine(fTimeDelta * g_fTimeMult);
|
||||
#endif // _DEBUG
|
||||
#ifndef _DEBUG
|
||||
|
||||
@@ -680,44 +680,45 @@ void CMapInfo::Free()
|
||||
|
||||
void CMapInfo::Describe_Entity()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
GUI::Begin("CLIENT_SYSTEM");
|
||||
if (GUI::CollapsingHeader("MapInfoDesc")) {
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
|
||||
GUI::Begin("MapInfoDesc");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
GUI::BeginChild("CollisonPartObjects");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
if (false == s_bReadyToCreate) {
|
||||
if (GUI::Button("Ready_StaticMeshesForPhyX_ALL")) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
GUI::BeginChild("CollisonPartObjects");
|
||||
if (false == s_bReadyToCreate) {
|
||||
if (GUI::Button("Ready_StaticMeshesForPhyX_ALL")) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (false == s_bConverted) {
|
||||
if (GUI::Button("Convert_StaticMeshesForPhyX_ALL")) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
else if (false == s_bConverted) {
|
||||
if (GUI::Button("Convert_StaticMeshesForPhyX_ALL")) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI::EndChild();
|
||||
}
|
||||
GUI::EndChild();
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -196,21 +196,25 @@ void CNPC_Ollivander::Free()
|
||||
|
||||
void CNPC_Ollivander::Describe_Entity()
|
||||
{
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -337,42 +337,47 @@ void CPlayer::Render_CameraCoordinateSystem()
|
||||
const _float fArrowLength = 2.0f;
|
||||
_vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
_float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) };
|
||||
GUI::Begin("Player_CAM_COOORD");
|
||||
GUI::Text("%d", m_LockOnInfo.pUnit);
|
||||
|
||||
GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
|
||||
GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
|
||||
GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
|
||||
GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
|
||||
|
||||
_float fButtonSize = 45.f;
|
||||
GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##2", { fButtonSize, fButtonSize });
|
||||
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
|
||||
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##8", { fButtonSize, fButtonSize });
|
||||
|
||||
GUI::Begin("CAMERA");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Player_CAM_COOORD")) {
|
||||
|
||||
GUI::Text("%d", m_LockOnInfo.pUnit);
|
||||
|
||||
GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
|
||||
GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
|
||||
GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
|
||||
GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
|
||||
|
||||
_float fButtonSize = 45.f;
|
||||
GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##2", { fButtonSize, fButtonSize });
|
||||
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
|
||||
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##8", { fButtonSize, fButtonSize });
|
||||
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
|
||||
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
|
||||
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
|
||||
//D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z })
|
||||
}
|
||||
GUI::End();
|
||||
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
|
||||
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
|
||||
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
|
||||
//D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z })
|
||||
m_Batch->DrawLine( // W
|
||||
VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
|
||||
VertexPositionColor(fArrowLength* XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
|
||||
);
|
||||
m_Batch->DrawLine( // D
|
||||
VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
|
||||
VertexPositionColor(fArrowLength* XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
|
||||
);
|
||||
m_Batch->DrawLine( // PlayerLook
|
||||
VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink)
|
||||
VertexPositionColor(fArrowLength* xmvLook, DirectX::Colors::HotPink)
|
||||
);
|
||||
|
||||
m_Batch->End();
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -612,85 +617,87 @@ void CPlayer::Free()
|
||||
|
||||
void CPlayer::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PLAYER_DESC");
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
{
|
||||
sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second);
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("PLAYER_DESC")) {
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
{
|
||||
sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second);
|
||||
|
||||
GUI::Text(label);
|
||||
}
|
||||
GUI::Text(label);
|
||||
}
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
|
||||
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed());
|
||||
|
||||
GUI::Checkbox("Render", &m_bVisible);
|
||||
GUI::Checkbox("Render", &m_bVisible);
|
||||
|
||||
GUI::Text("%d", m_iStateMask);
|
||||
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
|
||||
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
|
||||
GUI::Text("%d", m_iStateMask);
|
||||
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
|
||||
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
|
||||
#pragma region CAMERA_SHAKE
|
||||
if (false == m_bCameraShake && GUI::Button("Shake")) {
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
if (GUI::SliderFloat("m_fCameraShakeTime", &m_fCameraShakeTime, 0.125f, 0.f, "%.3f")) {
|
||||
m_vCameraShakeTimer.y = m_fCameraShakeTime;
|
||||
}
|
||||
GUI::SliderFloat("m_fCameraShakeIntense", &m_fCameraShakeIntense, 5.f, 20.f, "%.1f");
|
||||
if (false == m_bCameraShake && GUI::Button("Shake")) {
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
if (GUI::SliderFloat("m_fCameraShakeTime", &m_fCameraShakeTime, 0.125f, 0.f, "%.3f")) {
|
||||
m_vCameraShakeTimer.y = m_fCameraShakeTime;
|
||||
}
|
||||
GUI::SliderFloat("m_fCameraShakeIntense", &m_fCameraShakeIntense, 5.f, 20.f, "%.1f");
|
||||
#pragma endregion
|
||||
|
||||
_vector xmvInputDir = XMVectorZero();
|
||||
_vector xmvInputDir = XMVectorZero();
|
||||
|
||||
_vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f));
|
||||
_vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f));
|
||||
_vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f));
|
||||
_vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f));
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
xmvInputDir += xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_S))
|
||||
xmvInputDir -= xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
xmvInputDir -= xmvCamRight;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
xmvInputDir += xmvCamRight;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
xmvInputDir += xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_S))
|
||||
xmvInputDir -= xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
xmvInputDir -= xmvCamRight;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
xmvInputDir += xmvCamRight;
|
||||
|
||||
xmvInputDir = XMVector3Normalize(xmvInputDir);
|
||||
xmvInputDir = XMVector3Normalize(xmvInputDir);
|
||||
|
||||
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
|
||||
_vector xmvCurLook = XMVector4Normalize(
|
||||
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
|
||||
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
|
||||
_vector xmvCurLook = XMVector4Normalize(
|
||||
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
|
||||
|
||||
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
|
||||
_float degree = XMConvertToDegrees(vDir);
|
||||
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
|
||||
_float degree = XMConvertToDegrees(vDir);
|
||||
|
||||
GUI::Text("Angle %.2f", degree);
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
GUI::Text("Angle %.2f", degree);
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -641,16 +641,20 @@ void CTroll::Free()
|
||||
|
||||
void CTroll::Describe_Entity()
|
||||
{
|
||||
__super::Describe_Entity();
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Troll")) {
|
||||
__super::Describe_Entity();
|
||||
|
||||
_float4x4 socketMat = *m_pModelCom->Get_BoneMatrixPtr("HeadEnd");
|
||||
_float4x4 socketMat = *m_pModelCom->Get_BoneMatrixPtr("HeadEnd");
|
||||
|
||||
_string strSocket = "Socket " + to_string(socketMat._41) + to_string(socketMat._42) + to_string(socketMat._43);
|
||||
_string strSocket = "Socket " + to_string(socketMat._41) + to_string(socketMat._42) + to_string(socketMat._43);
|
||||
|
||||
GUI::Text(strSocket.c_str());
|
||||
GUI::Text(strSocket.c_str());
|
||||
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
m_pTransformCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -269,8 +269,11 @@ void CTroll_Rock::Free()
|
||||
|
||||
void CTroll_Rock::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("TrollRock");
|
||||
GUI::Checkbox("Visible", &m_bVisible);
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("TrollRock")) {
|
||||
GUI::Checkbox("Visible", &m_bVisible);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -210,27 +210,31 @@ void CTroll_Weapon::Free()
|
||||
|
||||
void CTroll_Weapon::Describe_Entity()
|
||||
{
|
||||
_float4 vPos;
|
||||
_float4 vHammerWorldPos;
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Troll_Hammer")) {
|
||||
_float4 vPos;
|
||||
_float4 vHammerWorldPos;
|
||||
|
||||
_float4 vHammerRight;
|
||||
_float4 vHammerUp;
|
||||
_float4 vHammerLook;
|
||||
_float4 vHammerPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vHammerWorldPos, Get_WorldPostion());
|
||||
_float4 vHammerRight;
|
||||
_float4 vHammerUp;
|
||||
_float4 vHammerLook;
|
||||
_float4 vHammerPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vHammerWorldPos, Get_WorldPostion());
|
||||
|
||||
XMStoreFloat4(&vHammerRight, XMLoadFloat4((_float4*)&m_HammerMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vHammerUp, XMLoadFloat4((_float4*)&m_HammerMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vHammerLook, XMLoadFloat4((_float4*)&m_HammerMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vHammerPos, XMLoadFloat4((_float4*)&m_HammerMatrix.m[3][0]));
|
||||
XMStoreFloat4(&vHammerRight, XMLoadFloat4((_float4*)&m_HammerMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vHammerUp, XMLoadFloat4((_float4*)&m_HammerMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vHammerLook, XMLoadFloat4((_float4*)&m_HammerMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vHammerPos, XMLoadFloat4((_float4*)&m_HammerMatrix.m[3][0]));
|
||||
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vHammerWorldPos, %.2f, %.2f, %.2f, %.2f", vHammerWorldPos.x, vHammerWorldPos.y, vHammerWorldPos.z, vHammerWorldPos.w);
|
||||
GUI::Text("vHammerRight, %.2f, %.2f, %.2f, %.2f", vHammerRight.x, vHammerRight.y, vHammerRight.z, vHammerRight.w);
|
||||
GUI::Text("vHammerUp, %.2f, %.2f, %.2f, %.2f", vHammerUp.x, vHammerUp.y, vHammerUp.z, vHammerUp.w);
|
||||
GUI::Text("vHammerLook, %.2f, %.2f, %.2f, %.2f", vHammerLook.x, vHammerLook.y, vHammerLook.z, vHammerLook.w);
|
||||
GUI::Text("vHammerPos, %.2f, %.2f, %.2f, %.2f", vHammerPos.x, vHammerPos.y, vHammerPos.z, vHammerPos.w);
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vHammerWorldPos, %.2f, %.2f, %.2f, %.2f", vHammerWorldPos.x, vHammerWorldPos.y, vHammerWorldPos.z, vHammerWorldPos.w);
|
||||
GUI::Text("vHammerRight, %.2f, %.2f, %.2f, %.2f", vHammerRight.x, vHammerRight.y, vHammerRight.z, vHammerRight.w);
|
||||
GUI::Text("vHammerUp, %.2f, %.2f, %.2f, %.2f", vHammerUp.x, vHammerUp.y, vHammerUp.z, vHammerUp.w);
|
||||
GUI::Text("vHammerLook, %.2f, %.2f, %.2f, %.2f", vHammerLook.x, vHammerLook.y, vHammerLook.z, vHammerLook.w);
|
||||
GUI::Text("vHammerPos, %.2f, %.2f, %.2f, %.2f", vHammerPos.x, vHammerPos.y, vHammerPos.z, vHammerPos.w);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -192,27 +192,31 @@ void CWand::Free()
|
||||
|
||||
void CWand::Describe_Entity()
|
||||
{
|
||||
_float4 vPos;
|
||||
_float4 vTipWorldPos;
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("WAND")) {
|
||||
_float4 vPos;
|
||||
_float4 vTipWorldPos;
|
||||
|
||||
_float4 vTipRight;
|
||||
_float4 vTipUp;
|
||||
_float4 vTipLook;
|
||||
_float4 vTipPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vTipWorldPos, Get_WorldPostion());
|
||||
_float4 vTipRight;
|
||||
_float4 vTipUp;
|
||||
_float4 vTipLook;
|
||||
_float4 vTipPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vTipWorldPos, Get_WorldPostion());
|
||||
|
||||
XMStoreFloat4(&vTipRight, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vTipUp, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vTipLook, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vTipPos, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]));
|
||||
XMStoreFloat4(&vTipRight, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vTipUp, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vTipLook, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vTipPos, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]));
|
||||
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vTipWorldPos, %.2f, %.2f, %.2f, %.2f", vTipWorldPos.x, vTipWorldPos.y, vTipWorldPos.z, vTipWorldPos.w);
|
||||
GUI::Text("vTipRight, %.2f, %.2f, %.2f, %.2f", vTipRight.x, vTipRight.y, vTipRight.z, vTipRight.w);
|
||||
GUI::Text("vTipUp, %.2f, %.2f, %.2f, %.2f", vTipUp.x, vTipUp.y, vTipUp.z, vTipUp.w);
|
||||
GUI::Text("vTipLook, %.2f, %.2f, %.2f, %.2f", vTipLook.x, vTipLook.y, vTipLook.z, vTipLook.w);
|
||||
GUI::Text("vTipPos, %.2f, %.2f, %.2f, %.2f", vTipPos.x, vTipPos.y, vTipPos.z, vTipPos.w);
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vTipWorldPos, %.2f, %.2f, %.2f, %.2f", vTipWorldPos.x, vTipWorldPos.y, vTipWorldPos.z, vTipWorldPos.w);
|
||||
GUI::Text("vTipRight, %.2f, %.2f, %.2f, %.2f", vTipRight.x, vTipRight.y, vTipRight.z, vTipRight.w);
|
||||
GUI::Text("vTipUp, %.2f, %.2f, %.2f, %.2f", vTipUp.x, vTipUp.y, vTipUp.z, vTipUp.w);
|
||||
GUI::Text("vTipLook, %.2f, %.2f, %.2f, %.2f", vTipLook.x, vTipLook.y, vTipLook.z, vTipLook.w);
|
||||
GUI::Text("vTipPos, %.2f, %.2f, %.2f, %.2f", vTipPos.x, vTipPos.y, vTipPos.z, vTipPos.w);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -160,7 +160,7 @@ HRESULT CCamera::Ready_Shadow()
|
||||
XMStoreFloat4(&ShadowDesc.vEye, XMLoadFloat4(&ShadowDesc.vAt) - matRotation.r[2] * (ShadowDesc.fFar * 0.25f));
|
||||
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("Renderer");
|
||||
GUI::Begin("SYSTEM");
|
||||
if (GUI::CollapsingHeader("Near_Camera_ShadowDesc")) {
|
||||
//GUI::SliderFloat3("RPY", (_float*)&m_vRollPichYaw, -360.f, 360.f);
|
||||
GUI::DragFloat("Far", &ShadowDesc.fFar, 1.f, 20, 300.f);
|
||||
|
||||
@@ -437,65 +437,66 @@ void CCharacter_Controller::Free()
|
||||
#ifdef _DEBUG
|
||||
void CCharacter_Controller::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Character_Controller");
|
||||
GUI::Text("Gravity : %d ", m_bGravity);
|
||||
m_pTransform->Describe_Entity();
|
||||
GUI::TextLinkOpenURL("More details here", "https://dev-treadmill.tistory.com/158");
|
||||
_float fContact = m_pController->getContactOffset();
|
||||
PSX::PxVec3 vUpDirection = m_pController->getUpDirection();
|
||||
PSX::PxExtendedVec3 vCenterPosition = m_pController->getPosition();
|
||||
PSX::PxExtendedVec3 vFootPosition = m_pController->getFootPosition();
|
||||
_float3 vVolume = Get_Volume();
|
||||
_float fStepOffset = m_pController->getStepOffset();
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Character_Controller") ){
|
||||
GUI::Text("Gravity : %d ", m_bGravity);
|
||||
m_pTransform->Describe_Entity();
|
||||
GUI::TextLinkOpenURL("More details here", "https://dev-treadmill.tistory.com/158");
|
||||
_float fContact = m_pController->getContactOffset();
|
||||
PSX::PxVec3 vUpDirection = m_pController->getUpDirection();
|
||||
PSX::PxExtendedVec3 vCenterPosition = m_pController->getPosition();
|
||||
PSX::PxExtendedVec3 vFootPosition = m_pController->getFootPosition();
|
||||
_float3 vVolume = Get_Volume();
|
||||
_float fStepOffset = m_pController->getStepOffset();
|
||||
|
||||
GUI::Text("eBodyType $d", (_uint)m_eBodyType); GUIHelpMarker("Body: only box and capsule available");
|
||||
GUI::Text("eBodyType $d", (_uint)m_eBodyType); GUIHelpMarker("Body: only box and capsule available");
|
||||
|
||||
if (GUI::SliderFloat3("UpDirection", (_float*)&vUpDirection, -1.f, 1.f)) {
|
||||
m_pController->setUpDirection(vUpDirection.getNormalized());
|
||||
} GUIHelpMarker("Up vector in PhysX");
|
||||
GUI::Text("vCenterPosition %lf, %lf, %lf", vCenterPosition.x, vCenterPosition.y, vCenterPosition.z); GUIHelpMarker("Exact center of the rigid body owned by the controller");
|
||||
GUI::Text("vFootPosition %lf, %lf, %lf", vFootPosition.x, vFootPosition.y, vFootPosition.z); GUIHelpMarker("Foot position including step offset from the body center to the ground");
|
||||
if (GUI::SliderFloat3("UpDirection", (_float*)&vUpDirection, -1.f, 1.f)) {
|
||||
m_pController->setUpDirection(vUpDirection.getNormalized());
|
||||
} GUIHelpMarker("Up vector in PhysX");
|
||||
GUI::Text("vCenterPosition %lf, %lf, %lf", vCenterPosition.x, vCenterPosition.y, vCenterPosition.z); GUIHelpMarker("Exact center of the rigid body owned by the controller");
|
||||
GUI::Text("vFootPosition %lf, %lf, %lf", vFootPosition.x, vFootPosition.y, vFootPosition.z); GUIHelpMarker("Foot position including step offset from the body center to the ground");
|
||||
|
||||
if (GUI::SliderFloat("ContactOffset", &fContact, 0.01f, 10.f, "%.2f")) {
|
||||
m_pController->setContactOffset(fContact);
|
||||
} GUIHelpMarker("Actual contact offset in PhysX; increasing it may make the controller appear to hover");
|
||||
if (GUI::SliderFloat("StepOffset", &fStepOffset, 0.f, 3.f, "%.2f")) {
|
||||
m_pController->setStepOffset(fStepOffset);
|
||||
} GUIHelpMarker("In stepped regions, the tolerance height the controller can climb.\n Capsule behaves slightly differently.");
|
||||
|
||||
if (ACTOR::CAPSULE == m_eBodyType) {
|
||||
PSX::PxCapsuleController* pController = (PSX::PxCapsuleController*)m_pController;
|
||||
if (GUI::SliderFloat("ContactOffset", &fContact, 0.01f, 10.f, "%.2f")) {
|
||||
m_pController->setContactOffset(fContact);
|
||||
} GUIHelpMarker("Actual contact offset in PhysX; increasing it may make the controller appear to hover");
|
||||
if (GUI::SliderFloat("StepOffset", &fStepOffset, 0.f, 3.f, "%.2f")) {
|
||||
m_pController->setStepOffset(fStepOffset);
|
||||
} GUIHelpMarker("In stepped regions, the tolerance height the controller can climb.\n Capsule behaves slightly differently.");
|
||||
|
||||
if (0.f != fStepOffset) {
|
||||
switch (pController->getClimbingMode())
|
||||
{
|
||||
case PSX::PxCapsuleClimbingMode::eEASY:
|
||||
if (GUI::Button("ClimbingMode : eEasy")) {
|
||||
pController->setClimbingMode(PSX::PxCapsuleClimbingMode::eCONSTRAINED);
|
||||
if (ACTOR::CAPSULE == m_eBodyType) {
|
||||
PSX::PxCapsuleController* pController = (PSX::PxCapsuleController*)m_pController;
|
||||
|
||||
if (0.f != fStepOffset) {
|
||||
switch (pController->getClimbingMode())
|
||||
{
|
||||
case PSX::PxCapsuleClimbingMode::eEASY:
|
||||
if (GUI::Button("ClimbingMode : eEasy")) {
|
||||
pController->setClimbingMode(PSX::PxCapsuleClimbingMode::eCONSTRAINED);
|
||||
}
|
||||
break;
|
||||
case PSX::PxCapsuleClimbingMode::eCONSTRAINED:
|
||||
if (GUI::Button("ClimbingMode : eConstrained")) {
|
||||
pController->setClimbingMode(PSX::PxCapsuleClimbingMode::eEASY);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PSX::PxCapsuleClimbingMode::eCONSTRAINED:
|
||||
if (GUI::Button("ClimbingMode : eConstrained")) {
|
||||
pController->setClimbingMode(PSX::PxCapsuleClimbingMode::eEASY);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
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.");
|
||||
}
|
||||
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", m_fCurrentSlopeDegree);
|
||||
GUI::Text("%.1f", m_fWalkableSlopeDegree); GUI::SameLine(); if (GUI::SliderFloat("m_fWalkableSlopeDegree", &m_fWalkableSlopeDegree, 0.0f, 90.f)) {
|
||||
m_pController->setSlopeLimit(cosf(XMConvertToRadians(m_fWalkableSlopeDegree)));
|
||||
}
|
||||
GUI::DragFloat("m_vAccHeight.w", &m_vAccHeight.w, 0.01f, 0.f, 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.");
|
||||
GUI::Text("%.1f", m_fCurrentSlopeDegree);
|
||||
GUI::Text("%.1f", m_fWalkableSlopeDegree); GUI::SameLine(); if (GUI::SliderFloat("m_fWalkableSlopeDegree", &m_fWalkableSlopeDegree, 0.0f, 90.f)) {
|
||||
m_pController->setSlopeLimit(cosf(XMConvertToRadians(m_fWalkableSlopeDegree)));
|
||||
}
|
||||
GUI::DragFloat("m_vAccHeight.w", &m_vAccHeight.w, 0.01f, 0.f, 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.");
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -45,7 +45,7 @@ HRESULT CFog::Bind_FogValue(CShader* pShader)
|
||||
#ifdef _DEBUG
|
||||
void CFog::Update_Fog()
|
||||
{
|
||||
GUI::Begin("Renderer");
|
||||
GUI::Begin("SYSTEM");
|
||||
if (GUI::CollapsingHeader("FOG")) {
|
||||
GUI::Checkbox("Fog ON / OFF", &m_bVisible);
|
||||
GUI::InputFloat("g_fFogDensity", &m_fFogDensity, 0.001f);
|
||||
|
||||
@@ -168,37 +168,39 @@ void CGameObject_Manager::Free()
|
||||
|
||||
void CGameObject_Manager::Describe_Entity()
|
||||
{
|
||||
ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar;
|
||||
GUI::Begin("Object_Manager");
|
||||
GUI::Text("Levels : "); GUI::SameLine();
|
||||
if (GUI::BeginTabBar("Levels")) {
|
||||
for (_uint i = 0; i < m_iNumLevels; ++i) {
|
||||
GUI::Begin("SYSTEM");
|
||||
if (GUI::CollapsingHeader("Object_Manager")) {
|
||||
ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar;
|
||||
GUI::Text("Levels : "); GUI::SameLine();
|
||||
if (GUI::BeginTabBar("Levels")) {
|
||||
for (_uint i = 0; i < m_iNumLevels; ++i) {
|
||||
|
||||
if (GUI::BeginTabItem(to_string(i).c_str(), nullptr)) { // Insert Here Level Names
|
||||
GUI::BeginChild("Object_Lists");
|
||||
if (GUI::BeginTabBar("Layers")) {
|
||||
string strlayerName;
|
||||
for (pair< const _wstring, CLayer*>& pairLayer : m_pLayers[i]) {
|
||||
size_t pos = pairLayer.first.find(TEXT("Layer_"));
|
||||
strlayerName = "NOT_STARTED_WITH_Layer_";
|
||||
if (pos != wstring::npos) {
|
||||
strlayerName = CMyTools::ToString(pairLayer.first.c_str() + pos + wcslen(TEXT("Layer_"))).c_str();
|
||||
}
|
||||
if (GUI::BeginTabItem(strlayerName.c_str(), nullptr)) {
|
||||
if (GUI::BeginChild("Items", ImVec2(0, 0), 0, window_flags)) {
|
||||
pairLayer.second->Describe_Entity();
|
||||
GUI::EndChild();
|
||||
if (GUI::BeginTabItem(to_string(i).c_str(), nullptr)) { // Insert Here Level Names
|
||||
GUI::BeginChild("Object_Lists");
|
||||
if (GUI::BeginTabBar("Layers")) {
|
||||
string strlayerName;
|
||||
for (pair< const _wstring, CLayer*>& pairLayer : m_pLayers[i]) {
|
||||
size_t pos = pairLayer.first.find(TEXT("Layer_"));
|
||||
strlayerName = "NOT_STARTED_WITH_Layer_";
|
||||
if (pos != wstring::npos) {
|
||||
strlayerName = CMyTools::ToString(pairLayer.first.c_str() + pos + wcslen(TEXT("Layer_"))).c_str();
|
||||
}
|
||||
if (GUI::BeginTabItem(strlayerName.c_str(), nullptr)) {
|
||||
if (GUI::BeginChild("Items", ImVec2(0, 0), 0, window_flags)) {
|
||||
pairLayer.second->Describe_Entity();
|
||||
GUI::EndChild();
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
GUI::EndChild();
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
GUI::EndChild();
|
||||
GUI::EndTabItem();
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
}
|
||||
GUI::EndTabBar();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -2015,7 +2015,6 @@ void CModel::Free()
|
||||
#ifdef _DEBUG
|
||||
void CModel::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Model_Desc");
|
||||
if (GUI::CollapsingHeader("ModelAnimations")) {
|
||||
for (_uint i = 0; i < m_iNumAnimations; ++i) {
|
||||
if (GUI::Button(m_Animations[i]->Get_Name().c_str())) {
|
||||
@@ -2056,7 +2055,6 @@ void CModel::Describe_Entity()
|
||||
CloseHandle(hFile);
|
||||
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -59,27 +59,6 @@ void CMouse_Manager::Update()
|
||||
}
|
||||
m_ptOldMouseCur = m_ptCurrentMouseCur;
|
||||
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("Mouse_Manager");
|
||||
GUI::Text("AccumulateMomentum %f, %f", m_vMove.x, m_vMove.y);
|
||||
GUI::Text("CurPos %d, %d", m_ptCurrentMouseCur.x, m_ptCurrentMouseCur.y);
|
||||
GUI::Text("Lock %d", m_bLockMouseToCenter);
|
||||
POINT pt = Get_MouseViewPortPos();
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
GUI::Text("IMGUI MousePos: %.1f, %.1f", io.MousePos.x, io.MousePos.y);
|
||||
//io.MousePos = ImVec2((float)pt.x, (float)pt.y);
|
||||
GUI::Text("VPPOS: %d, %d", pt.x, pt.y);
|
||||
pt = Get_MouseScreenPos();
|
||||
GUI::Text("SCPOS: %d, %d", pt.x, pt.y);
|
||||
|
||||
pt = Get_MouseViewPortPos();
|
||||
D3D11_VIEWPORT viewPort;
|
||||
_uint TargetViewPort = 1;
|
||||
m_pContext->RSGetViewports(&TargetViewPort, &viewPort);
|
||||
GUI::Text("INV_VPPOS: %f, %f", pt.x - (viewPort.Width * 0.5f), pt.y - (viewPort.Height * 0.5f));
|
||||
|
||||
GUI::End();
|
||||
#endif
|
||||
Picking();
|
||||
}
|
||||
else {
|
||||
@@ -87,6 +66,9 @@ void CMouse_Manager::Update()
|
||||
ZeroMemory(&m_ptCurrentMouseCur, sizeof(POINT));
|
||||
ZeroMemory(&m_ptOldMouseCur, sizeof(POINT));
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif
|
||||
}
|
||||
|
||||
POINT CMouse_Manager::Get_MouseViewPortPos()
|
||||
@@ -180,45 +162,6 @@ _bool CMouse_Manager::MousePicking_InWorldSpace(const _float3& vPointA, const _f
|
||||
return isCollision;
|
||||
}
|
||||
|
||||
//void CMouse_Manager::Mouse_Render()
|
||||
//{
|
||||
// RECT rc{}; GetClientRect(m_ghWnd, &rc);
|
||||
// const float cw = float(rc.right - rc.left);
|
||||
// const float ch = float(rc.bottom - rc.top);
|
||||
//
|
||||
// // 2) 뷰/프로젝션: 화면 좌상단(0,0) ~ (cw,ch), Y-다운
|
||||
// XMFLOAT4X4 view{}, proj{};
|
||||
// XMStoreFloat4x4(&view, XMMatrixIdentity());
|
||||
// XMStoreFloat4x4(&proj, XMMatrixOrthographicOffCenterLH(0.f, cw, ch, 0.f, 0.f, 1.f));
|
||||
//
|
||||
// // 3) 마우스 좌표 (클라이언트 좌표로 변환)
|
||||
// POINT pt{}; GetCursorPos(&pt); ScreenToClient(m_ghWnd, &pt);
|
||||
//
|
||||
// // 4) 월드 행렬: 30x30 스케일 + 위치(픽셀 센터 정렬: +0.5f)
|
||||
// XMFLOAT4X4 world{};
|
||||
// world._11 = 30.f; // width
|
||||
// world._22 = 30.f; // height
|
||||
// world._33 = 1.f; // keep
|
||||
// world._44 = 1.f; // keep
|
||||
// world._41 = floorf((float)pt.x) + 0.5f; // translation X (row-vector 규약)
|
||||
// world._42 = floorf((float)pt.y) + 0.5f; // translation Y
|
||||
//
|
||||
// // 5) 바인딩
|
||||
// m_pShader->Bind_Matrix("g_WorldMatrix", &world);
|
||||
// m_pShader->Bind_Matrix("g_ViewMatrix", &view);
|
||||
// m_pShader->Bind_Matrix("g_ProjMatrix", &proj);
|
||||
//
|
||||
// m_pShader->Bind_SRV("g_Texture", m_pMouseSRV);
|
||||
// m_pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(float));
|
||||
//
|
||||
// // 6) 상태 셋업(권장)
|
||||
// // - DepthTest OFF / DepthWrite OFF (UI)
|
||||
// // - AlphaBlend ON (필요시)
|
||||
// m_pShader->Begin(2);
|
||||
// m_pRect->Bind_Resources();
|
||||
// m_pRect->Render();
|
||||
//}
|
||||
|
||||
POINT CMouse_Manager::Get_ScreenCenterPos()
|
||||
{
|
||||
D3D11_VIEWPORT viewPort;
|
||||
@@ -257,3 +200,31 @@ void CMouse_Manager::Free()
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CMouse_Manager::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("SYSTEM");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Mouse_Manager")) {
|
||||
GUI::Text("AccumulateMomentum %.2f, %.2f", m_vMove.x, m_vMove.y);
|
||||
GUI::Text("CurPos %d, %d", m_ptCurrentMouseCur.x, m_ptCurrentMouseCur.y);
|
||||
GUI::Text("Lock %d", m_bLockMouseToCenter);
|
||||
POINT pt = Get_MouseViewPortPos();
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
GUI::Text("IMGUI MousePos: %.1f, %.1f", io.MousePos.x, io.MousePos.y);
|
||||
//io.MousePos = ImVec2((float)pt.x, (float)pt.y);
|
||||
GUI::Text("VPPOS: %d, %d", pt.x, pt.y);
|
||||
pt = Get_MouseScreenPos();
|
||||
GUI::Text("SCPOS: %d, %d", pt.x, pt.y);
|
||||
|
||||
pt = Get_MouseViewPortPos();
|
||||
D3D11_VIEWPORT viewPort;
|
||||
_uint TargetViewPort = 1;
|
||||
m_pContext->RSGetViewports(&TargetViewPort, &viewPort);
|
||||
GUI::Text("INV_VPPOS: %.2f, %.2f", pt.x - (viewPort.Width * 0.5f), pt.y - (viewPort.Height * 0.5f));
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -37,16 +37,16 @@ void CRenderer::Render()
|
||||
Render_UI_Overley();
|
||||
|
||||
#ifdef _DEBUG
|
||||
static _bool m_bToggleDebug = false;
|
||||
GUI::Checkbox("DebugToggle", &m_bToggleDebug);
|
||||
Describe_Entitiy();
|
||||
m_pGameInstance->RenderTarget_Debuger();
|
||||
static _bool m_bToggleDebug = false;
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_F10)) {
|
||||
Render_Debug();
|
||||
}
|
||||
else {
|
||||
GUI::Begin("RenderTarget Debuger");
|
||||
GUI::Checkbox("DebugToggle", &m_bToggleDebug);
|
||||
if (m_bToggleDebug) {
|
||||
Render_Debug();
|
||||
}
|
||||
|
||||
@@ -508,49 +508,51 @@ void CRenderer::Free()
|
||||
#ifdef _DEBUG
|
||||
void CRenderer::Describe_Entitiy()
|
||||
{
|
||||
GUI::Begin("Renderer");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("PostProcessing_Bloom"))
|
||||
{
|
||||
GUI::BeginChild("PostProcessing_Bloom");
|
||||
GUI::DragFloat("m_fBloomThreshold", &m_fBloomThreshold, 0.01f, 0.02f, 100.f, "%.3f");
|
||||
GUI::SliderInt("g_iEmbossingPass", &m_iBloomEmbossingPass, 0, 2, "%d");
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("Environment DOF"))
|
||||
{
|
||||
GUI::BeginChild("DOF_ENV", ImVec2(0, 0), true);
|
||||
GUI::Begin("SYSTEM");
|
||||
if (GUI::CollapsingHeader("RENDERER")) {
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("PostProcessing_Bloom"))
|
||||
{
|
||||
GUI::BeginChild("PostProcessing_Bloom");
|
||||
GUI::DragFloat("m_fBloomThreshold", &m_fBloomThreshold, 0.01f, 0.02f, 100.f, "%.3f");
|
||||
GUI::SliderInt("g_iEmbossingPass", &m_iBloomEmbossingPass, 0, 2, "%d");
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("Environment DOF"))
|
||||
{
|
||||
GUI::BeginChild("DOF_ENV", ImVec2(0, 0), true);
|
||||
|
||||
GUI::Text("Far DOF (Environment)");
|
||||
GUI::Separator();
|
||||
GUI::Text("Far DOF (Environment)");
|
||||
GUI::Separator();
|
||||
|
||||
GUI::DragFloat("Depth Cut", &m_fDOF_ENV_CutThreshold, 0.001f, 0.0f, 20.0f, "%.4f");
|
||||
GUI::DragFloat("Focus Dist", &m_fDOF_ENV_FocusDistance, 1.0f, 0.1f, 125.f, "%.1f");
|
||||
GUI::DragFloat("Blur Start", &m_fDOF_ENV_StartDistance, 1.0f, 0.1f, 250.f, "%.1f");
|
||||
GUI::DragFloat("Blur End", &m_fDOF_ENV_MaxEnd, 1.0f, 1.0f, 500.f, "%.1f");
|
||||
GUI::DragFloat("Max Radius", &m_fDOF_ENV_AmountRadius, 0.1f, 0.0f, 10.0f, "%.2f");
|
||||
GUI::DragFloat("Depth Cut", &m_fDOF_ENV_CutThreshold, 0.001f, 0.0f, 20.0f, "%.4f");
|
||||
GUI::DragFloat("Focus Dist", &m_fDOF_ENV_FocusDistance, 1.0f, 0.1f, 125.f, "%.1f");
|
||||
GUI::DragFloat("Blur Start", &m_fDOF_ENV_StartDistance, 1.0f, 0.1f, 250.f, "%.1f");
|
||||
GUI::DragFloat("Blur End", &m_fDOF_ENV_MaxEnd, 1.0f, 1.0f, 500.f, "%.1f");
|
||||
GUI::DragFloat("Max Radius", &m_fDOF_ENV_AmountRadius, 0.1f, 0.0f, 10.0f, "%.2f");
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (m_fDOF_ENV_StartDistance < m_fDOF_ENV_FocusDistance) {
|
||||
m_fDOF_ENV_StartDistance = m_fDOF_ENV_FocusDistance;
|
||||
}
|
||||
if (m_fDOF_ENV_MaxEnd < m_fDOF_ENV_StartDistance + 1.0f) {
|
||||
m_fDOF_ENV_MaxEnd = m_fDOF_ENV_StartDistance + 1.0f;
|
||||
}
|
||||
if (m_fDOF_ENV_StartDistance < m_fDOF_ENV_FocusDistance) {
|
||||
m_fDOF_ENV_StartDistance = m_fDOF_ENV_FocusDistance;
|
||||
}
|
||||
if (m_fDOF_ENV_MaxEnd < m_fDOF_ENV_StartDistance + 1.0f) {
|
||||
m_fDOF_ENV_MaxEnd = m_fDOF_ENV_StartDistance + 1.0f;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("SSAO")) {
|
||||
GUI::BeginChild("SSAO_Setting", ImVec2(0, 0), true);
|
||||
GUI::DragFloat("fSSAORadius ", &m_fSSAO_Radius, 0.001f, -3.f, 3.f, "%.5f");
|
||||
GUI::DragFloat("fSSAO_BIAS", &m_fSSAO_BIAS, 0.001f, -2.f, 2.f, "%.5f");
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("ToneMapping")) {
|
||||
GUI::BeginChild("TONE_MAP", ImVec2(0, 0), true);
|
||||
GUI::SliderInt("m_iToneMappingType", &m_iToneMappingType, 0, 2, "%d");
|
||||
GUI::SliderFloat("m_fExposure", &m_fExposure, 0.5f, 2.f, "%.3f");
|
||||
GUI::EndChild();
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("SSAO")) {
|
||||
GUI::BeginChild("SSAO_Setting", ImVec2(0, 0), true);
|
||||
GUI::DragFloat("fSSAORadius ", &m_fSSAO_Radius, 0.001f, -3.f, 3.f, "%.5f");
|
||||
GUI::DragFloat("fSSAO_BIAS", &m_fSSAO_BIAS, 0.001f, -2.f, 2.f, "%.5f");
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("ToneMapping")) {
|
||||
GUI::BeginChild("TONE_MAP", ImVec2(0, 0), true);
|
||||
GUI::SliderInt("m_iToneMappingType", &m_iToneMappingType, 0, 2, "%d");
|
||||
GUI::SliderFloat("m_fExposure", &m_fExposure, 0.5f, 2.f, "%.3f");
|
||||
GUI::EndChild();
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -141,72 +141,75 @@ void CResource_Manager::Free()
|
||||
|
||||
void CResource_Manager::Describe_Entity()
|
||||
{
|
||||
static vector<pair<_wstring, _uint>> vecHit = {};
|
||||
static vector<pair<_wstring, _uint>> vecMiss = {};
|
||||
GUI::Begin("ResourceManager");
|
||||
if (GUI::Button("Refresh")) {
|
||||
vecHit.clear();
|
||||
vecMiss.clear();
|
||||
for (auto& element : m_mapCacheHit){
|
||||
vecHit.emplace_back(element);
|
||||
}
|
||||
for (auto& element : m_mapCacheMiss){
|
||||
vecMiss.emplace_back(element);
|
||||
}
|
||||
sort(vecHit.begin(), vecHit.end(),
|
||||
[](const pair<_wstring, _uint>& leftPair,
|
||||
const pair<_wstring, _uint>& rightPair)
|
||||
{
|
||||
return leftPair.second > rightPair.second;
|
||||
});
|
||||
GUI::Begin("SYSTEM");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("ResourceManager")) {
|
||||
static vector<pair<_wstring, _uint>> vecHit = {};
|
||||
static vector<pair<_wstring, _uint>> vecMiss = {};
|
||||
if (GUI::Button("Refresh")) {
|
||||
vecHit.clear();
|
||||
vecMiss.clear();
|
||||
for (auto& element : m_mapCacheHit) {
|
||||
vecHit.emplace_back(element);
|
||||
}
|
||||
for (auto& element : m_mapCacheMiss) {
|
||||
vecMiss.emplace_back(element);
|
||||
}
|
||||
sort(vecHit.begin(), vecHit.end(),
|
||||
[](const pair<_wstring, _uint>& leftPair,
|
||||
const pair<_wstring, _uint>& rightPair)
|
||||
{
|
||||
return leftPair.second > rightPair.second;
|
||||
});
|
||||
|
||||
sort(vecMiss.begin(), vecMiss.end(),
|
||||
[](const pair<_wstring, _uint>& leftPair,
|
||||
const pair<_wstring, _uint>& rightPair)
|
||||
{
|
||||
return leftPair.second > rightPair.second;
|
||||
});
|
||||
}
|
||||
if (GUI::CollapsingHeader("Statistics")) {
|
||||
_uint iTotalHitCount = 0;
|
||||
_uint iTotalMissCount = 0;
|
||||
sort(vecMiss.begin(), vecMiss.end(),
|
||||
[](const pair<_wstring, _uint>& leftPair,
|
||||
const pair<_wstring, _uint>& rightPair)
|
||||
{
|
||||
return leftPair.second > rightPair.second;
|
||||
});
|
||||
}
|
||||
if (GUI::CollapsingHeader("Statistics")) {
|
||||
_uint iTotalHitCount = 0;
|
||||
_uint iTotalMissCount = 0;
|
||||
|
||||
for (const auto& element : m_mapCacheHit) {
|
||||
iTotalHitCount += element.second;
|
||||
}
|
||||
for (const auto& element : m_mapCacheMiss) {
|
||||
iTotalMissCount += element.second;
|
||||
}
|
||||
_uint iTotalRequestCount = iTotalHitCount + iTotalMissCount;
|
||||
for (const auto& element : m_mapCacheHit) {
|
||||
iTotalHitCount += element.second;
|
||||
}
|
||||
for (const auto& element : m_mapCacheMiss) {
|
||||
iTotalMissCount += element.second;
|
||||
}
|
||||
_uint iTotalRequestCount = iTotalHitCount + iTotalMissCount;
|
||||
|
||||
_float fHitRatePercent = 0.0f;
|
||||
if (iTotalRequestCount > 0) {
|
||||
fHitRatePercent = (_float)iTotalHitCount * 100.0f / (_float)iTotalRequestCount;
|
||||
}
|
||||
_float fHitRatePercent = 0.0f;
|
||||
if (iTotalRequestCount > 0) {
|
||||
fHitRatePercent = (_float)iTotalHitCount * 100.0f / (_float)iTotalRequestCount;
|
||||
}
|
||||
|
||||
GUI::Text("Total Requests: %u", iTotalRequestCount);
|
||||
GUI::Text("Hit: %u Miss: %u HitRate: %.2f%%", iTotalHitCount, iTotalMissCount, fHitRatePercent);
|
||||
GUI::Text("Total Requests: %u", iTotalRequestCount);
|
||||
GUI::Text("Hit: %u Miss: %u HitRate: %.2f%%", iTotalHitCount, iTotalMissCount, fHitRatePercent);
|
||||
|
||||
}
|
||||
if (GUI::CollapsingHeader("CacheHit")) {
|
||||
GUI::Text("%d", vecHit.size());
|
||||
GUI::BeginChild("CacheHit", { 300, 300 });
|
||||
GUI::GetScrollY();
|
||||
for (auto& element : vecHit) {
|
||||
GUI::Text("%d", element.second); GUI::SameLine();
|
||||
GUI::Text(CMyTools::ToString(element.first).c_str());
|
||||
}
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("CacheMiss")) {
|
||||
GUI::Text("%d", vecMiss.size());
|
||||
GUI::BeginChild("CacheMiss", { 300, 300 });
|
||||
GUI::GetScrollY();
|
||||
for (auto& element : vecMiss) {
|
||||
GUI::Text("%d", element.second); GUI::SameLine();
|
||||
GUI::Text(CMyTools::ToString(element.first).c_str());
|
||||
if (GUI::CollapsingHeader("CacheHit")) {
|
||||
GUI::Text("%d", vecHit.size());
|
||||
GUI::BeginChild("CacheHit", { 300, 300 });
|
||||
GUI::GetScrollY();
|
||||
for (auto& element : vecHit) {
|
||||
GUI::Text("%d", element.second); GUI::SameLine();
|
||||
GUI::Text(CMyTools::ToString(element.first).c_str());
|
||||
}
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("CacheMiss")) {
|
||||
GUI::Text("%d", vecMiss.size());
|
||||
GUI::BeginChild("CacheMiss", { 300, 300 });
|
||||
GUI::GetScrollY();
|
||||
for (auto& element : vecMiss) {
|
||||
GUI::Text("%d", element.second); GUI::SameLine();
|
||||
GUI::Text(CMyTools::ToString(element.first).c_str());
|
||||
}
|
||||
GUI::EndChild();
|
||||
}
|
||||
GUI::EndChild();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -350,12 +350,12 @@ void CTrail::Free()
|
||||
|
||||
void CTrail::Describe_Entity()
|
||||
{
|
||||
|
||||
|
||||
GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow);
|
||||
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
|
||||
|
||||
|
||||
GUI::Begin("EFFECT");
|
||||
if (GUI::CollapsingHeader("CTrail")) {
|
||||
GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow);
|
||||
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
#include "Base.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
@@ -55,6 +55,11 @@ class ENGINE_DLL CMouse_Manager final : public CBase
|
||||
public:
|
||||
static CMouse_Manager* Create(HWND _g_hWnd, ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity();
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
NS_END
|
||||
|
||||
|
||||
Reference in New Issue
Block a user