Ejemplo n.º 1
0
 public void SetFPS()
 {
     if (inputField)
     {
         API_SVR.SetRenderFrame(int.Parse(inputField.text));
     }
 }
Ejemplo n.º 2
0
    public void ShowCamera()
    {
        // if (!SvrManager.Instance.Initialized) return;
        if (Application.platform == RuntimePlatform.Android)
        {
            API_SVR.GetLatestQVRCameraBinocularData(ref outBUdate, ref outCurrFrameIndex, ref outFrameExposureNano, outLeftFrameData, outRightFrameData);

            Debug.Log("LGS:outBUdate=>" + outBUdate + " outCurrFrameIndex:" + outCurrFrameIndex + "  outFrameExposureNano" + outFrameExposureNano);
            if (outBUdate)
            {
                _showLeftImage.texture = GetTexture(outLeftFrameData);
                _showLeftImage.rectTransform.sizeDelta = new Vector2(imageWidth, imageHeight);

                _showRightImage.texture = GetTexture(outRightFrameData);
                _showRightImage.rectTransform.sizeDelta = new Vector2(imageWidth, imageHeight);
            }
            else
            {
                Debug.Log("Error: Please Check Svrconfig prop: gUseQVRCamera = true");
            }
        }
    }
Ejemplo n.º 3
0
 void Start()
 {
     inputField = GetComponentInChildren <Game3DInputField>();
     API_SVR.SetRenderFrame(75);
 }