BZHue

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
usernox
Private First Class
Private First Class
Posts: 5
Joined: Tue Jun 04, 2013 3:51 pm

BZHue

Post by usernox » Mon Jul 22, 2013 4:16 pm

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!
Last edited by usernox on Wed Jul 31, 2013 3:04 pm, edited 1 time in total.

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: BZHue

Post by joevano » Mon Jul 22, 2013 4:32 pm

That is quite cool!!
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln

User avatar
Bullet Catcher
Captain
Captain
Posts: 548
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

Re: BZHue

Post by Bullet Catcher » Mon Jul 22, 2013 5:13 pm

Watch the faces of the players in the video to see how much fun it is to play BZFlag!

User avatar
ahs3
Private First Class
Private First Class
Posts: 277
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: BZHue

Post by ahs3 » Thu Jul 25, 2013 3:51 pm

That is amazing! Well done!

usernox
Private First Class
Private First Class
Posts: 5
Joined: Tue Jun 04, 2013 3:51 pm

Re: BZHue

Post by usernox » Wed Jul 31, 2013 3:02 pm

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

User avatar
ZE BOZZ
Private First Class
Private First Class
Posts: 66
Joined: Wed Jan 30, 2013 8:36 pm
Location: Xbox : ZE BOZZ25

Re: BZHue

Post by ZE BOZZ » Thu Jun 05, 2014 11:20 pm

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
•• •• •• •• ••
"Faithless is he that says farewell when the road darkens." - J.R.R. Tolkien

User avatar
[honc]
Private First Class
Private First Class
Posts: 31
Joined: Tue Dec 06, 2011 2:48 am
Location: europe
Contact:

Re: BZHue

Post by [honc] » Fri Jun 06, 2014 3:04 pm

Lets meet after xMas 2014 @ 31c3
ccc congress in Hamburg, Germany ,Europe,

:-)
may the tool's be with you

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest