v10
As a small summary for the sake of documentation, the issues with random in v9 has been sorted my moving random to the setup class. The issue we had, with random not being equal to the song being played was all down to the fact that since random was in a class (addTUIO) which is constantly looping, random was constantly changing its value.
Now it will be called once in setup class, as remain as such until guess = random number (in which case, setup() and draw() classes are reinitialized.
The main issue is still load time, which is now even more vital since we are calling setup() class over and over. As a start we have tried mitigating issues by removing sample size declarations. By calculations, reserving 2048 kb for each sample buffer was calling access memory which was not being used.
The next target (v11) should deal with program efficiency and cleaning up code, so feel free to make changes and update the blog once said changes have been made.
Also, well done for today's presentation, 85% is something to be proud of, however apologies on my part for freezing in the middle of it all, presentations are evidentially not my thing ;)
Batch Code
Also, batch code for launching reacTIVision and program may be found below. If you would like a copy of this, simply copy into notepad, and alter according to where your files are stored.
You will need to export the code into windows executable, (which will create a new folder in your directory), place contents of this folder into your home directory, otherwise images and sounds will not load.
:BEGIN
CLS
title Orchestrate
START C:\Users\Kevin2\Desktop\reacTIVision-1.4\reacTIVision.exe
START C:\Users\Kevin2\Desktop\reacTIVision\audio\mplayer1\mplayer1.exe
:END
This bat file has also been included in the v9 rar file on dropbox, along with a new icon for the bat file =)
Rig
Also, we will need to meet up asap to start work on the physical rig, as was highlighted today, we will need to allocate a lot of time for this, since there is a lot of trial and error involved in the distances. I've got copious amounts of wood at my place, along with woodworking tools, all we need to find is a piece of glass (30cm by 60cm?) for the table top, may get that sorted through basement refurbishment also, more info when it comes. =)
Thanks Kev... :)
ReplyDeleteYes we definitely need to allocate ample time to test the program on the actual rig, as some issues may arise with regards to the recognition of the fiducials. Such that we may need to play around with the camera settings and reactivision to get it to work properly...