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.
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.
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:
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.
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.
Open regedit
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}
I’m testing this on another Win 10 machine as a standalone app. In order to get the registry to appear, I needed to install RICOH THETA UVC 4K, available below:
After I installed THETA UVC 4K on my laptop and edited the registry, the standalone application worked on my laptop. The application binary is 14MB. It looks like the application can be deployed on different machines as long as the new machine has THETA UVC 4K installed and the registry is edited.
Great to hear! If you have code that displays the stream to the inside of the sphere, can you share it with @zimmermegan. She’s the one that powered through to find the solutions and shared it with us. She’s trying to use Unity only to do this, not the special sphere I made for the mac tutorial.
@codetricity@zimmermegan Oh, I had the mirroring issue too. To fix it, I used the inside-sphere that was made in blender and changed the X, Y and Z scale values in Unity to negative numbers.
Using Blender does work, but I understand that it disrupts the workflow if you’re building different spheres or want to change vertices. It’d also be cool and educational to do this entirely in Unity.
The code below is from Shanyan Teng. It was made for a video file, but it may be possible to modify it for the live stream. Unfortunately, I don’t understand it right now, though I’ve tested it with video file applications and it does work.
I’ll carve out some time and try it myself in the future.
Just so everyone following this thread is clear, the fix Megan is talking about is to set the x, y, z scale values to negative numbers. Otherwise, the text and other things will appear reversed. This is not implemented in the unitypackage file I shared above. I created another package below with the blender sphere and with the default scale set to -8, -8, -8, so it shows the correct mirroring from the start.
Also, there should be examples of using Unity to project the stream onto the inside of a sphere without using Blender. We should look for an example and publish the results here.
Now with negative values for scale of x, y, z, per @joshappleman’s tip.
Shows newspaper headline to verify that mirroring problem is resolved.