8th Wall XR Camera position is not changing

时间:2017-08-30 20:53:46

标签: android unity5 augmented-reality 8thwall-xr

I'm using 8th Wall XR version 1.0.9.3 and I think there is a problem with XRController class. XRCameraController class cannot get reality camera position using XRController.GetCameraPosition() method. In every update the method resumes zero for all position variables.

I tried to track down the source of the problem and then found that inside XRNativeBridge.cs under Android JNI there is a code like:

COPY_NUMBER_Click

which is supposed to take camera extrinsic position data from native call. Then I tried to decompile Private Sub COPY_NUMBER_Click() COPY_NUMBER.BackColor = 12713921 Dim x As String x = InputBox("Enter Number of Days in Month") If x = "" Then MsgBox "User Pressed Cancel!" & vbCrLf & _ "or did not enter a value!", vbOKOnly + vbInformation, _ "Inputbox Result:" Exit Sub ElseIf CInt(x) = 0 Then MsgBox "User Pressed Cancel!" & vbCrLf & _ "or did not enter a value!", vbOKOnly + vbInformation, _ "Inputbox Result:" Exit Sub End If y = CInt(x) - 1 For numtimes = 1 To y ActiveWorkbook.Sheets("Sheet1").Copy _ After:=ActiveWorkbook.Sheets("Sheet1") Next DoDays COPY_NUMBER.BackColor = 12500670 COPY_NUMBER.Enabled = False End Sub file from provided jar executable which jr.Call takes variables from to see if there is anything about it but no luck. All Java calls like class MyIterator(): def __init__(self, n): self.max = n def __iter__(self): self.count = 0 return self # For Python3 def __next__(self): if self.count == self.max: raise StopIteration self.count += 1 return self.count - 1 c = MyIterator(4) for i in c: print(i) are returning zero.

1 个答案:

答案 0 :(得分:1)

启用Tango和ARKit的设备目前支持6DoF跟踪。对于所有其他手机,截至今天它回归到3DoF跟踪和固定表面,这解释了为什么位置变量为零。

有关您正在开发的平台支持的功能的详细信息,请参阅https://docs.8thwall.com/xr/unity/#requirements