marcus welz

HTML5 Large Random Map test

Posted on October 9, 2010
This entry is part 6 of 7 in the series HTML5 and Erlang Game Development

This time it's building random patches. And I've added a layer for sprites. There's two of them and they're static, so again it's not too exciting. I did notice, however, that I'm running into serious performance issues when building these patches. So this technique isn't going to fly.

Maybe it's faster to farm out the work to web worker threads, but they don't have access to the DOM and can't use any HTML elements. So I'd have to pass everything as an array (from getImageData()) , let the web worker assemble the patch, which is then handed back as an array. I haven't tried that yet.

The other possibility is to have the server generate the patches. Google maps style. The immediate downside is that I'm no longer saving bandwidth, since the same tiles that were previously displayed on the client are now generated by the server. Maybe patches could be hashed and different areas of the map could be served by the same image, if the hash matches. That would also involve some Erlang. So far it's all just been JavaScript.

Print This Post Print This Post

SLBuzz.com snapshots are working again!

Posted on February 23, 2008

Earlier today Torley Linden contacted me to let me know that SLBuzz had stopped processing postcards sent from within Second Life.

Turns out that the issue was that the format of the embedded meta data had changed which the parser couldn't cope with. The new meta data is better as it also includes the region coordinates, not just the local coordinates. I modified the parser, and it's all working again, the backlog has been processed and nothing was lost. Currently, some of the postcards come in with old and some with new meta data, as there may be a rolling restart going on, but both formats are handled properly.

Keep the snapshots coming!

Print This Post Print This Post

MetaverseData beta starts

Posted on December 26, 2007

The key problem with developing for Second Life thus far has always been the less than sufficient APIs that Linden Lab offers.

When it comes to communicating with objects in-world, you have the choice of the reliably broken XML-RPC, polling from in-world via llHTTPRequest(), or sending bite-sized data snippets by email. To make it easier, faster, and more flexible, MetaverseData introduces the Message Exchange Service that makes this task painless.

Interacting with avatars (say, sending message, or delivering a product) can be just as much of a hassle. Everything is dependent on their UUID also known as their "key". If you don't have it, you can't do it. Again, Linden Lab currently does not offer a useful way of acquiring the UUID, making transparent web applications that much harder. MetaverseData offers Avatar Services that let you look up avatar related information easily via REST calls.

Getting a list of region data used to be fairly straight forward task; everything was embedded in the JavaScript file that was part of the MapAPI which was used by SLURL.com. With Linden Lab switching to Google Maps and custom map tiles all that went away. [I believe this is an effort to conceal the size of the grid.]

Finally, uploading textures into Second Life has only been possible using the Second Life client. The Texture Service allows you to send an image in pretty much any format, converts it to JPEG2000, uploads the image into Second Life, and returns the UUID which you can use in your Second Life scripts to interact with the image in-world.

Print This Post Print This Post

Speedier IMs

Posted on August 10, 2007

I fixed a bug. Now sending in-world IMs, adding someone to the friends list, and sending email from profiles should be snappier.

Posted by Second Life Resident Mark Barrett.

Print This Post Print This Post
Filed under: Second Life No Comments

Skiing in the nude

Posted on March 14, 2007

Well that was not exactly what I had hoped for. So I'm on the Weather Island, which looks great. Extreme skiing sounds like fun, so I bought my set of utilities (boots, skiis and poles). I ski in RL so maybe this will be fun.

On top of the hill I run into Dharma Austin, who told me that she just gave it a whirl and found it quite hard actually.

So I'm trying to put on the skiis but it's not going so well. I used the inventory filter "Skis", which gave me the skis but at the time I didn't know that boots and poles were part of the package. Once I had it figured out, I thought that to wear all of it, I just drag and drop the folder with the stuff onto my avatar. But that's not how it works. Instead, it took away all my clothing, etc.

Last thing I saw was:

[15:52] You: doh
[15:52] Dharma Austin: you freak!

Before I could explain anything she teleported away…

Not my day, is it?

Posted by Second Life Resident Mark Barrett.

Print This Post Print This Post
Filed under: Second Life No Comments