Unity VR Panorama Tour

Source: Internet
Author: User
Tags google vr

Software Environment

Unity5.3.1 X64 http://unity3d.com/cn/get-unity/download/archive

Ptgui[Optional] Turn the panorama into 6 cubic small plots http://www.ptgui.com/download.html

Google VR SDK for Unity https://github.com/googlevr/gvr-unity-sdk

Panorama photo (self-shooting or google search)

Objective

The recent VR made that fire, learning is outdated, so there is free time to study the relevant knowledge.

This paper introduces two methods to make VR scene, which is composed of 6 small graphs to make VR scene, and the second one is the VR scene by a Panorama.

The final method of setting up the scene is universal and can be used as a scene with a small image or a panorama.

Tangent Cube Chart

1. Run PTgui, choose ToolsConvert to Qtvr/cubic

2. Click on Add files to add the Panorama file.

3, select cube faces,6 separate files (cube surface, 6 separate files), you can choose the cube face Names , set the suffix of each file

4. Click Convert , output file and your panorama picture in the same directory

Tangent chart Results

6 Cube Chart Settings

1, Import googlevrforunity.unitypackage (if already, can be ignored)

2, Import cut 6 small pictures, select the 6 pictures, unified set the properties of the picture as follows:

3. Create a mat, named scene_cubes

4, modify the Scene_cubes shader for SKYBOX/6 sided

5, put 6 small pictures according to the name into the corresponding area

6. Now your resources should look like this

Panorama settings

1, Import googlevrforunity.unitypackage (if already, can be ignored)

2. Import panorama (large uncut image), set the properties as follows:

3. Create a mat, named scene

3, modify scene shader for Skybox/cubemap, and the panorama of Step 2, drag to cubemap

4. Now your resources look like this

Build a scene

1, drag the GVR SDK to bring the Gvrmain.prefab into the scene, of course, you can also create self, note: The structure and gvrmain, the components are bound.

2, modify the Main camera 's Clear Flags for Skybox, instead of the original Solid Color, the camera will remain consistent after the modification.

3. Select left and right lens, add skyboxto them, and assign value to Scene_cubes.mat or Scene.mat [can be omitted]

4. Click Window – Lighting to open the Lighting window and set skybox to scene_cubes.mat in Scene or Scene.mat

Run results

hold down the ALT key to move the mouse to simulate head motion

QTVR

QuickTime VR(also known as QTVR) is a file format supported by Apple's QuickTime. You can use it to watch, make a drag-and-drop panorama, and watch the object by taking images from different angles. It works as a plugin for QuickTime players, or as a Web browser's QuickTime plugin.

QuickTime VR can also work on the Apple system in Windows systems.

Panoramic

The virtual panorama is a panoramic view (inside and outside) that surrounds the audience, creating a feeling of being in it. Two images are created by "stitching" several normal photos or two photos taken with a 180-degree fisheye lens, or using a panoramic camera with special features or even a three-dimensional modeling scene.

    • Single row panorama, with a horizontal line of photos.
    • Multi-line panorama, with multiple lines of photos taken at different tilt angles.

The virtual reality panorama is further divided into top and bottom, called cubes or spherical panoramas, those that do not include the top and bottom are commonly referred to as cylindrical panoramas.

A single panorama, also known as a node, is captured from a separate point in space. By connecting a multi-node or multi-object movie, the audience can move from one location to another. This multi-node QuickTime VR movie is called a scene.

Apple's QuickTime VR file format has two representations of the Panorama node:

    • Cylindrical (from a 360-degree image around the audience)
    • Cubic (six images surrounded by the audience of two 90°x90° orthogonal cubes)

Each of them is usually subdivided or tiled into several smaller images and stored in a specially formatted QuickTime movie.

Hotspots can be embedded in the panorama, and they can be called when they are selected, such as moving to another hotspot in the panorama.

Object

Compared to a panorama taken at a different angle from one location to another, the object refers to photographing the same object at different angles.

The simplest object panorama is captured on a single row, usually in the equatorial direction of an object. This usually uses a rotating turntable to make filming easy. The object is placed on the turntable and is photographed at an average incremental angle by the camera fixed on the tripod (usually 10°).

Capturing a multi-row object movie requires finer settings because the camera must tilt a certain angle on the upper and lower sides of the object's equator.

The source of the image does not have to be a photo, or it can be 3D or a drawing.

For more information, please refer to: Https://zh.wikipedia.org/wiki/QuickTime_VR

Report

Reference: http://szeching.com/how-to-make-cardboard-vr-app-with-unity3d/

Unity VR Panorama Tour

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.