Linden text version 2
{
LLEmbeddedItems version 1
{
count 0
}
Text length 3596
HI (Francais a la suite)


I was experimenting with SL2 HTML texture.  Then I look at the feature in OpenSim. This feature here date before the SL2 version. This implementation is done throught OS script and will texture a prim face from any image available from the web. To present a complet  web page one would have to do what SL2 does which is convert it to image first then send it to be use as texture. 

The first image of this tuto is changes daily.  The following link give you the tutorial in openText format. Open the link as save as the document. 




The script of this tutorial is at the end.

Should you have any question or just to say hello do not hesitate to contact me at gimisa@yahoo.fr

* copywrite and other stuff. Please refer to commun sens The is given to you as is no explicite or implicite waranty or whatever. You can use trash improve.  A free world is a wonderfull thing and it start with you. 

 Thanks

gimisa@yahoo.fr
_________________________________________________

Bonjour, 

J experimentais avec la texture HTML sur Sl2. J ai penser regarder la version OpenSim. Pouvoir texturer en HTML en opensim date d un bon moment. En opensim la texture s applique avec un script OS. Le script texture une ou toutes les faces du prim avec une image provenant du web. Pour presenter une page web complete il faudrait faire comme SL2 et convertir la page en image. puis la transmettre au sim. 

L'image qui texture la premiere écran du tututrial est changer toutes les jours. 

Le liens suivants presente le tutorial en francais en format openoffice. Faire save link target as:

http://24.203.57.202:8888/FTP/Sl/blenderTexture.odp

Le scrupt du tutorial est a la fin. 

Si vous avez une question ou juste pour die bonjour n'hesiter pas a me contacter a gimisa@yahoo.fr

*droit d auteur et autre,  utiliser le gros bon sens. Ce travail vous est donné gratuitement.  Il n y a pas de garantie implicite ou explicite. Vous pouvez utiliser comme bon vous semble ou mettre a la poubelle. Un monde libre et gratuis commence avec vous. 

Merci
gimisa@yahoo.fr
___________________________________________________

//modifier par Gimisa pour changer de texture a chaque clic
//XEngine

string srcURL; 
string  dynamicID="";
integer refreshRate = 600;
string  contentType="image";
integer nimage = 0;
integer ntot =2;


default {
    state_entry()
    {
        list dateComponents = llParseString2List(llGetDate(), ["-"], []);
        llSetTimerEvent(60*60*24) ; //time out
        integer year  = (integer) llList2String(dateComponents, 0);
        year =year -1;
        string month = llList2String(dateComponents, 1);
        string  day   =  llList2String(dateComponents, 2);
        srcURL = "http://miotd.com/images/"+ (string) year + month + day +".post.jpg";

      string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL  , "", refreshRate );
         if (llStringLength(URLTexture)>0)
       {
         llSetTexture(URLTexture, ALL_SIDES);
       }//if
    }//entry
    
    touch_start(integer total_number) 
    {
        llSetTimerEvent(600) ; //time out
        srcURL = "http://24.203.57.202:8088/" + nimage +".jpg"; // nouvelle image
        llOwnerSay(srcURL);
        nimage=nimage +1;
    
    if(nimage >  ntot-1) {
        nimage = 0 ;
    } //if
        
      string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL  , "", refreshRate );
      if (llStringLength(URLTexture)>0) {
         llSetTexture(URLTexture, ALL_SIDES);
       }//if
   }//touch

    timer()
    {
        llResetScript();
    }//time


} //default



 }
 