Hello everybody,
super newby question here. I am wondering if is it possible to control the navigation inside the fluid.plotter with x y data coming from a sensor such as Kinekt instead of with the mouse. It would be super cool to control many plotters in real time with different slicing and settings, while tracking the movement of the body of a performer. I don’t know if this makes sense - ahah!
Thank you in advance for the help, it has been great to discover your amazing work!
Francesca
Hey Francesca,
Totally possible with some caveats to the solution on which CCE you are in! Are you a Max, Sc or PD user? I’ll try and break down the problem into small digestible steps for you to see if it makes it more approachable.
-
As it stands, the input for the plotter comes from mousing over the plot. The plotter maps the visual space, to the domain of the data that is being plotted. The takeaway fro this is that mousing over the plotter generates the query
-
The KDTree receives this data and returns the nearest slice
-
Playback part of the patch plays some sound.
+------------------------------+
| mouseover plotter |
+--------------+---------------+
|
v
+------------------------------+
| fluid.kdtree~ |
+--------------+---------------
|
v
+-------------------------------+
| selection of slice to play |
+-------------------------------+
The crux of this is that you need to replace the “mouseover plotter” and instead feed the fluid.kdtree~
numerical data from your sensor. So, let’s imagine your sensor space gives you numbers between 0. and 1. and all of your analysis in the fluid.dataset~ side of things is normalised between 0. and 1. you could just feed the sensor data straight into the fluid.kdtree~
and you’re done. What is more likely is that your sensor data will be on another scale meaning you have to map it to your data space somehow. Let’s say the data coming in from your sensor ranges between -10. and 10. You could use simply use scale
in Max for example or fluid.bufscale~
to scale it in the buffer.
Does that make sense? If you send me some patches that youre working on if you get stuck I’m very happy to help you figure it out
1 Like
Wow, James, thank you so much for the help! I have managed to scale and map the leapmotion x and y data to the plotter’s x and y axis, this is such great fun!
Francesca
Hey! this is amazing. great work taking my wall of text and converting it into something useful
1 Like