Difference between revisions of "LlForceMouseLook Test"

From Second Life Wiki
Jump to navigation Jump to search
Line 123: Line 123:
<U>results</U>
<U>results</U>
<B>Basic Test Results : </B> worked perfectly and very fast
<B>Basic Test Results : </B> worked perfectly and very fast
<br>
<B> Distance Test Results :</B>
<B> Distance Test Results :</B>
<br>
<B>11forcemouselook true test :</B> entered mouselook before avatar was sat down
<B>11forcemouselook true test :</B> entered mouselook before avatar was sat down
<br>
<B>llForceMouseLookCamAtScript true test : </B> worked perfectly
<B>llForceMouseLookCamAtScript true test : </B> worked perfectly
<br>
<B>11forcemouselook false test : </B> worked perfectly
<B>11forcemouselook false test : </B> worked perfectly
<br>
<b>11forcemouselookcamatscript false test:</B>camera view was higher then first object as it should be
<b>11forcemouselookcamatscript false test:</B>camera view was higher then first object as it should be


[[Category:QA Portal]]
[[Category:QA Portal]]
[[Category:Quality Assurance]]
[[Category:Quality Assurance]]

Revision as of 02:56, 8 June 2008

[LLForceMouselookTest]

[VERSION] 0.1

[LENGTH] 00:15

[TESTERS] 1

[OVERVIEW] This test has been designed to exercise the llForceMouselook LSL function.

[SETUP] To compare functionality and interoperability, run tests with llSetCameraEyeOffset and llSetCameraAtOffset.

[*]

[Basic Test]

[INV] ForceMouselookTestObject

[0010] With your avatar near the ForceMouselookTestObject, Left-click on it until "TRUE" is displayed above it, and Right-click and select "Sit Here".

[0020] Verify that the avatar will sit on the Object and Mouselook will be forced as the avatar sits.

[*]

[Distance test]

[0030] Right-click on the Ground and Select "Create" From the Pie Menu, Rez 2 Default Cubes.

[0040] Right-click on the first cube, Select "More >>" if necessary and Click the "Contents" Tab

[0050] Click "New Script" and Replace the Default Script with the Following.

[SCRIPT] llForceMouseLookScript

[0060] Click "Save" and close the Script and Edit Windows

[0070] Right-click on the second cube, Select "More >>" if necessary and Click the "Contents" Tab

[0080] Click "New Script" and Replace the Default Script with the Following.

[SCRIPT] llForceMouseLookCamAtScript

[0090] Click "Save" and close the Script and Edit Windows

[0100] Left-click on both cubes until the word "TRUE" Appears above them

[0110] Move your avatar far from the cubes (20 m or so), Right-click on the Objects and select "Sit Here", Repeat that for Both (Clicking "Stand Up" inbetween)

[0120] Verify that the avatar will sit on the object and mouselook will be forced as the avatar sits. Look for the chance that avatar enters mouselook before reaching target.

[0130] "Stand-up" from the Cubes, and Left-click on Both until you See "FALSE" above each cube

[0140] Right-click on the Objects and select "Sit Here" Watch your camera position on each, Repeat that for Both (Clicking "Stand Up" inbetween)

[0150] Verify that sitting on the second object (using the llForceMouseLookCamAtScript) points your camera up heigher than the first object

[0160] Clean up your work area

[*]

[NOTE] The following script will toggle llForceMouseLook between TRUE and FALSE. It will be contained in the ForceMouselookTestObject.

[END]


[llForceMouseLookScript]

integer bool = TRUE;

default
{

    touch_start(integer num)
    {

        llForceMouselook(bool);
        if (bool) llSetText("TRUE",<1,0,0>,1);
        else llSetText("FALSE",<1,0,0>,1);
        llSetCameraEyeOffset(<-2, 0, 1>);
        bool = !bool;

    }

}


[llForceMouseLookCamAtScript]

integer bool = TRUE;

default
{

    touch_start(integer num)
    {

        llForceMouselook(bool);
        if (bool) llSetText("TRUE",<1,0,0>,1);
        else llSetText("FALSE",<1,0,0>,1);
        llSetCameraEyeOffset(<-2, 0, 1>);
        llSetCameraAtOffset(<2, 0, 2>);
        bool = !bool;

    }

}

results Basic Test Results : worked perfectly and very fast
Distance Test Results :
11forcemouselook true test : entered mouselook before avatar was sat down
llForceMouseLookCamAtScript true test : worked perfectly
11forcemouselook false test : worked perfectly
11forcemouselookcamatscript false test:camera view was higher then first object as it should be