Question by
syalanurag1991 · Nov 16, 2017 at 10:58 AM ·
cameravuforiaaugmented-reality
Building an AR App, everything is Blurry: Using Unity and Vuforia
Hey I am having the same problem.
From the documentation given here: https://library.vuforia.com/articles/Solution/Working-with-the-Camera#How-To-Use-the-Camera-Projection-Matrix
I created a script called Focus.cs and attached it to the "ARCamera" The script looks like this:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Focus : MonoBehaviour {
// Use this for initialization
void Start () {
var vuforia = VuforiaARController.Instance;
vuforia.RegisterVuforiaStartedCallback(OnVuforiaStarted);
vuforia.RegisterOnPauseCallback(OnPaused);
}
private void OnVuforiaStarted(){
CameraDevice.Instance.SetFocusMode(
CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
}
private void OnPaused(bool paused){
if (!paused) // resumed
{
// Set again autofocus mode when app is resumed
CameraDevice.Instance.SetFocusMode(
CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
}
}
}
Now unity is giving an error like this: error CS0103: The name `VuforiaARController' does not exist in the current context
What should I do?
Comment
Your answer
Follow this Question
Related Questions
ARCamera view rendering black 0 Answers
No PostProcessing in Vuforia AR 0 Answers
Unity (Vuforia) doesn't recognize my PS Eye. 0 Answers
Vuforia: model disappears when getting closer to ImageTarget 2 Answers