Skip to content
Snippets Groups Projects
Commit b67a86f3 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Added perspective camera in again, culling seems fine

parent a5f24d90
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
#include <Inventor/events/SoMouseButtonEvent.h>
#include <Inventor/events/SoLocation2Event.h>
armarx::RobotViewer::RobotViewer(QWidget* widget) : SoQtExaminerViewer(widget), sceneRootNode(new SoSeparator), contentRootNode(new SoSeparator), camera(new SoOrthographicCamera)
armarx::RobotViewer::RobotViewer(QWidget* widget) : SoQtExaminerViewer(widget), sceneRootNode(new SoSeparator), contentRootNode(new SoSeparator), camera(new SoPerspectiveCamera)
{
this->setBackgroundColor(SbColor(150 / 255.0f, 150 / 255.0f, 150 / 255.0f));
this->setAccumulationBuffer(true);
......
......@@ -2,7 +2,7 @@
#define __RobotViewer_h__
/* Coin headers */
#include <Inventor/nodes/SoOrthographicCamera.h>
#include <Inventor/nodes/SoPerspectiveCamera.h>
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
namespace armarx
......@@ -18,7 +18,7 @@ namespace armarx
virtual SbBool processSoEvent(const SoEvent* const event);
SoSeparator* sceneRootNode;
SoSeparator* contentRootNode;
SoOrthographicCamera* camera;
SoPerspectiveCamera* camera;
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment