Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Picture Viewer Gallery - Theoretical

Zante Zapedzki
We need html on a prim!
Join date: 15 Feb 2007
Posts: 123
04-05-2007 09:42
Hello all, I'd be grateful if someone could go through the pseudo code for the following concept as I have very little scripting experience with second life.

I want to create a standardized picture viewer that can be duplicated. The viewer (with the aid of its back and forward buttons) is able to cycle through the contents of another prim (the texture bank).

The idea is to create a gallery that runs from the contents of a single prim. If someone could describe how I'd go about this, in terms of pseudo code or something, it'd at least give me some sort of starting point. : )

The perfect version would have some sort of dialog-based browser that would allow people to select different texture banks via a third button on each viewer.

Again, I'm not asking for a script as I know it's hard work. I'd like it very much if someone could share their know-how. Something like a quick feasibility study.

Thanks for your time!

-Zante.Z
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
04-05-2007 11:50
I've seen a couple of free viewers in-world with full rights that does this.

Here one for 1L with full rights.
http://www.slexchange.com/modules.php?name=Marketplace&file=item&ItemID=21765
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
04-05-2007 16:52
I think I would use a notecard within your server (library) prim. This would offload processing to the various viewers, rather than make the server do a lot of work (since it'll need to respond to many viewers).

So, your server prim would include notecards, each card a gallery which lists texture UUIDs, one per line. To make for quick notecard creation, make a prim that chats the UUID of every texture in its inventory. Then copy/paste the listed UUIDs to notecards.

For your display objects, you need to have it llEmail() the server object. This means the server UUID can not change once you go 'live'. The display might first request a list of notecards (galleries) within the server. The user may then request a particular gallery via dialog. The display will again llEmail the server and request the UUID for the particular notecard. Once the display has the UUID, it can then read the notecard line-by-line to display the textures via UUID.