Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-2090

Entering edit mode through context menu while using scripted camera controls makes camera point somewhere else

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Environment:
      Second Life 3.2.4 (246439)
      Arch Linux x64
    • Approvals:
      Code Review, Product Owner
    • Test Plan:
      Hide

      Put this script into a cube

      lookAtMe( integer perms )
      {
          if ( perms & PERMISSION_CONTROL_CAMERA )
          {
              llClearCameraParams(); // reset camera to default
              llSetCameraParams([
                  CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
                  CAMERA_BEHINDNESS_ANGLE, 30.0, // (0 to 180) degrees
                  CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds
                  CAMERA_DISTANCE, 10.0, // ( 0.5 to 10) meters
                //CAMERA_FOCUS, <0,0,5>, // region relative position
                  CAMERA_FOCUS_LAG, 0.05 , // (0 to 3) seconds
                  CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
                  CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
                  CAMERA_PITCH, 10.0, // (-45 to 80) degrees
                //CAMERA_POSITION, <0,0,0>, // region relative position
                  CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds
                  CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE)
                  CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
                  CAMERA_FOCUS_OFFSET, <2.0, 0.0, 0.0> // <-10,-10,-10> to <10,10,10> meters
              ]);
          }
      }
       
      default
      {
          state_entry()
          {
              llSay(0, "Hello, Avatar!");
          }
       
          touch_start(integer total_number)
          {
              key agent = llDetectedKey(0);
              llRequestPermissions(agent, PERMISSION_CONTROL_CAMERA);
              integer perm = llGetPermissions();
              lookAtMe(perm);
          }
      }
      

      Take a copy of the cube into inventory and wear it as a HUD.
      Touch it to get a followcam running.
      Right click on the cube you rezzed (or any other item you can edit) and pick Edit: You should go into edit mode with no unusual camera motion.

      Show
      Put this script into a cube lookAtMe( integer perms ) { if ( perms & PERMISSION_CONTROL_CAMERA ) { llClearCameraParams(); // reset camera to default llSetCameraParams([ CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive CAMERA_BEHINDNESS_ANGLE, 30.0, // (0 to 180) degrees CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds CAMERA_DISTANCE, 10.0, // ( 0.5 to 10) meters //CAMERA_FOCUS, <0,0,5>, // region relative position CAMERA_FOCUS_LAG, 0.05 , // (0 to 3) seconds CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE) CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters CAMERA_PITCH, 10.0, // (-45 to 80) degrees //CAMERA_POSITION, <0,0,0>, // region relative position CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE) CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters CAMERA_FOCUS_OFFSET, <2.0, 0.0, 0.0> // <-10,-10,-10> to <10,10,10> meters ]); } } default { state_entry() { llSay(0, "Hello, Avatar!"); }   touch_start(integer total_number) { key agent = llDetectedKey(0); llRequestPermissions(agent, PERMISSION_CONTROL_CAMERA); integer perm = llGetPermissions(); lookAtMe(perm); } } Take a copy of the cube into inventory and wear it as a HUD. Touch it to get a followcam running. Right click on the cube you rezzed (or any other item you can edit) and pick Edit: You should go into edit mode with no unusual camera motion.

      Description

      Repro:

      • Have your camera controlled by a script (i.e. using llSetCamera*-calls).
      • Right-click an object and select "Edit" to go into edit mode.

      Observed:

      • The camera suddenly points somewhere else (roughly into the direction of the avatar?).

      Please also see http://www.youtube.com/watch?v=oZuYR1XOThY (recommended, with annotations) or the attached video showing the bug.

      (This is basically a clone of VWR-9338 for which Alexa demanded a new entry with a video showing the bug.)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ochi.wolfe Ochi Wolfe
              Extended Group Visibility:
              jira-users
              Contributor:
              Jonathan Yap
            • Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: