Two Days til Marking…
So I’ve got two days left ( well, one night, and a day ) until I have to present aAVis to my lecturers. I’ve done the best I can given the data that I’ve lost from my laptop crash, and I’ll just have to hope it’s enough! I’ve decided this is more of a prototype / proof of concept rather than a finished product ( Although, it is fully-functional, albiet with a few bugs ). Each element that you can add offers a different example of data and how it can be added / displayed.
The biggest addition since my last post is my evaluator.
In flash, it’s possible to parse a string as a mathematical function. So for example, say you’ve got the following setup :
var myFunction:String = "2+2";'
var theAnswer:int;
You can use eval() to evaluate the string “2+2″, and print out the value 4. However Java ( and therefore, processing ) does not have this functionality. So I’ve had to code one myself. My evaluator understands simple functions ( +/-* ), random(value), and low / medium / high FFT values. I will prolly add Sin, Cos and Tan for movement functions tommorrow.
Why am I adding these ? Simple, so the user can enter in functions as the properties of an object. They can specify the size of a particle be ‘random(200)’. This gives the user a lot more control, as I will be showing during my presentation, when I use my ‘particles’ in various ways to produce a different effect each time.
I still have a lot of work to get done, so no sleep for me. I just hope it’s enough for my lecturers.
After this, I’ve got a week and a half to tidy it up for the presentation.
Boy was this assignment a handful!
- Anthony
Saturday, October 20th, 2007 @ 8:26 pm