Datamux:
Double click on the application DatamuX in the folder, you should see an infterface with three balls on the left and bunch other stuff on the right. Drag the color balls on the left to change pos_x and pos_y value, and the three sliders with correspondent colors to change the pos_z value. DatamuX also support clicker and logitech game controller data from SCREM.
Click on either Flash or UDP (Processing) radio button on the bottom right corner to start data broadcasting, you should see a blinking square indicator turns on. Make sure you start this application before running Flash or Processing. And before you mod the example file, make sure you either trace, or println out the data, make sure you are getting stuff from Datamux, it should work like magic.
Flash:
We using socket server to read the data from DatamuX as well as SCREM. Open “document.as” in the flashExample folder, and look for updateDIS method. In there is a switch that assigns incoming values from DatamuX to local variables based on their attribute names in SCREM. ox is the pos_x of orange ball, gx is the pos_x of green ball, and bx is the pos_x of blueball, so on so forth. We made up these attribute names in SCREM for convinience.
Processing:
Processing can read UDP directly, so you need to download the UDP library from: http://ubaa.net/shared/processing/udp/udp.zip and install it properly before anything can happen. Open the processing example.pde file in the processingExample folder, and at the very bottom, look for a method named “dataParser” In there is a series of if statements that assigns incoming values from DatamuX to local variables based on their attribute names in SCREM. If you are
reading more, just add more if statements, and assign the values to your own variables.
***Your computer might have security set up to block socket server, you will get a prompt message asking you to change the security setting, if changing the setting doesn’t help, just publish your Flash to an application instead of running swf. That will solve the problem.
***When you testing your Flash with Datamux, it is advised to restart Datamux every time before test run your Flash due to weird java stuff.