Solved: Unity Can't Display THETA V Live Stream on Windows 10

There has been no reported success with the THETA V and Windows 10. It works with Mac OS X. I want to try a clean install of Windows 10 to see if there are any driver conflicts from my previous install of the THETA S software. That is going to take some time, but getting questions from people like you is motivating me more. Thanks for bringing this up.

1 Like

Hello,

I have the same issue on windows 10.
Has anyone found a solution ?

Cheers,

N

I can only use it on Mac. :frowning:

Do you know anyone at Unity? Maybe we can try to get help from someone at Unity.

It seems like it should be possible to get it to work, but I have not been able to.

I will try on Mac too.

N

Well, I tried on Mac without success:

  • I had the two good sentences on console (about theta V) but my sphere is black.

The unity code works for my webcam but not for theta V. It seems my Mac does not have access to it.
Is there something I forget to do on mac to access theta streaming/files?

Thank you for your help.

N

Did you follow this tutorial?

Can you see the equirectangular view of the THETA V stream in QuickTime? (as a test). If not, try and switch the USB adapter you are using (try borrow one from a friend). Before you do that, try the normal test of rebooting your Mac with the THETA V plugged in.

If you can see the THETA V in QuickTime, then close QuickTime and then make sure Unity can detect your THETA V. Something like this:

using UnityEngine;
using System.Collections;

public class testScriptBasic : MonoBehaviour {

	void Start () {
		WebCamDevice[] devices = WebCamTexture.devices;
		Debug.Log("Number of web cams connected: " + devices.Length);
		Renderer rend = this.GetComponentInChildren<Renderer>();

		WebCamTexture mycam = new WebCamTexture();
		string camName = devices[1].name;
		Debug.Log("The webcam name is " + camName);
		mycam.deviceName = camName;
		rend.material.mainTexture = mycam;

		mycam.Play();
	}    	
}

The script above assumes you have an integrated webcam and the THETA V is the second webcam on your system. Adjust the device array devices[1] to devices[2] or devices[0] until you find the THETA V.

Unity should find the webcame “RICOH THETA V”

If you get this far, you should be able to display the THETA V on the exterior of a sphere. The tutorial shows a simple test to get the interior view.

Note that this only works on a Mac right now.

I followed the tutorial, I put a screenshot of my result on unity.
At the end I have the two sentences on the console about theta but my sphere remains black.

I tested the streaming with QuickTime and OBS (with different MACs) and it did not work too.

N

Thanks for this additional information.

Please confirm that the camera is in Live Streaming mode.

If you don’t see the word “Live” press the lower button.

When the THETA is connected with USB and functioning as a streaming camera, it will blink, like this:


Reset

Press and hold the power and wireless button simultaneously for more than 6 seconds

https://theta360.com/en/support/faq/c_01_v/8/


If you are able to get the THETA V into Live Streaming Mode, but can’t display it in the Mac QuickTime, it is either the USB adapter or the camera.

If you debug the camera with Mac QuickTime, you should be able to also use Ricoh official customer support as the live streaming to Mac is a supported feature.

https://theta360.com/en/support/contact/

Yes, it’s in Live Streaming.
Maybe it’s because of my MAC version (12.10)? Because I tried on an additional computer (10.12.6) and it worked.

Thank you for your help.

N

I did my test on macOS Sierra 10.12.5.

It’s possible that the older version may not work. Thanks for the report back. It will help other people debug their configuration.

I’m using Unity 2017.1.1f1.

I am testing macOS on a Hackintosh machine with this config:

  • NVIDIA GeForce GTX 750 Ti,
  • i7 4790K 4 physical cores @ 4 GHz,
  • 16 GB system memory.

Note that on Mac OS X, I was not able to create an ico sphere on Blender with flip normals to project the video to the inside of the sphere. I made the ico sphere on Windows 10. There are other techniques to project the video onto the inside of the sphere, the one I showed with the ico sphere flip normal is easy.

USB Adapter

Before you upgrade your OS, wanted to let you know that I’ve seen problems with the USB adapter on some Mac computers connected to the THETA V in live streaming mode. I’ve seen this with the newer Thunderbolt 3 ports. My friend had two adapters. Live streaming in Unity worked with one, but did not work with the other adapter.

Is it just that the Unity software for Windows 10 doesn’t support Theta V? I will try just run Mac OS on a pc, and download the Unity software for OS. I’ll tell you guys what happens.

1 Like

It runs on Mac OS X.

That demo above is on PC hardware. I installed a second hard disk on my Windows machine for that test. I installed Mac OS X on the test disk.

I was able to use the Theta V live feed (via usb) in Unity(5.6.4) on Windows 10 (version 1703) without much an issue using the materials provided in the Mac OSX thread, with only stylistic differences within the code. Are people still having issues with this?

The only problem I’m having now is with the feed from the Theta V being mirrored. I don’t know much about blender, but I’m using the sphere Craig provided in the first post. I’ve tried several methods(mostly in Unity) to flip the feed with no success, if anybody has any ideas on how to fix that please let me know.

1 Like

Nice!! Megan to the rescue.

I’m using 2017.2.0f3 and still having problems.

What THETA V web cam name are you using? Do you have multiple names like THETA V, THETA UVC?

I got this code from someone else:

It works with a video file. I have not tried it with the live stream.

http://theta360.guide/blog/video,/unity/2016/10/16/video-file-on-unity-sphere.html

`Cull Front` 

Seems like it will get rid of the shader from the outside of the sphere.

I actually don’t understand the stuff with:

#pragma vertex vert
#pragma fragment frag

Very cool, Megan! I’ve seen a lot of people with trouble here. I was trying in on my Mac in December, didn’t succeed. I’ll try again now.

1 Like

You need to install Unity 5.6 on Windows 10 to get in the game here. :slight_smile:

I’m now installing the same version that Megan is using. Then we can try and flip sphere inside of Unity instead of using the flip normals sphere.

I’ve got a Windows 10 laptop here, I’m hoping to work through this soon. :theta:

I have multiple names for the Theta V showing up, and am using the one “RICOH V FullHD”, it also works with the “RICOH THETA V” option. I have not tried the 4K version.

ThetaCams

I was searching for reasons that the camera might not have been recognized by unity by others, and
remembered that I may have messed around with the registries on my computer as per the old Theta UVC solution that craig explained here out of habit while in a frenzy to get it to work on my own. The reg for the “RICOH THETA V FullHD” feed looks like this:
Regs

Honestly I probably was in one of those “debug until it works” moods, and didn’t realize that I wasn’t documenting what I was doing. Unless it works automatically for you guys, I think that’s the fix.

1 Like

Thanks!

I’m making solid progress on Win 10.

I think i needed to add the foo:bar DevicePath

Now with THETA V 4K

2 Likes

Great! I guess that must be the solution! Man now I feel guilty for forgetting to post about it a while ago. Anyway I’ll go ahead and recap the solution for this thread.

  1. Open regedit
  2. Navigate to:

For RICOH THETA V FullHD:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{860BB310-5D01-11D0-BD3B-00A0C911CE86}\Instance{05B5709A-D045-4076-AA59-CAF159FEC26E}
For RICOH THETA V 4K:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{860BB310-5D01-11D0-BD3B-00A0C911CE86}\Instance{44ADD235-FE8A-42D8-8B18-CF575554AAB1}

  1. Right click - New - String Value. Make the Name of the string “DevicePath”
  2. Right click “DevicePath” and select “Modify Value” and add in a string of some sort. The sample here is “foo:bar”
    Reg5
5 Likes