PRIM_NORMAL & PRIM_SPECULAR offsets <0 & >1 are truncated to 0 and 1, respectively
closed
Arduenn Schwartzman
llSetlinkPrimitiveParamsFast PRIM_NORMAL & PRIM_SPECULAR offset values <0 & >1 are 'truncated' to 0 and 1, respectively, in contrast to PRIM_TEXTURE offset values, which remain unchanged.
Log In
Spidey Linden
updated the status to
closed
Hello, and thank you for your feature request.
Incoming suggestions are reviewed in the order they are received by a team of Lindens with diverse areas of expertise. We consider a number of factors: Is this change possible? Will it increase lag? Will it break existing content? Is it likely that the number of residents using this feature will justify the time to develop it? This wiki page further describes the reasoning we use: Feature Requests
This particular suggestion, unfortunately, cannot be tackled at this time. However, we regularly review previously deferred suggestions when circumstances change or resources become available.
We are grateful for the time you took to submit this feature request. We hope that you are not discouraged from submitting others in the future. Many excellent ideas to improve Second Life come from you, our residents. We can’t do it alone.
Thank you for your continued commitment to Second Life.
Maestro Linden
Moving to feature requests. Per https://wiki.secondlife.com/wiki/PRIM_NORMAL and https://wiki.secondlife.com/wiki/PRIM_SPECULAR , it is the expected for offsets to be clamped to [0,1]:
> vector offsets – x and y range from 0.0 to 1.0, in 0.0001 increments. (z is ignored)
> offsets and rotation_in_radians are limited to positive values only, unlike PRIM_TEXTURE and GLTF Overrides. To convert a negative offset to positive, add 1, and to convert a negative rotation to positive, add TWO_PI.
I do see that negative offset values can be set via the build tool, so it would be possible to change the LSL behavior to removing the clamping, though this might break existing scripts that rely on the current behavior.
Arduenn Schwartzman
You can see when you run this script in a prim cube:
default{
state_entry(){
llSetLinkPrimitiveParamsFast(LINK_THIS,[
PRIM_TEXTURE,
ALL_SIDES,TEXTURE_DEFAULT,
<1,1,0>,<-.5,0,0>,0, // Offset.x shows -.50000 in Edit window
PRIM_NORMAL,
ALL_SIDES,TEXTURE_DEFAULT,
<1,1,0>,<-.5,0,0>,0 // Offset.x shows 0.00000 in Edit window
]);
}
}