Ozlabs.org

<October 2006>
Su Mo Tu We Th Fr Sa
       

Chris's Random Ramblings

Mon, 30 Oct 2006 - VNC read-only client in Second Life (sorta)

Its kind of held together with sticky tape and blu tack, but I have a very slow frame rate (maybe record slow!) vnc client view working inside Second Life

Ozlabs

Lots of people have wanted a web browser on a primitive in SL, but this is really cheating as its not interactive. However, I don't think it would be that hard to get it to be able to change to arbitary webpages based on in-world commands - it'd be nice if you could remotely tell firefox to open a url in the current tab rather than opening a new tab or window.

If I can get the frame rate up to a decent value, I think it could be quite useful as a computer training tool. Students could see live demonstrations from a VNC session which the instructor controls, without the need for the students to setup a vnc client themselves and work out how and where to connect.

So far I haven't had much success with getting the real time video streaming tools on Linux working the way I want. They're pretty well setup for live streaming from hardware (eg webcams, video capture cards), but haven't had any success in working out how to convert a series of image files into served streaming video. I think that theoretically ffmpeg and ffserver should be able to do it, but either that functionality is broken or I haven't found the magic incantation yet. If anyone reading this has this sort of thing working, please let me know how its done.

Thu, 19 Oct 2006 - Second life IRC Bridge

I've been playing around with building and scripting in the Second Life virtual world, mostly building simple things like teleport pads, greeter objects, and fountains in order to learn how things work. I've also been thinking about linking real life concepts into the virtual world, so built an object which bridges IRC channels into second life.

When placed in Second Life, everything publicly said within 20 metres is relayed into the IRC channel and everything in the IRC channel is relayed into Second Life and can be heard within a a 20 metre radius. There is an existing project SLIRC which uses the open source libsecondlife, but it requires a spare Second Life account to setup. In contrast my implementation just uses RPC-XML calls (you can effectively make function calls into Second Life objects over the internet) and is glued together with a bunch of Perl and PHP. There is some latency (average of about 2 seconds) in the bridge, but for IRC I don't think that matters too much.

If you're interested you can have a look at (and play with) it in Second Life in the OzLabs building on Hursley Island.

Ozlabs

Kelly has been building up a virtual model of a house design we've been working on (no we wouldn't really have a moat in real life). Its been really quite useful in deciding what sort of things would work and what wouldn't in real life and we've been tweaking the original 2-D design in response.

House

It has been interesting to see that Reuters now have a presence inside Second Life, with a reporter spending an hour day inside Second Life to report on events. I had a look around their virtual office and saw that they have RSS and video feeds of real life news. From what I have read elsewhere it sounds like they are also trying to develop areas within SL for discussion of real life news which will be an interesting change from web type forum discussions.

Thu, 05 Oct 2006 - Found a Second Life

After reading some online articles about what some IBM employees have been doing in a virtual world I decided to check it out myself. Second life is a 3D virtual reality earth-like world. If it was real it would be about the size of Boston. You can see and communicate with other people, and are represented in the world by an avatar. There is no end goal designed into the game. What a person does, and how you interact with others is left up to the player. Its not really a game in the same sense as other virtual games such World of Warcraft or even Eve Online.

Inside this virtual world you can build objects out of simple primitives such as cubes, pyramids, and spheres (just to name a few) which can be modified and textured using in game editing tools. There is also a object oriented scripting programming language, whose syntax is similar to say C or Java. Using these tools in conjunction you can create objects which interact with other objects in the world or with other players.

I would not classify the graphics detail (at least with my reasonably oldish computer) as cutting edge. Nearly everything is downloaded on the fly from the servers so you do need a good internet link and reasonably large quota - I think I'll actually get through my 20Gb quota this month.

I find several aspects of this game quite interesting. I think I'll talk about them a bit more in detail in future posts, but briefly its:

Here's a few snapshots I took in Second Life. My desktop system has 4 year old graphics card in it and it wasn't cutting edge at the time I bought it, so the graphics could probably be much better with better hardware.

Almaden Island

IBM owns a virtual island within Second Life called Almaden. There are various presentations available for anyone to look at as well as some virtual freebies (t-shirts, caps etc).

Stargate

Yes, thats a Stargate. It will dial other gates, just like in the TV show and teleport your Avatar to other places within Second Life.

Relaxed

That's my Avatar relaxing in a comfy chair while Kelly builds our virtual house.

Here's a few links to more information about what people are doing in Second Life:

And yes, there is a Linux client. Its an alpha version, but at least for my hardware configuration, the graphics work better (less clipping bugs) than the windows version.