Hi Simon,
I looked into the composition and see some problems:
- You are using an Integrator patch to count through the index. But this
integrator patch will "integrate" over time also floating point values. You set
it up to count up by 100 per second, thats much to fast of cause!
- You used a "Structure Index Member" patch to get the files name for the
"Image Importer" since you are reading a "dictionary" you can't be sure that
the filename is always at this index. You have to use a "Structure Key Member"
patch here.
- I didn't get the markers to work however, I am not sure if the width and
height set to "10" is an appropriate scale, it seems much to high to me. but it
may be correct for this setup.
Here are some suggestions:
1) connect the "outputFound" output to a "Pulse" patch ("Detection Mode" set to
"leading edge"): this will give you a single frame signal whenever a new marker
has been detected.
2) connect this "Pulse" output to a "Counter" patch to increase a number each
occurrence.
3) pipe this value down (with "Input Splitters" patches) to your actually
drawing macro
4) remove the "Integrator" patch here
5) use a "Structure Count" patch to determine how many files you found with the
"Directory Scanner" (connect "File Liste" output to "Structure" input)
6) have a "Math Expression" patch to calculate a modulo of your counter created
in step 2. Math formula could be "counter % filesCount"
7) connect this result to the "Index" of the first "Structure Index Member"
Patch in you files-list-chain.
8) replace the second "Structure Index Member" with a "Structure Key Member"
and put "url" in the "Key" input. This makes sure that the "Image Importer"
will always get the correct path to import the image.
9) use a "Scaled Image Dimension" patch to check for the width and height of
the imported image and connect the result to your drawing "Sprite" patch.
10) setup the "Scale" of the "Scaled Image Dimensions" patch to an appropriate
value
hope this helps.
best,
Achim Breidenbach
Boinx Software Ltd.
On 11.06.2013, at 17:31, Simon Child wrote:
>
>
> Dear List
>
> I am having trouble displaying images using augmented markers in quartz
> composer.
>
> I want a different image to be displayed each time the marker is shown. I
> have managed to display images that have come from inside a source folder but
> they flick through at a really fast pace.
> Also once the last image is display from within that folder, it does not
> reset back to the first image.
>
> I want to be able to display a different image (preferably at random) each
> time the marker is registered (outputFound) to display fellow students work
> at my final degree show piece.
>
> Any help would be hugely appreciated...
>
> Thanks
>
>
>
>
> Simon
>
> <MatrixToParams.plugin>
>
> <SingleMarkerDetector.plugin><Augmented Lanyard.qtz.zip>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]