Project:Play 360 Videos in Unity
By Shanyuan Tenghttps://github.com/tanyuanhttp://tengshanyuan.com/
Install UnityPlease note that different versions of Unity are not compatible. You should export/import packages (.unitypackages) for cross versions. Export as packages before updating your Unity.
For this example: 5.3.4f1 Personal
HierarchyGameObjects
InspectorGameObjectComponents
AssetsFiles
Unity is a 3D programming environment
Save the scene! (360Video.unity)Unity might crash at any time so please Ctrl + S / Cmd + S frequently.
Unity default texture can only be seen from outside, so we need a custom
shader to make inside texture visible.
A material contains a texture (what to render) and a shader (how to render)
5. Create a folder Videos, drag the video inside, and drag it to the material as texture.It might take a while importing videos to Assets. (even 10+ min)
1. Switch to LIVE mode on Theta SWhile holding the camera icon button, press power button to go to LIVE stream mode. Then connect it to computer via USB.
2. Install RICOH THETA UVC Blender (Mac, Win)Richo Theta S captures dual fisheye views, while this driver can blend the two views into a single equirectangular view.
即時串流應用程式 https://theta360.com/ct/support/download/
RICOH THETA S - Dual Fisheye (native) THETA UVC Blender - Equirectangular (with driver)
2. Add a script (WebCamStream) to VideoPlaybackDrag the VideoSphere and specify Camera Number.
Device 0: RICOH THETA S Device 1: THETA UVC Blender Device 2: FaceTime HD Camera
Play once and check Unity console:
Uncheck
Check
Top Related