diff --git a/support/magicleap/Servo2D/code/src/Servo2D.cpp b/support/magicleap/Servo2D/code/src/Servo2D.cpp index 062a6411e4e..0dd8201baf8 100644 --- a/support/magicleap/Servo2D/code/src/Servo2D.cpp +++ b/support/magicleap/Servo2D/code/src/Servo2D.cpp @@ -18,22 +18,22 @@ #include // The viewport dimensions (in px). -const int VIEWPORT_W = 500; -const int VIEWPORT_H = 500; +const int VIEWPORT_W = 1280; +const int VIEWPORT_H = 720; // The hidpi factor. const float HIDPI = 1.0; // The prism dimensions (in m). -const float PRISM_W = 0.75; -const float PRISM_H = 0.75; +const float PRISM_W = 1.50; +const float PRISM_H = 1; const float PRISM_D = 0.05; // The length of the laser pointer (in m). const float LASER_LENGTH = 10.0; // The width of the keyboard -const float KEYBOARD_W = 0.666; +const float KEYBOARD_W = 1.333; // The home page const char* HOME_PAGE = "https://servo.org/ml-home"; @@ -152,7 +152,7 @@ int Servo2D::init() { } lumin::ui::UiPanel::RequestFocus(content_panel_); - lumin::ResourceIDType plane_id = prism_->createPlanarEGLResourceId(); + lumin::ResourceIDType plane_id = prism_->createPlanarEGLResourceId(VIEWPORT_W, VIEWPORT_H); if (!plane_id) { ML_LOG(Error, "Servo2D Failed to create EGL resource"); abort(); diff --git a/support/magicleap/Servo2D/pipeline/lap/project.json b/support/magicleap/Servo2D/pipeline/lap/project.json index 67b9df0aa72..052b8be660a 100644 --- a/support/magicleap/Servo2D/pipeline/lap/project.json +++ b/support/magicleap/Servo2D/pipeline/lap/project.json @@ -22,7 +22,7 @@ "lap/types/file/png" ] }, - "checkpoint-hash": "729ed9ee48ecc992e1906080e20f43fdc3f3b2a4cd76cdfc2bc249bfca1d9403b967ed1a6805b0b8c0e46a0bfd3d71c0a6a00fd7da651beef65f7431b7b314b3", + "checkpoint-hash": "ac0d99c246211709c735b6ff2a02e2f4a2450bdb04c0db28409c4990e45211b922511c68c5874869ee26898c1a95c40a812b85d4c3fa397703606f436fd84b51", "templates": [ "lap/template/passthru_material_from_kmat", "lap/template/passthru_model_from_fbx", diff --git a/support/magicleap/Servo2D/scenes/Servo2D.design b/support/magicleap/Servo2D/scenes/Servo2D.design index a89d87b2156..43d7d011572 100644 --- a/support/magicleap/Servo2D/scenes/Servo2D.design +++ b/support/magicleap/Servo2D/scenes/Servo2D.design @@ -16,8 +16,8 @@ - - + + @@ -30,15 +30,15 @@ - - + + - - + + @@ -77,12 +77,12 @@ - + - + @@ -150,22 +150,22 @@ - + - - + + - - + + diff --git a/support/magicleap/Servo2D/scenes/Servo2D.scene.xml b/support/magicleap/Servo2D/scenes/Servo2D.scene.xml index 20c6006e1b8..d3b4729d073 100644 --- a/support/magicleap/Servo2D/scenes/Servo2D.scene.xml +++ b/support/magicleap/Servo2D/scenes/Servo2D.scene.xml @@ -1,9 +1,9 @@ - - + + - + @@ -11,8 +11,8 @@ - + - +