UDP Network Established
November 11, 2011 § 1 Comment
After trialling a few different methods of networking in processing, a UDP library was used .
UDP was used over TCP here as it was faster. It was found that any data set should be ideally encoded to minimize errors. However, errors and missed data still persist in UDP (which is something I will have to adjust for).
Here are some screenshots that resulted from drawing the data received in a program by the original multitouch table program, to nice effect.
( You can see the errors in UDP and hence interpretation of encoded co-ordinate data via the white dots that are stuck at the top of the screen. )
( Showing enemy positions over time as well, getting gobbled up by the boids. )