@@ -4,14 +4,68 @@ var http = require('http').Server(app);
var io = require('socket.io')(http);

var clientInfo = {
"mac2": {
"screenppmm": {
"x": 5.04,
"y": 5.04
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 0,
"y": 200,
"z": 120
}, // centre of screen location in mm
"screenlookingat": {
"x": 0,
"y": 0,
"z": 120
}, // where the screen is facing
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"mac1": {
"screenppmm": {
"x": 5.04,
"y": 5.04
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 0,
"y": 200,
"z": 120
}, // centre of screen location in mm
"screenlookingat": {
"x": 0,
"y": 0,
"z": 0
}, // where the screen is facing
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"phone": {
"screenppmm": {
"x": 7.6,
"y": 7.6
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 180,
"y": -200,
"z": 170
}, // centre of screen location in mm
"screenlookingat": {
"x": 0,
"y": 0,
"z": 50
}, // where the screen is facing
"rotation": 90 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"mac": {
"screenppmm": {
"x": 5.04,
"y": 5.04
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 0,
"y": -330,
"y": -1000,
"z": 120
}, // centre of screen location in mm
"screenlookingat": {
@@ -22,6 +76,78 @@ var clientInfo = {
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"top": {
"screenppmm": {
"x": 5,
"y": 5
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 0,
"y": -1,
"z": 2000
}, // centre of screen location in mm
"screenlookingat": {
"x": 0,
"y": 0,
"z": 0
}, // where the screen is facing
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"s1": {
"screenppmm": {
"x": 5,
"y": 5
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 0,
"y": -100,
"z": 100
}, // centre of screen location in mm
"screenlookingat": {
"x": 0,
"y": 0,
"z": 100
}, // where the screen is facing
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"s2": {
"screenppmm": {
"x": 5,
"y": 5
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 100,
"y": 0,
"z": 100
}, // centre of screen location in mm
"screenlookingat": {
"x": 0,
"y": 0,
"z": 100
}, // where the screen is facing
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"minna": {
"screenppmm": {
"x": 4.65,
"y": 4.65
}, // screen pixels per cm, 1dpi ~ 0.03937008 p/mm
"screenlocation": {
"x": 370,
"y": -1000,
"z": 135
}, // centre of screen location in mm
"screenlookingat": {
"x": 370,
"y": 0,
"z": 135
}, // where the screen is facing
"rotation": 0 // how much it rotates around the
// (screenlookingat - screenlocation) vector, not yet implemented!
},
"bigscreen": {
"screenppmm": {
"x": 4.26,