llReplaceAgentEnvironment restarts the transition every time the same environment is re-applied
Tetsuryu Vlodovic
A script that reapplies an environment to an avatar at set intervals using a timer event, causes the transition to restart every time it is re-applied, even when it's the same environment, creating a "bouncing" effect where the sun/moon keep moving back and forth in the sky, as well as causing probe reflections to constantly turn on and off as the environment keeps constantly changing.
The only way to fix this at the moment is to simply set the transition time to zero, but on some viewers like black dragon the reflection flickering persists despite of this, creating an inconsistent experience between viewers.
Log In
Dan Linden
Thank you for the example script, Tetsuryu. I see the sun ping-ponging at your test location but I don's see the sun ping-ponging with the script. Is your example location switching between 2 different skies?
Tetsuryu Vlodovic
Dan Linden I think the ping-pong effect only happens with dynamic day cycle settings and not static skies; try replacing the setting in the sample script with a full day cycle one. Even after doing so myself I had to teleport in and out to make it happen.
Dan Linden
marked this post as
open
Dan Linden
marked this post as
needs info
Dan Linden
Hi Tetsuryu.
Could you provide an example script or a location where this issue happens? If you don't want your script to be public, it can be sent to bug-attachments@lindenlab.com
Thank you!
Tetsuryu Vlodovic
Dan Linden
I was able to reproduce it easily enough with just this script
default
{
state_entry()
{
llSetTimerEvent(5);
}
timer()
{
llReplaceAgentEnvironment(llGetOwner(), 2.5, "A-12AM");
}
}
I also set up a quick and dirty skybox in this location that shows it off in this location http://maps.secondlife.com/secondlife/Keranio/20/200/1301