mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 14:42:03 +02:00
remove Camera menu from frustum debugging, because its obsolete and only causes problems
This commit is contained in:
parent
91aea82418
commit
0f234d739e
2 changed files with 1 additions and 13 deletions
|
@ -1304,9 +1304,6 @@ void Application::initMenu() {
|
||||||
_frustumOn->setShortcut(Qt::SHIFT | Qt::Key_F);
|
_frustumOn->setShortcut(Qt::SHIFT | Qt::Key_F);
|
||||||
(_viewFrustumFromOffset = frustumMenu->addAction(
|
(_viewFrustumFromOffset = frustumMenu->addAction(
|
||||||
"Use Offset Camera", this, SLOT(setFrustumOffset(bool)), Qt::SHIFT | Qt::Key_O))->setCheckable(true);
|
"Use Offset Camera", this, SLOT(setFrustumOffset(bool)), Qt::SHIFT | Qt::Key_O))->setCheckable(true);
|
||||||
(_cameraFrustum = frustumMenu->addAction("Switch Camera"))->setCheckable(true);
|
|
||||||
_cameraFrustum->setChecked(true);
|
|
||||||
_cameraFrustum->setShortcut(Qt::SHIFT | Qt::Key_C);
|
|
||||||
_frustumRenderModeAction = frustumMenu->addAction(
|
_frustumRenderModeAction = frustumMenu->addAction(
|
||||||
"Render Mode", this, SLOT(cycleFrustumRenderMode()), Qt::SHIFT | Qt::Key_R);
|
"Render Mode", this, SLOT(cycleFrustumRenderMode()), Qt::SHIFT | Qt::Key_R);
|
||||||
updateFrustumRenderModeAction();
|
updateFrustumRenderModeAction();
|
||||||
|
@ -1717,15 +1714,7 @@ void Application::updateAvatar(float deltaTime) {
|
||||||
//
|
//
|
||||||
void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) {
|
void Application::loadViewFrustum(Camera& camera, ViewFrustum& viewFrustum) {
|
||||||
// We will use these below, from either the camera or head vectors calculated above
|
// We will use these below, from either the camera or head vectors calculated above
|
||||||
glm::vec3 position;
|
glm::vec3 position(camera.getPosition());
|
||||||
|
|
||||||
// Camera or Head?
|
|
||||||
if (_cameraFrustum->isChecked()) {
|
|
||||||
position = camera.getPosition();
|
|
||||||
} else {
|
|
||||||
position = _myAvatar.getHeadJointPosition();
|
|
||||||
}
|
|
||||||
|
|
||||||
float fov = camera.getFieldOfView();
|
float fov = camera.getFieldOfView();
|
||||||
float nearClip = camera.getNearClip();
|
float nearClip = camera.getNearClip();
|
||||||
float farClip = camera.getFarClip();
|
float farClip = camera.getFarClip();
|
||||||
|
|
|
@ -203,7 +203,6 @@ private:
|
||||||
QAction* _destructiveAddVoxel; // when doing voxel editing do we want them to be destructive
|
QAction* _destructiveAddVoxel; // when doing voxel editing do we want them to be destructive
|
||||||
QAction* _frustumOn; // Whether or not to display the debug view frustum
|
QAction* _frustumOn; // Whether or not to display the debug view frustum
|
||||||
QAction* _viewFrustumFromOffset; // Whether or not to offset the view of the frustum
|
QAction* _viewFrustumFromOffset; // Whether or not to offset the view of the frustum
|
||||||
QAction* _cameraFrustum; // which frustum to look at
|
|
||||||
QAction* _fullScreenMode; // whether we are in full screen mode
|
QAction* _fullScreenMode; // whether we are in full screen mode
|
||||||
QAction* _frustumRenderModeAction;
|
QAction* _frustumRenderModeAction;
|
||||||
QAction* _settingsAutosave; // Whether settings are saved automatically
|
QAction* _settingsAutosave; // Whether settings are saved automatically
|
||||||
|
|
Loading…
Reference in a new issue