Unity makes 360° Panorama VR video

Source: Internet
Author: User

Ext: 82351581

1. Import Helios Plugin
2. Add the Helios-prefabs-helios3d preform to the hierarchy panel in the scene and disable the Maincamera
3. Set file save location Workingfloder, check camera armed, run recordable scene video, other parameters set on demand
4, click the Helios button, then remove some of the above options tick, click the button synthesis video (of course, you can install the FFmpeg in unity, if not installed, then download FFmpeg, operation as follows)

4, the use of ffmpeg conversion tools to synthesize video. Console Run

E:\FFMPEG\bin\ffmpeg-r 25-i e:\u3d\textimage/img%05d.jpg-vcodec h264-pix_fmt yuv420p u3dvr.mp4
" Note:

E:\FFMPEG\bin\ffmpeg is FFMPEG decompression path

is a picture address generated by Helios
-R frame rate played per second
-I is the image address generated by the Helios plugin
%d median number of digits
-VCODEC encoded form
-PIX_FMT pixel format
**.mp4 output File

(Synthetic panorama video can be played directly on VR glasses, if additional operation is required, continue down)

(Synthetic video parameters can be set as required.) After the video is synthesized, it needs to be played back in QuickTime Player, which is said to be a format that unity can recognize, but it is MP4 to see it, but you can't use it if you don't turn! )


5. Drag the video into unity and convert it to movietexture. If there is no auto-conversion, manually after the property importer Version is set to apply
6, create a new material ball, set to particles/alpha/blended, drag the video onto the material particletexture
7. Create a new empty scene, creating a sphere in the scene to give the newly built material
8. Add a script to sphere to play the video:
void Start () {
Movietexture mov = (movietexture) getcomponent<meshrenderer> (). Material.maintexture;

mov. Play ();
}
9, set the camera to the center of the sphere, for example, sphere and Maincamera positions are set to 0 points (sphere scale size can be adjusted, such as large 3 times times)
10, the operation can be. VR camera replacement on the virtual panorama.

Unity makes 360° Panorama VR video

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.