OSC send and receive Structures.

bernardo's picture

the question is kinda simple: why cant i send structures via osc? everything is ok but structures no can do. why? and how can i fix this?

kineme core 004 leopard osx macbookpro

thanks. b.

.lov.'s picture
Re: OSC send and receive Structures.

Hmm, as i know Mansteri works on a better OSC plugin which can send/receive structure.

dust's picture
Re: OSC send and receive Structures.

you can send a structure through osc that is how it works, multi dimensional structures don't work so well. but "floats" is for structures

bernardo's picture
Re: OSC send and receive Structures.

sorry dust no can do structure type:

point1: x:float y:float z:float point2: x:float y:float z:float (..)

and no de monsteri plugin does not pass structures.

dust's picture
Re: OSC send and receive Structures.

here is a patch sending a structure of 127 via osc this is a one dimensional array structure like i said 2d structs don't work.

PreviewAttachmentSize
oscStruct.qtz4 KB

waxtastic's picture
Re: OSC send and receive Structures.

Well, I've been working on that, but I'm having problems with detecting and sending the right data types.

I have a version that sends structures containing only strings just fine, but everything else seems to fail miserably. I haven't had the time to work on the plugin for a few months though.

dust's picture
Re: OSC send and receive Structures.

i have been using BBOSC as of late for bundling of mixed data types. i haven't run into any datagram buffer over runs or port binding issues with BBOSC. haven't tried vvosc yet.

bernardo's picture
Re: OSC send and receive Structures.

maybe there is a way of doing something like parsing the structure the 2D one into a 1D by doing something like:

   point1:
     x:0.00023
     y:0.00433
     z:0.02023
   point2:
     x:0.10023
     y:0.00023
     z:0.00023
(...)
INTO:THIS:
   (1)point1:
   (2)x:0.00023
   (3)y:0.00433
   (4)z:0.02023
   (5)point2:
   (6)x:0.10023
   (7)y:0.00023
   (8)z:0.00023

and on the other side of the osc have a javascript that re build the structure that would be like this for each (4)(point) add the structure value ??? thanks bern

waxtastic's picture
Re: OSC send and receive Structures.

If you are only sending four points, this would be pretty easy to do with the default OSC sender patch. Just use different name spaces with the floats option.

Then just input a structure with the x, y and z values to each input.

So your osc messages would look something like this:

/point1 0.1 0.1 0.1
/point2 0.1 0.1 0.1
/point3 0.1 0.1 0.1
/point4 0.1 0.1 0.1

Depending on what you are actually trying to do this might or might not work for you.

dust's picture
Re: OSC send and receive Structures.

have you looked at the tuio plug-in this is a implementation of osc that does some pretty cool calculations for coordinates. it can send speed and acceleration information as well as coordinate data and rotations etc.

bernardo's picture
ok IT WORKS!!!! EXACTLY As i wanted

thnaks alot everyone thanks to the tuio team and everyonelse now i can input my fingers in VDMX now that is something to be proud of. thans kineme team.