Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

External asset support over HTTP.

Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
01-31-2006 07:15
I don't know if I posted this here yet, but...
llSetTexture("http://www.myserv.net/eggy.jp2";);
llTriggerSound("http://www.myserv.net/eggy.ogg";);
llRezObject("http://www.myserv.net/eggy.slc";);

Give the old asset server some rest!
Lumpy Tapioca
Registered User
Join date: 16 Dec 2004
Posts: 33
More fun if all objects had an optional URL property
01-31-2006 08:36
From: Eggy Lippmann
I don't know if I posted this here yet, but...
llSetTexture("http://www.myserv.net/eggy.jp2";);
llTriggerSound("http://www.myserv.net/eggy.ogg";);
llRezObject("http://www.myserv.net/eggy.slc";);

Give the old asset server some rest!


Good idea, but perhaps it needs higher level of redirection. Your method works great in scripts, but everything else (building and preview dialogs, unscripted objects) couldn't take advantage of this remote object method.

Although it still uses the asset server, something way more flexible and fun would be to leave those calls as-is and instead, all object types could be assigned a URL as a property, with the "real" object acting as a proxy if the URL doesn't respond within a certain time period. This way, if the remote server is pooched or no longer online as months pass, things you buy that use these remote-referenced objects don't totally break. It would be nice to add an auto-refresh rate to those URLs as well...

Your llRezObject("http://www.myserv.net/eggy.slc";); is the most interesting because it implies being able to save objects remotely or have a server generate them on the fly.
Satchmo Prototype
eSheep
Join date: 26 Aug 2004
Posts: 1,323
01-31-2006 11:37
From: Eggy Lippmann
I don't know if I posted this here yet, but...
llSetTexture("http://www.myserv.net/eggy.jp2";);
llTriggerSound("http://www.myserv.net/eggy.ogg";);
llRezObject("http://www.myserv.net/eggy.slc";);

Give the old asset server some rest!


Drool... also you can just change "eggy.jpg" on the server and have it reflect on all objects using it in world. Think web based configuration for vendors/picture frames/ao's/etc...
_____________________

----------------------------------------------------------------------------------------------------------------
The Electric Sheep Company
Satchmo Blogs: The Daily Graze
Satchmo del.icio.us