Forums > MaxMSP

Output data from Second Life into Max/Msp?

Mar 13 2007 | 6:00 pm


I am investigating the possibility of creating objects in Second Life (the virtual world) that approximately instantly sends data (preferably via the local SL client) to Max/MSP.

A simple practical example of why: I would like to create a button in Second Life, that when pushed, creates a resulting sound in Max/MSP which is then streamed back into the virtual world for the button-pusher to hear.

As far as I have been able to learn, it seems the only possibility for now, is a HTTP output object available in Second Life, for streaming or posting data to a web server (database). And then I could read this web server from Max/MSP. This would have insane latencies.

Another simpler but not so elegant solution is to create a few square objects in Second Life, position an avatar so he looks directly at them filling the screen, and then using these as color or symbol codes for Jitter to watch in real time, using colors/images to trigger specific instructions. This would have better latencies but would involve a camera filming a laptop…

A third solution is a variant of the above, creating frequency specific sounds in SL, so when outputted on the local computer speaker (or by redirecting audio), Max/MSP listens for this specific frequency. Again, not very elegant.

Both these cases are not optimal. Does anyone have any experience outputting data from SL into Max, or any smart suggestions?

I have not found any documentation or mentioning of any local scripting functions for the SL client.

Mar 14 2007 | 9:48 am

superballoon wrote:

> Both these cases are not optimal. Does anyone have any experience
> outputting data from SL into Max, or any smart suggestions?

You could make a lightweight MXJ web server object using some ready
rolled Java code, like:

A simple server example could be butchered into shape from here:


Mar 15 2007 | 1:24 am

I’d image some hefty java code could get htis working well, ahve a look at the netsend objects etc. If that doesnt work however (i’m no expert in that kinda programming) you could probably come up with a solution using jit.desktop and tracking colors etc that way (would save the trouble of the camera)
When I saw second life I thought about possibilites for music also, it just seems rather slow working on my mac so didnt fancy getting anything running parralel.

Good luck anyways


Mar 15 2007 | 10:10 am

Thank you both.

Yes SL is insanely slow on my mac, i also tried on PC it was a bit better but eons behind any FPS shooter or game.

In a few years time however, either SL or something similar will be very exciting.

May 16 2012 | 9:31 pm


I’m try to connect Max/Msp to second life..I’m thinking of creating proxy using libsecondlife. is there any tutorials on this? I can’t seem to find anything to help me with it. Any suggestions?

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP