Commit 25395d51 authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: fix plane mesh coordinate system to match OpenCV

parent 4e77e6fd
......@@ -28,9 +28,9 @@ void createPlaneMesh(const String& name, const Size2f& size, InputArray image)
}
// plane
MovablePlane plane(Vector3::UNIT_Z, 0);
MovablePlane plane(-Vector3::UNIT_Z, 0);
MeshPtr mesh = MeshManager::getSingleton().createPlane(
name, RESOURCEGROUP_NAME, plane, size.width, size.height, 1, 1, true, 1, 1, 1, Vector3::UNIT_Y);
name, RESOURCEGROUP_NAME, plane, size.width, size.height, 1, 1, true, 1, 1, 1, -Vector3::UNIT_Y);
mesh->getSubMesh(0)->setMaterialName(name);
}
......
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