Start a new topic

camera _front -back

camera _front -back


hello!

i am new to wikitude and to augmented reality in general!

I have a problem with the camera. When  i open SDKexamples, i cannot see anything, only a black screen (and the watermark of wikitude). When i go to hardware control ->camera switching, and press switch camera, i can see the surroundings and the POIS. But then nothing happens in the other examples.. (client recognition, 3d model etc). 

I cannot understand what's the problem... Do i need to set up camera default as back/front? but how can i do it?

Thanks in advance (and sorry for my english) !

Hi there,

Did you set correctly the settings for the camera enabling it to access the Wikitude SDK product (at system settings on your mobile phone)?

Thanks

Xmm... I guess no!

I mean, i have followed the instructions in this page https://www.wikitude.com/external/doc/documentation/5.1/android/samples.html#examples (examples setup) and my android device fullfill all the requirements. Do i have to set up my camera from system settings? and how can i do this?

Thanks for your answer! 

In that case you need to go to the System Settings of your phone and set the right permissions for the Wikitude SDK product you are using.

I did it but nothing has changed! Camera still not working.

I downloaded the native android examples and run it to my device, and the camera works fine.  

Hi there,

In order to make sure that everything is set up right from our side we did the following:

Re-install both Wikitude Javascript and Native on an android device. When we entered a sample for the first time then we received a message asking for permission to enable the camera in order to run this sample. Clicking at Allow enables the camera so we can run the sample. 

I would suggest that you do the same as well. If you are using our sample code without any changes then you should receive a similar message the first time you choose a sample.

Thanks

I really appreciate your time and efforts to help me!

I re-installed both native and javascript, but nothing has changed. In the native, camera works fine (although it doesn't ask for permission), but in javascript nothing appears. When i open sample_1.xml in android studio, i noticed this message:


java.lang.VerifyError: Expecting a stackmap frame at branch target 12

Exception Details:

  Location:

    com/wikitude/architect/ArchitectView.<clinit>()V @5: ifne

  Reason:

    Expected stackmap frame at this location.

  Bytecode:

    0x0000000: 1202 b605 b69a 0007 04a7 0004 03b3 04d3

    0x0000010: 1202 b605 b9b3 023f b805 bbb3 0102 b1  

 

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)

at java.lang.Class.getConstructor0(Class.java:3075)

at java.lang.Class.getConstructor(Class.java:1825)

at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:389)

at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:170)

at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:103)

at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:168)

at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:247)

at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:171)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)

at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:835)

at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:811)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)

at android.view.LayoutInflater.inflate(LayoutInflater.java:515)

at android.view.LayoutInflater.inflate(LayoutInflater.java:394)

at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:229)

at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)

at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)

at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:510)

at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:498)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:888)

at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:498)

at com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:72)

at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:610)

at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:607)

at com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:362)

at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:607)

at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:629)

at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:480)

at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)

at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)

at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)

at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)

at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)

at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)

at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)

at com.intellij.util.Alarm$Request$1.run(Alarm.java:351)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

 

 

Thanks!

 


 
Login or Signup to post a comment