Have just uploaded the latest version of our program into dropbox, and guess what, we are now in fiducial territory. Have added three new classes at the bottom of the file
- one which will act once fiducials are added to the webcams line of sight,
- another which will act when fiducials are removed
- and the final one (currently commented out) which handles changes in positions..(this should hold volume controls in future)
Note that the two existing methods are jam packed with if statements, and still rely on the keypressed method (since we are using virtual key inputs as an intermediary between fiducials and processing methods)
Volume Control
Thats next on our list; if you get some free time, take a gander at the bouncing ball example (available off the student portal and OASIS) This example makes use of rotating the '0' fiducial to change gravitational pull.
This is useful as if we figure out how to read change in angles, we may use it to alter volume (using same method as image algorithm, via keypressed intermediary)
Bugs
If you have the time, download and run Reactivision simulator (its what I'm using instead of webcam at the moment), very useful for quick testing...if any bugs are found (within image and audio functions), let the group know, so we can work on a remedy.
Cheers
=)
ps. Link to new file: https://www.dropbox.com/home/Novel%20Grp%20D?select=mplayerv7.txt#:::36116562
great work guys!! tested it alittle for bugs... when the fiducials are removed especially if its done fast, the images remain but sound goes off, except for 1 time (but i am still trying to replicate that scenario to see under what circumstances this occurs)
ReplyDeleteAlso getting a null pointer exception on beatbox.stop(); but program functions anyway.
Will keep u posted on anything else i find :)
Awesome work :)
Got the error of the background image must be same size as application...is there a know work-around or I resize the image?
ReplyDeleteDar: we had changed the size of the image, simple fix, open bg.jpeg in paing, and resize to 500x500.
ReplyDeleteThe extra space should be a rectangle at the bottom of screen.
For optimal effects, colour rectangle black (to be able to see the white audiobuffer line)
Thanks mate :)
ReplyDelete