Jump to content

HTML-embedded Images on face of Prims


nitrogenfingers
 Share

You are about to reply to a thread that has been inactive for 4644 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi, Second Life community at large,

Part of a large-scale project I've been commissioned to do involves "dynamic posters"- primitives on walls that can change textures without a lot of technical knowledge. I've been told the images are web-embedded, so being able to provide a URL and use that as the face of the texture would be the ideal solution.

Where I've hit the stumble is with HTML embedding. Despite a lot of googling and reading through LSL's various APIs, I can't seem to find how to get web pages or even web textures to display on a prim, despite many development blogs and articles in the SL portal/LSL wiki that seem to promise this feature.

The description is a bit vague but take my word for it there a lot of compelling reasons why I'd rather use HTML than just loading in the textures as content, which I'm already clear on. Can anyone explain to me or point me to a resource that explains, using LSL, how to embed web pages or textures at a certain URL onto a prim? If it's not possible, please let me know so we can consider other options.

Thanks in advance for considering my problem.

Nitrogen Fingers

Link to comment
Share on other sites

Basically, there are two ways to achieve what you are looking for:

  1. Parcel media
  2. Shared media

Parcel media has been around for a long time. You need to have the rights to set media for the parcel and you can have just one piece of media per parcle at a time (it can be displayed on many different prims, though). You'll find more on the subject here and a starting point on how to script parcel media here

Shared media is relatively new - iit can only be viewed with viewer 2 or 3rd party viewers based on viewer 2 - to mention the biggest restriction straight away. With it, you can load (almost) any media from the web on any prim. You'll find more on that here and a starting point to scripting shared media here

Link to comment
Share on other sites

Yes it is possible. I have lots ot prims diasplaying my blog posts .. I can give you a prim that will show show a web page if you putl th url into the script

Here are wepbages describing this:

Posterize your blogs in Second Life

http://virtualoutworlding.blogspot.com/2011/04/posterize-your-blogs-in-second-life.html

Pix so you can see effect.

Preferences: Media. Sound. Prim browsers. Video

http://virtualoutworlding.blogspot.com/2011/06/kit-preferences-media-sound-prim.html

http://virtualoutworlding.blogspot.com/2011/06/kit-preferences-media-sound-prim.html

You can put video on the prim and play it

One limitation: this can only be seen by people using viewer 2, Firestorm, or other viewer 2 level client.

TKR

 

 

Link to comment
Share on other sites

When you say "i want to change dinamically a picture on a prim" it may depend how ( what action ) it changes.

 

If you want just a kind of diaporama or a carousel  , you may use llSetPrimMediaParams, llGetPrimMediaParam & llClearPrimMedia.

There are many pictures host services who can display for a diaporama with the pictures you have uploaded on their site .

 

For instance , you may use flicker , pick up the url of your diaporama , for instance

http://www.flickr.com/photos/hathuyanna/show/with/4444861729

and put it on the media on prim.

Flicker diaporama is nice because the menu goes away when your cursor is not above the picture after a moment

 

If you use LSL , you could swap from a diaporama to an another with an action of the user . For instance . Link your board with some prims who , by touch , will change the URL of the board .

Either load the url only when there is an avatar nearby and clear the media when nobody is nearby , tested by a sensor

 Check http://wiki.secondlife.com/wiki/LlSetPrimMediaParams for more informations

 

 

You may use too  the URL of a PNG but it s static not dynamic . Weirdly the URL of a TGA  or a JP2 will display the binary of the picture , but not the picture itself .

An other way is to use a dynamical page as PHP or JSP page , who will generate a picture  on the fly .

Probably you will need to tune with the sizes of the texture ( not of the prim ) and maybe  the offsets

 

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4644 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...