v3ga

Bits and Blobs

VisionFactory::Network

April 9th, 2006 · 3 Comments

VisionFactory - Network

New stuff for the tool Vision Factory I currently develop. The big major improvement was adding network capabilities, by integrating the great oscpack library by Ross Bencina. On top of it, I have designed an interface allowing multiple protocols to be implemented, so that it is possible to configure at runtime how computers are intended to be used over the network. The simplest configuration is master->slaves, where a server computer accepts connections from clients (”slaves”) and sends to all of them identical messages.
Besides, I’ve implemented a complete event model (broadcasters / listeners), which makes life muuuch easier for making objects communicate. No more dirty calls :-)
Finally, I discovered concepts behind mutex objects, which were an essential coding in this framework. Basically, two concurrent threads (network message handling & rendering) were accessing the same chunks of data and making operations on them (for example, add/remove elements in a list) without mutex protection was the cause of all my random crashes (and headaches too).

Here is a little video showing two connected computers in a “master/slave” configuration.
Video link

Tags: OpenGL · Vision Factory

3 responses so far ↓

  • 1 v3ga » Blog Archive » Processing workshop & VJing. // May 11, 2006 at 12:05 am

    […] make live visuals for the music show of my friend SevenFive, again in Bordeaux. I will use VisionFactory, I am already working on some new animations which will be specially shown for this event. […]

  • 2 v3ga » Blog Archive » Saturday night crossfader // May 30, 2006 at 2:02 am

    […] ody is watching me’ remix (.mov, ~6Mo) Barbican Tree + RGB effect (.mov, ~12Mo) VisionFactory software is about to undergo several major updates. Adding input devices handling (midi / joystick / &# […]

  • 3 v3ga » Blog Archive » BlobDetection site // Oct 3, 2006 at 12:45 am

    […] Lately I’ve been quite busy with refactoring and redesigning the core application of Vision Factory. I’ve come up with several ideas that would have been dirty patches rather than clean implementations in the actual environement… So, at some point, I decided to rebuild the whole stuff from scratch. I’ve been studying design patterns which have been a great help for seeing things “out of the box”. I plan to release a beta version of the application for the beginning of next year, which will ideally come out with a SDK (Win+Mac) and an API documentation. […]