Webimage
default { state_entry() { llSay( 0, "osSetDynamicTextureURL Tester"); } touch_start(integer total_number) { llSay( 0, "Testing."); string dynamicID=""; integer refreshRate = 600; string contentType="image"; string srcURL = "http://www.yoururlgoeshere.com"; // URL string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate ); if (llStringLength(URLTexture)>0) { llSay(0,"URLTexture = "+URLTexture); llSetTexture(URLTexture, ALL_SIDES); } } }
oder
default {
state_entry()
{
llSay( 0, "osSetDynamicTextureURL Tester");
}
touch_start(integer total_number)
{
llSay( 0, "Testing.");
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
string srcURL1 = "http://www.goes.noaa.gov/FULLDISK/GEVS.JPG"; // Earth
string srcURL2 = "http://www.srh.noaa.gov/data/satellite/thumbs/ECI8.JPG"; // US Weather
string srcURL = "http://ichart.finance.yahoo.com/b?s=%5EGSPC"; // Stock market
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
if (llStringLength(URLTexture)>0)
{
llSay(0,"URLTexture = "+URLTexture);
llSetTexture(URLTexture, ALL_SIDES);
}
}
}