Page 1 of 1

BZHue

Posted: Mon Jul 22, 2013 4:16 pm
by usernox
Last weekend, during HACKED.io, we developed a BZFlag plugin that posts various game events to a node.js web server, which controls a set of Philips Hue lights. (It would probably have been possible to do everything from within the plugin, but the node server allowed for quicker and more flexible team development).

A recording of us playing the thing can be seen here.
edit: better sync of the different players here: http://www.youtube.com/watch?v=vIUnhrGQ4PM
The idea is that every player has a lamp and the light colour is coupled to the flag the player holds (we limited ourselves to 15 good flags).
Firing sends a brightness burst to the shooter's lamp, we also implemented lighting animations for kills and deaths.

Source code for plugin and node server (in case anyone has a Hue set) can be found here. (It's been hacked together in a very short time with limited knowledge of the BZFlag code and my C++ knowledge has long been gone, so don't expect quality code).

We won ourselves a Philips Hue kit with this!

Re: BZHue

Posted: Mon Jul 22, 2013 4:32 pm
by joevano
That is quite cool!!

Re: BZHue

Posted: Mon Jul 22, 2013 5:13 pm
by Bullet Catcher
Watch the faces of the players in the video to see how much fun it is to play BZFlag!

Re: BZHue

Posted: Thu Jul 25, 2013 3:51 pm
by ahs3
That is amazing! Well done!

Re: BZHue

Posted: Wed Jul 31, 2013 3:02 pm
by usernox
Thanks! BZFlag is indeed great fun, although we exaggerated a bit for the camera ;-)
It works quite well with the lights; the delay is quite small. In the video I posted only the left player is in sync due to a lack of time during the hackathon :-p A better edit can be found at http://www.youtube.com/watch?v=vIUnhrGQ4PM

Re: BZHue

Posted: Thu Jun 05, 2014 11:20 pm
by ZE BOZZ
Sorry this is a bit of an older post but I had to comment on it. Quite cool! If only we could have a big BZFlag convention sometime where we all come together and do something like that :D

Re: BZHue

Posted: Fri Jun 06, 2014 3:04 pm
by [honc]
Lets meet after xMas 2014 @ 31c3
ccc congress in Hamburg, Germany ,Europe,

:-)