예제 #1
0
    /// <summary>
    /// Sends the two pictures taken to the quick stereo server for processing
    /// This function is called when the user clicks on the "Quick stereo server" button after having taken the two pictures
    /// </summary>
    public void SendToQuickStereoServer()
    {
        GameObject obj = (GameObject)Instantiate(Resources.Load("Prefabs/UploadServer"));

        _uploadServer = obj.GetComponent <UploadServer>();
        _uploadServer.SetImages(_firstPicTexture, _secPicTexture);
        _uploadServer.ResetSuccess();
        _uploadServer.Upload();
        _uploaded = true;
    }
예제 #2
0
    void Update()
    {
        // Adapts screen to the device size & orientation
        if (_currentCam != null && !_picTaken)
        {
            UpdateScale();
            UpdateOrientation();
        }

        // Pictures were sent uploaded on the server
        if (_uploaded)
        {
            TopBarText.text = _uploadServer.GetInfo();
            Debug.Log(_uploadServer.Success());
            if (_uploadServer.Success())
            {
                _uploaded       = false;
                TopBarText.text = "Sent!";
                _uploadServer.ResetSuccess();
                ScenesManager.Load("ImportObj");
            }
        }
    }