Hello,
I’m new to vvvv and I’m trying to make a project in wich you can move the position of the object by moving your head in the X coordinate. The object in case is a circular spread. Every time i try to connect DetectObject to the Transform of the CircularSpread it disapears … Does this have something to do with the nule symbol it shows on the X coordinate of DetectObject ? And if yes, can someone help me with it.
Thank you
You are right, when there is no object detected there is no data (NIL) fed into the tranform → Empty Spreads | vvvv
You can use the AvoidNIL node to catch this state and do something,
for example output some default data or the last known data.
see example:
AvoidNIL_keep_latest.v4p (9.2 KB)
thank you alot, it worked !
another question
for example, in the DetectObject help there’s a square that sticks to your face. Is there a way to make it go the opposite direction ? for exemple, you move your head to the left and the square goes to the right and vice versa
Thank you !
sure, just multiply the x value with “-1”
though i am not sure how the detect object help patch looks like,
but should be something like this
like this
multiplying the x value by -1 kind of works, because it does the opposite but it goes by the video feedback and the video is mirrored …
is there a way to counter it ?
once again thank you !
not sure what you mean…
if you now mirror the video (what you can absolutely do) you end up with the initial behaviour but everything is mirrored then, so i am not getting it…
im going to cover the video with a quad so the video doesnt show, but since the video is mirrored when I, IRL, go to the left the square also goes, because the video is mirrored
I want to go to the left, IRL, and the square go to the right
do you know how to mirror the video or to “flip” ?
It depends on your camera, but try the properties pin on the videoin node, there might be an option to flip the picture right at driver level. Otherwise there is an awkward way to flip the dhsow texture before going into detectobject by converting it to ex9->flipping->and converting back to dshow. At least i am not aware of a better way. Looks like so:
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.