UpdateImage() public method

public UpdateImage ( System leftPtr, System rightPtr ) : void
leftPtr System
rightPtr System
return void
Exemplo n.º 1
0
    void Update()
    {
        //camStatus
        if (!OvrPro.camStatus)
        {
            return;
        }


        if (Input.GetKeyDown(KeyCode.G))
        {
            useOvrvisionTrack ^= true;
            if (useOvrvisionTrack)
            {
                OvrPro.useOvrvisionTrack_Calib = true;
                CameraPlaneRight.active        = !OvrPro.useOvrvisionTrack_Calib;
            }
        }
        if (useOvrvisionTrack)
        {
            if (Input.GetKeyDown(KeyCode.H))
            {
                OvrPro.useOvrvisionTrack_Calib ^= true;
                CameraPlaneRight.active         = !OvrPro.useOvrvisionTrack_Calib;
            }
        }

        //get image data
        OvrPro.useOvrvisionAR    = useOvrvisionAR;
        OvrPro.useOvrvisionTrack = useOvrvisionTrack;

        OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr);
    }
Exemplo n.º 2
0
 public Texture GetEyeTexture(int e)
 {
     if (ovrPro.UpdateImage(camPtr [0], camPtr [1]))
     {
         ++_bufferID;
     }
     return(camTex [e]);
 }
Exemplo n.º 3
0
 public bool Update()
 {
     if (ovrPro.UpdateImage(camPtr [0], camPtr [1]))
     {
         ++_bufferID;
         return(true);
     }
     return(false);
 }
Exemplo n.º 4
0
    void Update()
    {
        //camStatus
        if (!OvrPro.camStatus)
        {
            return;
        }

        //Testing
        if (Input.GetKeyDown(KeyCode.Space))
        {
            OvrPro.OvrvisionTrackReset();
        }

        if (Input.GetKeyDown(KeyCode.G))
        {
            useOvrvisionTrack ^= true;
            if (useOvrvisionTrack)
            {
                OvrPro.useOvrvisionTrack_Calib = true;
                CameraPlaneRight.active        = !OvrPro.useOvrvisionTrack_Calib;
            }
        }
        if (useOvrvisionTrack)
        {
            if (Input.GetKeyDown(KeyCode.H))
            {
                OvrPro.useOvrvisionTrack_Calib ^= true;
                CameraPlaneRight.active         = !OvrPro.useOvrvisionTrack_Calib;
            }
        }

        //get image data
        OvrPro.useOvrvisionAR    = useOvrvisionAR;
        OvrPro.useOvrvisionTrack = useOvrvisionTrack;

        OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr);

        if (useOvrvisionAR)
        {
            OvrvisionARRender();
        }
        else
        {
            OvrvisionTracker[] otobjs = GameObject.FindObjectsOfType(typeof(OvrvisionTracker)) as OvrvisionTracker[];
            foreach (OvrvisionTracker otobj in otobjs)
            {
                otobj.UpdateTransformNone();
            }
        }
        if (useOvrvisionTrack)
        {
            OvrvisionTrackRender();
        }
    }
Exemplo n.º 5
0
    void Update()
    {
        //camStatus
        if (!OvrPro.camStatus)
        {
            return;
        }



        OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr);
    }
Exemplo n.º 6
0
    // Update is called once per frame
    void Update()
    {
        //camStatus
        if (!OvrPro.camStatus)
        {
            return;
        }

        //Testing

        /*
         *      if (Input.GetKeyDown(KeyCode.Space))
         *      {
         *              OvrPro.OvrvisionTrackReset();
         *      }
         *
         *      if (Input.GetKeyDown(KeyCode.G))
         *      {
         *              useOvrvisionTrack ^= true;
         *              if (useOvrvisionTrack)
         *              {
         *                      OvrPro.useOvrvisionTrack_Calib = true;
         *                      CameraPlaneRight.active = !OvrPro.useOvrvisionTrack_Calib;
         *              }
         *      }
         *      if (useOvrvisionTrack)
         *      {
         *              if (Input.GetKeyDown(KeyCode.H))
         *              {
         *                      OvrPro.useOvrvisionTrack_Calib ^= true;
         *                      CameraPlaneRight.active = !OvrPro.useOvrvisionTrack_Calib;
         *              }
         *      }
         */

        //get image data
        OvrPro.useOvrvisionAR    = useOvrvisionAR;
        OvrPro.useOvrvisionTrack = useOvrvisionTrack;

        OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr);

        if (useOvrvisionAR)
        {
            OvrvisionARRender();
        }
        if (useOvrvisionTrack)
        {
            OvrvisionTrackRender();
        }
    }