Tuesday 7 December 2010

PlayStation Move is here...

Move with psl1ght work in progress , right now tryng to understand GemState variables to make cool things. Device is fully working and calibrating and hue tracking is right.

PS3Load v0.1
Waiting for connection...
Receiving data... (0x0000979e/0x00051bd0)
Launching...
Loading modules
camera module load return 0
gem module load return 0
Register callback return 0
lv2MemContinerCreate() returned 0
init screen
return from GemGetMemorySize 120000 size in bytes needed for move device to init libgem
lv2MemContinerCreate() for memory usage needed in libgem returned 0
preparing GemAttribute structure with sprus and memory stuff
calling GemInit with GemAttribute structure version=2 max_connect=1 spurs=D000FC20 memory_ptr=3F000004
return from GemInit 0
GemPrepareCamera return 0 exposure set to 400 and quality to 0.8
GemReset retunr 0
init pad
cameraInit() returned 0
Found me an eye, arrr!
cameraOpenEx returned 00000000
Video dimensions: 640x480
Buffer at 30015000
Set readCameraInfoEx data structure needed for Move hue tracking
Preparing GemVideoConvert structure by now i am not going to use it so output_format set to 1
GemPrepareVideoConvert return 0
GemPrepareCamera return 0 exposure set to 400 and quality to 0.8 before cameraStart
lets go!! look your face in Sony Bravia
GemGetState return 2
first calibrate device
GemCalibrate return 0
Calibrating is in proccess...
GemGetState return 5
Second set a hue value to track or let Sony choose for you :P
GemTrackHues return 0
Yeah Move it's running fine, light on!!!!!
GemGetState return 0
center of the sphere in world coordinates -30.902700 -64.770447 241.581284 1.000000
sphere velocity 0.000000 0.000000 0.000000 0.000000 mm/s
sphere acceleration 0.000000 0.000000 0.000000 0.000000 mm/s^2
device orientation in world coordinates 0.084998 0.124090 -0.144880 0.977950 radians/s
device angular velocity in world coordinates 0.000000 0.000000 0.000000 0.000000 radians/s^2
position player's hand in world coordinates -0.069252 -80.036690 339.186462 1.000000 mm
velocity player's hand in world coordinates 0.000000 0.000000 0.000000 0.000000 mm/s^
acceleration player's hand in world coordinates 0.000000 0.000000 0.000000 0.000000 mm/s^2
timestamp 1683306414
sensor temperature 0.000000
camera pitch angle 0.000000
tracking flag 0
before GemEnd
return from GemEnd 0
Exiting for real.

ugly captures with my old iphone: