Change font size
It is currently Sat Dec 15, 2018 2:45 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: Website Image on a Prim
PostPosted: Sat Feb 02, 2008 8:26 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
{L_CODE}:
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);
      }
  }
}


Top
 Profile  
 
 Post subject: Re: Website Image on a Prim
PostPosted: Wed Feb 20, 2008 7:55 pm 
Furious Typer
User avatar

Joined: Sat Feb 02, 2008 10:02 pm
Posts: 104
Location: Romania, Bucharest
What would be really interesting is if you could click the links on a page on the face of a prim and go to that link like in a browser... or even write into the text fields and have a back / forward method. But that would require client-side implementations to work :)


Top
 Profile  
 
 Post subject: Re: Website Image on a Prim
PostPosted: Wed Feb 27, 2008 3:03 pm 
User avatar

Joined: Tue Feb 05, 2008 12:13 am
Posts: 24
Location: Central California
Implementing llLoadURL would be a step in the right direction.

here's another version:

{L_CODE}:
//cs
// kinoc test script
// each touch advances to the next picture
integer picindex=0;

LSL_Types.list urlarray = [] ;

public void default_event_state_entry()
{
llSay( 0, "cs osSetDynamicTextureURL Tester");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GEVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/MTVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GIVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GMVS.JPG");
urlarray.Add("http://www.osei.noaa.gov/IOD/OSEIiod.jpg");
urlarray.Add("http://internettrafficreport.com/gifs/tr_map_global.gif");
}

public void default_event_touch_start(integer total_number)
{
llSay( 0, "Fetching.");
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
picindex = (picindex+1) % urlarray.Length;
string srcURL = urlarray.GetSublist(picindex,picindex).ToString(); // URL
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
if (llStringLength(URLTexture)>0)
{
llSay(0,"URLTexture = "+srcURL);
llSetTexture(URLTexture, ALL_SIDES);
}

_________________
"...a book with no readers is not a fully effective work of art." Rudy Rucker


Top
 Profile  
 
 Post subject: Re: Website Image on a Prim
PostPosted: Thu May 15, 2008 1:16 am 

Joined: Wed May 14, 2008 12:58 am
Posts: 6
Pablo Pharmanaut {L_WROTE}:
Implementing llLoadURL would be a step in the right direction.

here's another version:

{L_CODE}:
//cs
// kinoc test script
// each touch advances to the next picture
integer picindex=0;

LSL_Types.list urlarray = [] ;

public void default_event_state_entry()
{
llSay( 0, "cs osSetDynamicTextureURL Tester");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GEVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/MTVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GIVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GMVS.JPG");
urlarray.Add("http://www.osei.noaa.gov/IOD/OSEIiod.jpg");
urlarray.Add("http://internettrafficreport.com/gifs/tr_map_global.gif");
}

public void default_event_touch_start(integer total_number)
{
llSay( 0, "Fetching.");
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
picindex = (picindex+1) % urlarray.Length;
string srcURL = urlarray.GetSublist(picindex,picindex).ToString(); // URL
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
if (llStringLength(URLTexture)>0)
{
llSay(0,"URLTexture = "+srcURL);
llSetTexture(URLTexture, ALL_SIDES);
}



it doesn't work now


Top
 Profile  
 
 Post subject: Re: Website Image on a Prim
PostPosted: Thu May 15, 2008 3:49 pm 

Joined: Mon Feb 04, 2008 6:40 pm
Posts: 7
sunnydu {L_WROTE}:
Pablo Pharmanaut {L_WROTE}:
Implementing llLoadURL would be a step in the right direction.

here's another version:

{L_CODE}:
//cs
// kinoc test script
// each touch advances to the next picture
integer picindex=0;

LSL_Types.list urlarray = [] ;

public void default_event_state_entry()
{
llSay( 0, "cs osSetDynamicTextureURL Tester");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GEVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/MTVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GIVS.JPG");
urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GMVS.JPG");
urlarray.Add("http://www.osei.noaa.gov/IOD/OSEIiod.jpg");
urlarray.Add("http://internettrafficreport.com/gifs/tr_map_global.gif");
}

public void default_event_touch_start(integer total_number)
{
llSay( 0, "Fetching.");
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
picindex = (picindex+1) % urlarray.Length;
string srcURL = urlarray.GetSublist(picindex,picindex).ToString(); // URL
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
if (llStringLength(URLTexture)>0)
{
llSay(0,"URLTexture = "+srcURL);
llSetTexture(URLTexture, ALL_SIDES);
}



it doesn't work now



public void default_event_touch_start(integer total_number) needs to be changed to
public void default_event_touch_start(LSL_Types.LSLInteger total_number )
recent changes to the script engine caused a change in the types that interface with scripting system. So while it is all C#, the event calling it comes from the LSL engine and it will give you a "LSL_Types.LSLInteger" which is really an integer inside but the compiler wont accept it just being defined as "integer". If you change it should work. Of course the other possible fix is to have the //CS preprocessor make the change.


Top
 Profile  
 
 Post subject: Re: Website Image on a Prim
PostPosted: Thu May 15, 2008 3:57 pm 

Joined: Mon Feb 04, 2008 6:40 pm
Posts: 7
There is also a Timer based solution.
{L_CODE}:
//cs

integer picindex=0;
bool randflag = true;

LSL_Types.list urlarray = []  ;


public void default_event_state_entry()
{
    llSay( 0, "osSetDynamicTextureURL Tester");

  urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GEVS.JPG");
  urlarray.Add("http://www.goes.noaa.gov/FULLDISK/MTVS.JPG");
  urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GIVS.JPG");
  urlarray.Add("http://www.goes.noaa.gov/FULLDISK/GMVS.JPG");
  urlarray.Add("http://www.osei.noaa.gov/IOD/OSEIiod.jpg");
  urlarray.Add("http://internettrafficreport.com/gifs/tr_map_global.gif");

   llSetTimerEvent( 30); // create a "timer event" every 20 seconds.
}


public void default_event_timer(){

  //  llSay( 0, "Fetching.");
  string dynamicID="";
  integer refreshRate = 600;
  string contentType="image";
  if (randflag==true){ picindex = llFloor(llFrand(urlarray.Length +0.5));}
  picindex = (picindex+1) % urlarray.Length;
  string srcURL = urlarray.GetSublist(picindex,picindex).ToString(); // URL
  string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
  if (llStringLength(URLTexture)>0)
  {
  //llSay(0,"URLTexture = "+URLTexture);
  llSetTexture(URLTexture, ALL_SIDES);
  }
}


Top
 Profile  
 
 Post subject: Re: Website on a Prim
PostPosted: Tue Aug 05, 2008 6:17 pm 

Joined: Tue Aug 05, 2008 6:06 pm
Posts: 3
this loads osg logingscreen.php on click or Say /5 http://yada.com

{L_CODE}:
default
{
   state_entry()
   {
       llSay( 0, "osSetDynamicTextureURL Tester");
         llListen(5,"", NULL_KEY ,"");
   }
   touch_start(integer total_number)
   {
     llSay( 0, "Testing.");
     string  dynamicID="";
     integer refreshRate = 600;
     string  contentType="image";
     string srcURL = "http://icf.de/cgi-bin/slweb2?url=http://osgrid.org/loginscreen.php"; // URL
     string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL  , "", refreshRate );
     if (llStringLength(URLTexture)>0)
      {
        llSay(0,"URLTexture = "+URLTexture);
        llSetTexture(URLTexture, ALL_SIDES);
      }
  }
 
          listen(integer number, string name, key id, string m)
     {
         
         llSay( 0, "Testing.");
     string  dynamicID="";
     integer refreshRate = 600;
     string  contentType="image";
     string srcURL = "http://icf.de/cgi-bin/slweb2?url=" + m ; // URL
     string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL  , "", refreshRate );
     if (llStringLength(URLTexture)>0)
      {
        llSay(0,"URLTexture = "+URLTexture);
        llSetTexture(URLTexture, ALL_SIDES);
      }
       
    }
 
 
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


Who is online

Users browsing this forum: legacy_google [bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net