From 4a34a74d5533c569ebbf3e25279270d65f19afcb Mon Sep 17 00:00:00 2001 From: Tristan Walter <twalter@orn.mpg.de> Date: Fri, 9 Oct 2020 20:05:44 +0200 Subject: [PATCH] more alpha --- Application/src/commons/common/gui/GuiTypes.cpp | 2 +- Application/src/tracker/tracking/VisualField.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Application/src/commons/common/gui/GuiTypes.cpp b/Application/src/commons/common/gui/GuiTypes.cpp index 59457d3..a273d8a 100644 --- a/Application/src/commons/common/gui/GuiTypes.cpp +++ b/Application/src/commons/common/gui/GuiTypes.cpp @@ -173,7 +173,7 @@ Polygon::Polygon(const std::vector<Vertex>& vertices) _vertices = std::make_shared<std::vector<Vec2>>(vertices.begin(), vertices.end()); if(!vertices.empty()) { set_border_clr(vertices.front().color()); - set_fill_clr(vertices.front().color().alpha(50)); + set_fill_clr(vertices.front().color().alpha(100)); } update_size(); } diff --git a/Application/src/tracker/tracking/VisualField.cpp b/Application/src/tracker/tracking/VisualField.cpp index 67ff2de..e34ab70 100644 --- a/Application/src/tracker/tracking/VisualField.cpp +++ b/Application/src/tracker/tracking/VisualField.cpp @@ -281,8 +281,8 @@ namespace track { _eyes[0].angle = angle + eye_separation; _eyes[1].angle = angle - eye_separation; - _eyes[0].clr = Color(0, 125, 255, 255); - _eyes[1].clr = Color(255, 125, 0, 255); + _eyes[0].clr = Color(0, 50, 255, 255); + _eyes[1].clr = Color(255, 50, 0, 255); for(auto &e : _eyes) correct_angle(e.angle); @@ -389,7 +389,7 @@ namespace track { for(auto &eye : _eyes) { crosses.emplace_back(eye.pos, eye.clr); - for (size_t i=0; i<VisualField::field_resolution; i++) { + for (size_t i=6; i<VisualField::field_resolution-6; i++) { if(eye._depth[i] < FLT_MAX) { //auto w = (1 - sqrt(eye._depth[i]) / (sqrt(max_d) * 0.5)); crosses.emplace_back(eye._visible_points[i], eye.clr); @@ -417,7 +417,9 @@ namespace track { crosses.emplace_back(eye.pos, eye.clr); base.circle(eye.pos, 3, White.alpha(125)); //if(&eye == &_eyes[0]) - base.add_object(new gui::Polygon(crosses)); + auto poly = new gui::Polygon(crosses); + //poly->set_fill_clr(Transparent); + base.add_object(poly); crosses.clear(); } -- GitLab