Commit 9a401e3d authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: also free yaw axis of camera manager and default to free yaw

so meshes in any orientation can be properly viewed
parent 34caac78
......@@ -319,7 +319,11 @@ public:
{
camman.reset(new OgreBites::CameraMan(camNode));
camman->setStyle(OgreBites::CS_ORBIT);
camNode->setFixedYawAxis(true, Vector3::NEGATIVE_UNIT_Y);
#if OGRE_VERSION >= ((1 << 16) | (11 << 8) | 5)
camman->setFixedYaw(false);
#else
camNode->setFixedYawAxis(true, Vector3::NEGATIVE_UNIT_Y); // OpenCV +Y in Ogre CS
#endif
}
if (!app->sceneMgr)
......@@ -694,6 +698,10 @@ public:
void fixCameraYawAxis(bool useFixed, InputArray _up) CV_OVERRIDE
{
#if OGRE_VERSION >= ((1 << 16) | (11 << 8) | 5)
if(camman) camman->setFixedYaw(useFixed);
#endif
Vector3 up = Vector3::NEGATIVE_UNIT_Y;
if (!_up.empty())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment