Beispiel #1
0
    /// <summary>
    /// Updates the current frame quality
    /// </summary>
    public void OnFrameQualityChanged(ImageTargetBuilder.FrameQuality frameQuality)
    {
        Color red   = new Color(0.65f, 0.23f, 0.23f, 1f);
        Color green = new Color(0.28f, 0.63f, 0.19f, 1f);

        Debug.Log("Frame quality changed: " + frameQuality.ToString());
        mFrameQuality = frameQuality;
        GameObject BuilderBtn    = BuilderBtnImg.gameObject;
        GameObject BuilderBtnMsg = BuilderBtn.transform.Find("RawMessage").gameObject;

        ui.Text BuilderBtnTxt = BuilderBtnMsg.GetComponent <ui.Text>();

        if (mFrameQuality == ImageTargetBuilder.FrameQuality.FRAME_QUALITY_LOW)
        {
            // set colour to red and show low quality message
            BuilderBtnImg.color = red;
            BuilderBtnMsg.SetActive(true);

            Debug.Log("Low camera image quality");
        }
        else
        {
            // set colour to green and hide the low quality message
            BuilderBtnImg.color = green;
            BuilderBtnMsg.SetActive(false);
        }
    }
Beispiel #2
0
 /// <summary>
 /// Updates the current frame quality
 /// </summary>
 public void OnFrameQualityChanged(ImageTargetBuilder.FrameQuality frameQuality)
 {
     Debug.Log("Frame quality changed: " + frameQuality.ToString());
     mFrameQuality = frameQuality;
     if (mFrameQuality == ImageTargetBuilder.FrameQuality.FRAME_QUALITY_LOW)
     {
         Debug.Log("Low camera image quality");
     }
 }
Beispiel #3
0
    /// <summary>
    /// Updates the current frame quality
    /// </summary>
    public void OnFrameQualityChanged(ImageTargetBuilder.FrameQuality frameQuality)
    {
        Debug.Log("Frame quality changed: " + frameQuality.ToString());
        if (!m_ObjectTracker.IsActive)
        {
            debugMessage.SetDebugText(frameQuality.ToString());
        }
        else
        {
            debugMessage.SetDebugText("Tracking...");
        }
        m_FrameQuality = frameQuality;
        if (m_FrameQuality == ImageTargetBuilder.FrameQuality.FRAME_QUALITY_LOW)
        {
            Debug.Log("Low camera image quality");
        }

        m_FrameQualityMeter.SetQuality(frameQuality);
    }
Beispiel #4
0
 /// <summary>
 /// Updates the current frame quality
 /// </summary>
 public void OnFrameQualityChanged(ImageTargetBuilder.FrameQuality frameQuality)
 {
     Debug.Log("Frame quality changed: " + frameQuality.ToString());
     m_FrameQuality = frameQuality;
 }