GetRawAccelXYZ in agk shows me the axis alignment.
me not used this magnetic values but i think it can used to target around 360.
missing is a better position than gps, maybe you can get distance from radio reception strength from an center device. (raspberry pi?)
HoloLens can do , it scan geometry around.
there are some very nice videos at youtube, where you can walk around a hologram or using the room as surface for special effects.
i f you not saw you must view.
sentor data
rem
rem AGK Application 2017.01.09
rem MR
SetWindowSize(800,600,0)
SetVirtualResolution(90,160)
SetPrintSize(5)
StartGPSTracking()
do
Print("(Touch for Exit/End)")
Print("All Sensors:")
Print("Accel")
Value("X",GetRawAccelX())
Value("Y",GetRawAccelY())
Value("Z",GetRawAccelZ())
Print("Gyro Velocity")
Value("X",GetRawGyroVelocityX())
Value("Y",GetRawGyroVelocityY())
Value("Z",GetRawGyroVelocityZ())
Print("Magnetic")
Value("X",GetRawMagneticX())
Value("Y",GetRawMagneticY())
Value("Z",GetRawMagneticZ())
Print("Rotation")
Value("X",GetRawRotationVectorX())
Value("Y",GetRawRotationVectorY())
Value("Z",GetRawRotationVectorZ())
Value("W",GetRawRotationVectorW())
Value("X2",GetRawRotationVectorX2())
Value("Y2",GetRawRotationVectorY2())
Value("Z2",GetRawRotationVectorZ2())
Value("W2",GetRawRotationVectorW2())
Print("GPS")
Value("Longitude",GetRawGPSLongitude()) //Längengrad um die Erde herum
Value("Latitude",GetRawGPSLatitude())
Value("Altitude",GetRawGPSAltitude())
Print("---")
Value("Light Level",GetRawLightLevel()) //5 room with less light, under lamp 2500+ , little lamp ~150
Value("Proximity Distance",GetRawProximityDistance()) //3 if hand over until 100, at start it is 0
if GetRawProximityDistance()>0 and GetRawProximityDistance()<50
SetPrintColor(128,128,128) //Hand on Device
else
SetPrintColor(255,255,255)
endif
if 1 = 1
local g as float
g = GetRawLightLevel()
if g > 1000 then g = 1000 //max light level
g = g / 1000 //make it 0 to 1
g = g * 255 //scale it 0 to 255
SetClearColor(0,0,g)
endif
if GetPointerPressed()
exit
endif
Sync()
loop
StopGPSTracking()
end
Function Value(t as string,f as float)
Print(t+" "+str(f))
EndFunction
AGK (Steam) V2017.01.09 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)