From 53baf5652e732884367bffde0ad771e512ee4e1d Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Mon, 5 May 2014 18:03:25 -0700 Subject: [PATCH] avatar look at indicator smaller grey ball --- examples/placeModelsWithHands.js | 2 +- interface/src/avatar/Avatar.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/placeModelsWithHands.js b/examples/placeModelsWithHands.js index 97cbb41a84..41d9d5dc86 100644 --- a/examples/placeModelsWithHands.js +++ b/examples/placeModelsWithHands.js @@ -37,7 +37,7 @@ var radiusMinimum = 0.05; var radiusMaximum = 0.5; var modelURLs = [ - "http://s3.amazonaws.com/converter.tipodean.com/hifi/gun/Raygun2.fbx", + "https://s3-us-west-1.amazonaws.com/highfidelity-public/models/music/EVHFrankenstein.fbx", "http://highfidelity-public.s3-us-west-1.amazonaws.com/meshes/Feisar_Ship.FBX", "http://highfidelity-public.s3-us-west-1.amazonaws.com/meshes/birarda/birarda_head.fbx", "http://highfidelity-public.s3-us-west-1.amazonaws.com/meshes/pug.fbx", diff --git a/interface/src/avatar/Avatar.cpp b/interface/src/avatar/Avatar.cpp index b22f4c618f..ba783aafb9 100644 --- a/interface/src/avatar/Avatar.cpp +++ b/interface/src/avatar/Avatar.cpp @@ -234,10 +234,11 @@ void Avatar::render(const glm::vec3& cameraPosition, RenderMode renderMode) { } // If this is the avatar being looked at, render a little ball above their head if (_isLookAtTarget) { - const float LOOK_AT_INDICATOR_RADIUS = 0.25f; + const float LOOK_AT_INDICATOR_RADIUS = 0.05f; const float LOOK_AT_INDICATOR_HEIGHT = 0.65f; + const float LOOK_AT_INDICATOR_COLOR[] = { 0.2f, 0.2f, 0.2f, 0.3f }; glPushMatrix(); - glColor4f(0.0f, 1.0f, 1.0f, 0.5f); + glColor4fv(LOOK_AT_INDICATOR_COLOR); glTranslatef(_position.x, _position.y + (getSkeletonHeight() * LOOK_AT_INDICATOR_HEIGHT), _position.z); glutSolidSphere(LOOK_AT_INDICATOR_RADIUS, 15, 15); glPopMatrix();