Output data from Second Life into Max/Msp?

Mar 13, 2007 at 6:00pm

Output data from Second Life into Max/Msp?

Hello

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.

#30800
Mar 14, 2007 at 9:48am

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:

http://jakarta.apache.org/httpcomponents/index.html

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

http://jakarta.apache.org/httpcomponents/httpcore/examples.html


Owen

#99017
Mar 15, 2007 at 1:24am

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

T

#99018
Mar 15, 2007 at 10:10am

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.

#99019
May 16, 2012 at 9:31pm

Hello,

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!

#99020

You must be logged in to reply to this topic.