Hit test help?

6 views
Skip to first unread message

Toni Olivier

unread,
Dec 15, 2016, 8:45:49 AM12/15/16
to tryplex toolkit for Quartz Composer
Hi Sebastian

I've been using Ni-Mate to trigger "hits" in QC in a very convoluted way, and it's not very reliable.  Then I found your audio sampler example, and I'm adapting it to my needs.  Thanks for sharing it!

I wanted to ask you for some more detail about how the hit test works.  I'm not a programmer, so it's hard for me to understand.  I've looked at the simple hit test patch in the Tryplex examples as well.  How are the xyz values of the hand compared to the bounds of the object?  I get even more confused with the multiple hit tests and the demultiplexer, and the object hit test render patch.

Is there an invisible object in the audio sampler which does the detection and then triggers the images and audio? 
I also wonder how you get the objects to scale to the outline of the skeleton.

I would really appreciate it if you could give me some pointers so that I can unravel this and gain a better understanding. 
I know this is asking a lot, so I will understand if it's not possible.

Best,
Toni


Sebastian Kox

unread,
Dec 19, 2016, 12:11:54 PM12/19/16
to tryplex...@googlegroups.com
Hi!

> I wanted to ask you for some more detail about how the hit test works. I'm not a programmer, so it's hard for me to understand. I've looked at the simple hit test patch in the Tryplex examples as well. How are the xyz values of the hand compared to the bounds of the object? I get even more confused with the multiple hit tests and the demultiplexer, and the object hit test render patch.

A hit test is pretty simple (when it's a cube or rectangle)
What I do is check if a value is within certain boundries I set.
For instance in psuedocode

xMinValue = -0.5 (x value of left side of a cube)
xmaxValue = 0.5 (x value of right side of a cube)

then I check if the current X value (from the right hand for instance) is higher then the xMinValue and lower than xMaxvalue.
When both are true I know that it is withing the boundries At the same time I do the same for the Y and Z values, so when the X,Y and Z values are all within the boundries I know that the hit is true.

You can build this yourself with conditional and logic patches in QC.


> Is there an invisible object in the audio sampler which does the detection and then triggers the images and audio?
> I also wonder how you get the objects to scale to the outline of the skeleton.

If I remember correctly I use the same technique within the hit test macro, but maybe a bit more complex to make it compatible with the specific workflow tryplex uses. The basic idea is the same as I explained above though, and it's not that hard to build yourself.

Best,

Sebastian.

Toni Olivier

unread,
Dec 20, 2016, 5:22:23 AM12/20/16
to tryplex...@googlegroups.com
Thanks Sebastian!  That helps me to understand, though I'm still a long way from building my own!

Best,
Toni


--
You received this message because you are subscribed to a topic in the Google Groups "tryplex toolkit for Quartz Composer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tryplex-toolkit/HE5J6n28vuQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tryplex-toolkit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Toni Olivier

unread,
Jan 16, 2017, 9:16:32 AM1/16/17
to tryplex...@googlegroups.com
Hi again
Sorry to be a pest...
If you have a moment, would you be able to point out how I can make the right hand also trigger a colour overlay, as with the left hand?  In the Object hit Test Render, I can see how you make this work with one hand, but cannot understand how to apply the same to the other!  I wonder if it is possible?
Best,
Toni

muqeem

unread,
Jan 16, 2017, 12:47:07 PM1/16/17
to tryplex...@googlegroups.com

Dear All,


I am looking to buy a portable mo-cap system. Should I look into this:


https://neuronmocap.com


Or any other low cost but really good one solution for film not video games?


Many thanks

Muqeem

John Daniel

unread,
Jan 16, 2017, 3:45:29 PM1/16/17
to tryplex...@googlegroups.com
Look into Ni-mate    ( www.ni-mate.com )   I have had great success with it, and use it in live installations all the time. Can feed directly live into Blender / Maya / Max or anything that can take OSC.
They can now use the new Kinect on PC which has much higher res cameras/data, but PC only at the moment because of the sensor itself.

hope this helps!

cheers!
jd


--
You received this message because you are subscribed to the Google Groups "tryplex toolkit for Quartz Composer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tryplex-toolkit+unsubscribe@googlegroups.com.

muqeem

unread,
Jan 21, 2017, 11:25:21 PM1/21/17
to tryplex...@googlegroups.com

Thanks and I will look into this soon

Muqeem






From: tryplex...@googlegroups.com <tryplex...@googlegroups.com> on behalf of John Daniel <jdjd...@gmail.com>
Sent: Monday, January 16, 2017 10:45 AM
To: tryplex...@googlegroups.com
Subject: Re: mo-cap system
 
To unsubscribe from this group and stop receiving emails from it, send an email to tryplex-toolk...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages