[Opensim-users] lightshare water fog
paul emery
pablo at lansing.com
Fri Jan 13 18:15:21 UTC 2012
I am trying to change water fog setting to zero. such as in the atomist
preset. I can do this manually using the Environmental Editor/Advanced water
setting. I would like to allow avatar to do this by clicking on an object. I
put the following script in a prim and expected to rez it and have it
perform achieve this result. The script runs correctly but seems to have no
effect on water fog. Anybody have any suggestions on what i am doing wrong.
Using Imprudence 1.3.2 osgrid 0.7.3 2011-12-17 and mysql database. Help.
//This script trys to set LightShare water fog settings to zero.
//imprudence client has allow region lightshare to "always"
//opensim.ini has
// [LIghtShare]enable_windlight = true and
// [XEngine] AllowLightShareFunctions = true
integer result;
default
{
state_entry()
{
llSetText("Touch to return lightshare\nto default",<1,1,1>,1);
//llSetAlpha(1.0,ALL_SIDES);
}
touch(integer num_detected)
{
llOwnerSay("I am being touched by " + llDetectedName(0) + ".");
result=lsSetWindlightScene([WL_WATER_FOG_DENSITY_EXPONENT, 0.0]);
llSay(0,"result is"+result);
}
}
--
View this message in context: http://opensim-users.2152040.n2.nabble.com/lightshare-water-fog-tp7184991p7184991.html
Sent from the opensim-users mailing list archive at Nabble.com.
More information about the Opensim-users
mailing list