| Author |
Message |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Thu Feb 10, 2011 6:33 pm Post subject:
SL2OSC and ChucK Subject description: worked with pd but not ChucK |
 |
|
Hi, I'm working with a friend on creating a bridge between the 3d VR world of Second Life and OSC, hoping to control ChucK with 3D objects and avatars. I got it working with pd, but ChucK seems to be blocking the port somehow. In fact, when I run pd and ChucK at the same time, pd fails but all I have to do is quit ChucK and pd magically works. I don't understand. Any suggestions?
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 373
G2 patch files: 100
|
Posted: Fri Feb 11, 2011 3:13 am Post subject:
|
 |
|
I have a faint memory that UDP isn't in broadcast mode by default, so once a message finds a listener, it will go there and skip the others. UDP listeners don't hog a port like with TCP, so you can have several apps listening on the same port at the same time.
I think ChucK also has some problem with the data you are sending - is it possible to do a hex dump of a message that ChucK refuses to read?
/Stefan _________________ Antimon's Window
@soundcloud @Flattr home - you can't explain music |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Fri Feb 11, 2011 3:47 am Post subject:
|
 |
|
Stefan, these are the test programs. They work as localhost but not from SL. The event "e" just never fires, and I don't know why.
Les
| Description: |
|
 Download (listen) |
| Filename: |
OSCrecv.ck |
| Filesize: |
593 Bytes |
| Downloaded: |
341 Time(s) |
| Description: |
|
 Download (listen) |
| Filename: |
OSCsend.ck |
| Filesize: |
697 Bytes |
| Downloaded: |
352 Time(s) |
_________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Fri Feb 11, 2011 5:43 am Post subject:
|
 |
|
OK we FINALLY, after much frustration, figured it out. Woody had implemented a subset of the OSC protocol for test purposes that only sent one value at a time. I was misunderstanding the identifiers but now I get it and it works. Thanks for the response, Stefan, even though you didn't have the answer it helped to have an extra pair of ears to talk it out with. (and brain between the ears lol).
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Antimon

Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 373
G2 patch files: 100
|
Posted: Fri Feb 11, 2011 7:00 am Post subject:
|
 |
|
Hehe talking to the monkey person often works. Could you tell us what the problem was? I had a quick look and couldn't see what was wrong..
/Stefan _________________ Antimon's Window
@soundcloud @Flattr home - you can't explain music |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
|
Posted: Fri Feb 11, 2011 7:50 am Post subject:
|
 |
|
It was simply a case where we had created a temporary limited solution and not knowing much about ChucK with OSC, or OSC at all, I didn't know how to code the ChucK software properly for the temporary solution. But it works good now, and i've got a KS loop under SL control now. whoot!
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
|