
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Not Applicable
|
|
Issue Links:
|
Duplicate
|
|
|
|
This issue is original of duplicate:
|
|
SVC-2085
llSetLinkPrimitiveParams gets prim faces wrong if the shape changes
|
|
|
|
|
SVC-2095
llSetLinkPrimitiveParams cylinder texturing error
|
|
|
|
|
Relates
|
|
This issue Relates to:
|
|
|
SVC-38 llSetPrimitiveParams has issues with multiple parameters in one call
|
|
|
|
|
SVC-1146
On Havok4 beta grid, llSetPrimitiveParams behaving differently from main grid
|
|
|
|
|
|
|
|
| Linden Lab Issue ID: |
DEV-13259
|
Stick this script in a plain cube.
A single click will toggle the prim between the two llSetPrimitiveParams settings given in solid() and hole(). A double click will reapply the current llSetPrimitiveParams setting.
A single click will screw up the texture on the one face (the landscape). A double click will restore that texture.
It appears that as the number of faces increases the final face is being given the wrong texture. I believe this is a result of the H4 roll-out..
integer toggle;
integer click;
solid()
{
llSetPrimitiveParams([
9, 0, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>,
19, 0, 0, 0,
18, 0, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 0, 0,
17, 0, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <3.000000, 2.000000, 0.000000>, <1.000000, 0.000000, 0.000000>, -1.570844,
19, 5, 0, 0,
18, 5, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 5, 1,
17, 5, "3a7cdf10-37de-0c77-7239-c09007d31d29", <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844
]);
}
hole()
{
llSetPrimitiveParams([
9, 0, 16, <0.000000, 1.000000, 0.000000>, 0.949000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>,
19, 0, 0, 0,
18, 0, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 0, 0,
17, 0, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <3.000000, 2.000000, 0.000000>, <1.000000, 0.000000, 0.000000>, -1.570844,
19, 5, 0, 0,
18, 5, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 5, 1,
17, 5, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <0.050000, 15.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844,
19, 6, 0, 0,
18, 6, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 6, 1,
17, 6, "3a7cdf10-37de-0c77-7239-c09007d31d29", <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844
]);
}
default
{
state_entry()
{
llSetScale(<10.0, 10.0, 0.2>);
llSetLocalRot(<-0.50000, -0.50000, -0.50000, 0.50000>);
solid();
}
touch_start(integer total_number)
{
if (click)
{
llSetTimerEvent(0.0);
click = FALSE;
if (toggle) hole();
else solid();
}
else
{
llSetTimerEvent(0.5);
click = TRUE;
}
}
timer()
{
llSetTimerEvent(0.0);
click = FALSE;
if (toggle = !toggle) hole();
else solid();
}
}
|
|
Description
|
Stick this script in a plain cube.
A single click will toggle the prim between the two llSetPrimitiveParams settings given in solid() and hole(). A double click will reapply the current llSetPrimitiveParams setting.
A single click will screw up the texture on the one face (the landscape). A double click will restore that texture.
It appears that as the number of faces increases the final face is being given the wrong texture. I believe this is a result of the H4 roll-out..
integer toggle;
integer click;
solid()
{
llSetPrimitiveParams([
9, 0, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>,
19, 0, 0, 0,
18, 0, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 0, 0,
17, 0, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <3.000000, 2.000000, 0.000000>, <1.000000, 0.000000, 0.000000>, -1.570844,
19, 5, 0, 0,
18, 5, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 5, 1,
17, 5, "3a7cdf10-37de-0c77-7239-c09007d31d29", <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844
]);
}
hole()
{
llSetPrimitiveParams([
9, 0, 16, <0.000000, 1.000000, 0.000000>, 0.949000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>,
19, 0, 0, 0,
18, 0, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 0, 0,
17, 0, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <3.000000, 2.000000, 0.000000>, <1.000000, 0.000000, 0.000000>, -1.570844,
19, 5, 0, 0,
18, 5, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 5, 1,
17, 5, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <0.050000, 15.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844,
19, 6, 0, 0,
18, 6, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 6, 1,
17, 6, "3a7cdf10-37de-0c77-7239-c09007d31d29", <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844
]);
}
default
{
state_entry()
{
llSetScale(<10.0, 10.0, 0.2>);
llSetLocalRot(<-0.50000, -0.50000, -0.50000, 0.50000>);
solid();
}
touch_start(integer total_number)
{
if (click)
{
llSetTimerEvent(0.0);
click = FALSE;
if (toggle) hole();
else solid();
}
else
{
llSetTimerEvent(0.5);
click = TRUE;
}
}
timer()
{
llSetTimerEvent(0.0);
click = FALSE;
if (toggle = !toggle) hole();
else solid();
}
} |
Show » |
|
integer toggle;
integer click;
solid()
{
llSetPrimitiveParams([
9, 0, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>,
19, 0, 0, 0,
18, 0, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 0, 0,
17, 0, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <3.000000, 2.000000, 0.000000>, <1.000000, 0.000000, 0.000000>, -1.570844,
19, 5, 0, 0,
18, 5, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 5, 1
]);
llSetPrimitiveParams([
17, 5, "3a7cdf10-37de-0c77-7239-c09007d31d29", <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844
]);
}
hole()
{
llSetPrimitiveParams([
9, 0, 16, <0.000000, 1.000000, 0.000000>, 0.949000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>
]);
llSetPrimitiveParams([
19, 0, 0, 0,
18, 0, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 0, 0,
17, 0, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <3.000000, 2.000000, 0.000000>, <1.000000, 0.000000, 0.000000>, -1.570844,
19, 5, 0, 0,
18, 5, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 5, 1,
17, 5, "1911f90a-241d-6ba6-186c-58ec62b7bd3e", <0.050000, 15.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844,
19, 6, 0, 0,
18, 6, <1.000000, 1.000000, 1.000000>, 1.000000,
20, 6, 1,
17, 6, "3a7cdf10-37de-0c77-7239-c09007d31d29", <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, -1.570844
]);
}
default
{ llSetScale(<10.0, 10.0, 0.2>); llSetLocalRot(<-0.50000, -0.50000, -0.50000, 0.50000>); solid(); }{
state_entry()
touch_start(integer total_number)
{ llSetTimerEvent(0.0); click = FALSE; if (toggle) hole(); else solid(); }{
if (click)
else
{ llSetTimerEvent(0.5); click = TRUE; }}
timer()
{ llSetTimerEvent(0.0); click = FALSE; if (toggle = !toggle) hole(); else solid(); }}