The simple application of Storm mirror SDK in Unity3d 5.6

Source: Internet
Author: User
Tags unity 5

Last year bought a storm magic Mirror 4, now kept at home to eat ash, these days to unity3d development of VR interest is strong, just the company project is not busy, spent a few days playing storm Magic mirror SDK, because the information on the Internet is not much, the storm provides the document is not too suitable for unity such as Me white, So climbed a long time the pit can finally run on the phone.

Run:

Development Environment:
    • Development tools: Unity 5.6
    • Storm Mirror SDK:MOJINGSDK for Unity V1.3.5112 (R). zip
    • SDK Update Time: 2017.03.14
simply record the Unity3d 5.6 steps:
    • To create a Unity3d project, unzip the SDK compression pack to get MOJINGSDK for Unitydaydream V1.3.4956 (R). unitypackage, click the menu bar Assets->import package-> Custorm package, select and import this SDK bundle
    • Create a scene that will assets/mojingsdk/prefabs the Mojingmain in the directory (including the left and right two camera), Integrateinputmanager (cross-platform interactive controller), Mojingthirdcharactercontroller (Third person role model) pull into hierarchy
    • Create an empty object, modify the name overlay, and add a script SetOverlay.cs
    • Create an empty object under Mojingmain-mojingvrhead and modify the name to Gazepointer
    • Right-click Hierarchy, select Ui->event system to create an Event system, and add a script GazeInputModule.cs to pull the previous gazepointer into the cursor
    • Create plane and capsule, and modify the location and size of resources in hierarchy appropriately
    • Click on the menu bar File-build Settings, click Add Open scenes in the pop-up dialog to add the current scene, select Android, select compression in texture ASTC, click the player below After Settings, click on other Settings in the Inspector tab on the right, tick virtual Reality supported, add the cardboard SDK, modify the package name to the Android pack name, Select minimum API level as Android 4.4 and finally plug in your phone (requires USB debugging) Click Build and run to compile
Note:
    • Many online said, first deleted the scene of the original main Camera, and then add Mojingmain, at that time is spent a lot of time in this place, even if the mojingmain tag is set to Maincamera, the phone runs display "made with Unity" It becomes a black screen, after many attempts (small white first, do not spray), or need to retain the original main Camera:
    • As long as the virtual Reality supported, run to the phone can be two-screen display, Storm Mirror's SDK is simply to provide some resources and APIs
Reference Links:
    • 360 Panorama Tour (Unity3d + Storm Mirror)
    • [Unity3d]3d Project converted to VR project (Storm Mirror SDK)
    • Song Xiao Bo · Unity3d AR/VR Employment Class

The simple application of Storm mirror SDK in Unity3d 5.6

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.