예제 #1
0
    IEnumerator CaptureAll()
    {
        int    i   = 0;
        Camera cam = Camera.main;

        while (i < snapshotAmount)
        {
            Transform tr = PointCloudCoordinator.NextPoint();
            cam.transform.position = tr.position;
            cam.transform.rotation = tr.rotation;
            CameraCapture.Capture();
            i++;
            yield return(null);
        }
    }
예제 #2
0
 public void OnGenerateClick()
 {
     PointCloudCoordinator.RegeneratePointCloud(snapshotAmount);
     StartCoroutine(CaptureAll());
 }