3d mesh with discrete force mapping

brendan mccloskey's icon

Hi
I have a 6 x 3 force-sensor matrix connected to Max and I would like to visually represent the 18 discrete and dynamic streams, something like Randy Jones has for his digital tabla here:

Perhaps there's even something lurking on the jit.phys helpfiles or examples I could tinker with.

Many thanks

Brendan

brendan mccloskey's icon

link didn't post:

brendan mccloskey's icon
Wetterberg's icon
Max Patch
Copy patch and select New From Clipboard in Max.
brendan mccloskey's icon

Hi Wetterberg
many thanks for this; am I initializing it correctly? I hit the loadbang, set the z-plane scalar then start the metro and I get a grey box with elongated polygons:

mesh.png
png
Wetterberg's icon

ah yeah, I keep forgetting to initialize the parameters in the attruis (I really don't like that way of working, you can't control them properly etc)

Lemme real quick set up the @'s and I'll re-up.

Wetterberg's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Luke Woodbury's icon

Just emailed you Brendan, but here you are, something with jit.gl.nurbs. You could set up 18 of the nurbs objects like in this patch and position them or if that's not too efficient (not sure) you could do it all with one big nurbs, but controls might get complicated!

Max Patch
Copy patch and select New From Clipboard in Max.

brendan mccloskey's icon

Thank you gents.

I'll tinker away at these, attempting to duplicate and offset positions for each nurb via the [attrui] to [jit.gl.nurbs]; I will return here if I encounter any issues with [jit.noob]
;¬)

Brendan

Wetterberg's icon

I think the problem with the setcell method is that it overrides the lovely snorm work that goes before it - it'll move not just the z, but also reset the x and y for any incoming data to 0,0.

Perhaps combining the two examples is in order?

Wetterberg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

how about this?

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Thanks Wetterberg, the idea of using a physical surface is attractive, I particularly like the ability to distort or disturb a plane or virtual sheet in discrete locations in this way. But tweaking the coordinates and physics of such an approach would be beyond the time I have available sadly, so I'll go with Luke's suggestion solely because I can adapt it quickly to my exact needs. I have created 2 discrete nurbs meshes with independent distortion (which will originate from the FSR input to Max) and I will now just steam ahead and repeat the process for all 18 sensors. I've posted it below in the hope that either of you will glance at it and think either "yeah, not bad go for it" or "DUDE!! You CANNOT do this, because...."

Thanks again
Brendan

Wetterberg's icon

I'm very curious, what's the sensor grid comprised of?

brendan mccloskey's icon

Aha!

I have built a customized and accessible control interface (for performers with cerebral palsy) using 18 DIY force-sensors (copper, Velostat, silicone rubber and ultrabright LEDs); the signals are mapped to a string model, a novel granular playback synth and a simple FM synth. With some very exciting performative mappings.
Coming soon to a conference near you :¬)

Brendan

Wetterberg's icon

well well well!

Uhm... if you ever... uhm... need... ablebodied testers...

Duplicating the nurbs out seems valid, especially since it's only 18 you're dealing with. Also, it'll make it easier to apply brightness changes to each zone individually. It's simple, and it'll work, from what I can tell.

brendan mccloskey's icon

Indeed!

It would be a bonus if the instrument found favour with both disabled and non-disabled performers alike, so perhaps I'll "use" you when my PhD is done..........future work, and all that.

I'm finding the duplication process really laborious, as my maths stinks. If my first (lefthand) column consists of the following position attributes:
-3.75 -2.65 -7. (bottom left)
-3.75 -1.65 -8.75 (middle left)
-3.75 -0.65 -10.5 (top left)

what is the quickest way to plot each subsequent row to the right? Simply retain the second (changing) pairs of coordinates and shift the first X coordinate?

Brendan

Wetterberg's icon

At any rate I'm looking forward to hopefully getting my hands on your written work for this down the line.

yeah, if the nurbs is exactly 1 unit big, then shift by 1. Yeah, that's like the one reason for using a single big mesh, but it's also pretty much a set-and-forget thing, I'd assume.

brendan mccloskey's icon
Luke Woodbury's icon

Hey, looks nice, can't wait to see it hooked up for real!

Wetterberg's icon

real nice. Looks exactly like one big mesh.