Forums > Jitter

3d mesh with discrete force mapping

May 13, 2013 | 10:30 am

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


May 13, 2013 | 10:31 am

link didn’t post:


May 13, 2013 | 10:32 am

aw fer feck’s sake:


May 14, 2013 | 12:01 am

<code>

– Pasted Max Patch, click to expand. –

</code>


May 14, 2013 | 2:06 am

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:

Attachments:
  1. mesh

May 14, 2013 | 7:44 am

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.


May 14, 2013 | 7:51 am

<code>

– Pasted Max Patch, click to expand. –

</code>


May 14, 2013 | 9:10 am

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!

 

<pre><code>

– Pasted Max Patch, click to expand. –

</code></pre>


May 14, 2013 | 9:49 am

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


May 14, 2013 | 10:22 am

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?


May 14, 2013 | 11:39 am

how about this?

<code>

– Pasted Max Patch, click to expand. –

</code>


May 14, 2013 | 1:01 pm

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…."

<code>

– Pasted Max Patch, click to expand. –

</code>

Thanks again
Brendan


May 14, 2013 | 1:04 pm

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


May 14, 2013 | 1:09 pm

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


May 14, 2013 | 1:35 pm

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.


May 14, 2013 | 2:16 pm

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


May 14, 2013 | 2:58 pm

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.


May 15, 2013 | 2:36 am

Works a treat:


May 15, 2013 | 3:30 am

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


May 15, 2013 | 10:05 am

real nice. Looks exactly like one big mesh.


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