Posted  by  admin

Cardboard Sdk For Unity For Mac

Hi everyone, VR 360 video become more and more popular in the world than ever, all of us know about the vr 360 video. But what happen with people who want to watch virtual reality video? They have to connect to Youtube app! What about creating a VR video player app for android? With the experience of a android developers, I have to tell you that it is very easy and easy to get money from selling this app too. With this kind of app, people can watch vr 360 video right on their smartphone with no the Internet connection!

Smoothier, lighter and cheaper! People are thirsty to experience new things from VR technology, some of my friend develop some very simple VR app but still get quite good income. So in this post, I will show you how to create VR Video player Android app with Google Cardboard SDK for Unity!

Create VR Video player Android app with Google Cardboard SDK for Unity There are 3 steps for you to create VR video player android app with Google Cardboard SDK for Unity. Add a sphere with an equirectangular UV mapping and inward facing normals around the camera. Purchase a plugin to play a movie on that sphere’s texture.

I recommend Easy Movie Texture. Use mp4s or ogg vorbis files that are compatible with the platform. This is phone and OS dependent. At first, Easy Movie Texture take me a lot of time before I can apply it, however, finally I get familiar with it and use it well.

Hehe, and now do you know that now my app run very well on my Iphone? This is the result that I haven’r respect before! Easy Movie Texture Tutorial I don’t know if you work on Windows environment, but on Mac you can follow this short tutorial of how to use Easy Movie Texture Download the Easy Movie Texture plug-in from the Unity Asset Store. Open the Demo Sphere demo scene from Assets/EasyMovieTexture/Scene.

Create a new (empty) Prefab to your project, and drag the Sphere GameObject from the Demo Sphere scene onto the Prefab. Reopen your Cardboard scene and drag the new videosphere prefab into your hierarchy. Open your source 360-video in Quicktime. File - Export - 720p. Change file extension from ‘.mov’ to ‘.mp4’.

Drag your new mp4 file into your projects Assets/Streaming Assets directory. Note: don’t import through the menu system, as this will force Unity to convert to OGG. On the “Media Player Ctrl” script component of your videosphere GameObject, locate the “StrFileName” field and provide the FULL filename. Make sure to include the extension as part of the string, “mymovie.mp4”.

Free resource that you will love Here are some useful resource I think that can help you a lot with VR technology:. That’s all of tasks that I have did to make it works, hehe!

Mac

One last note, you can only view the video on the phone, not in preview in the editor. It would be better if it didn’t work this way, but really once the initial issues of resolution and placement are resolved, I don’t really need to see the video every time I run the scene in the editor.

Do you want to find out what are the and?

Hi guys, Normally I wouldn't post but I have literally run out of ideas. I have been searching through the forums trying to find a solution to an error I am repeatedly getting. 'Build failure Unable to convert classes into dex format. See the Console for details.'

This always happens when trying to build and run at the 'Converting java.class to dex-format' stage. I am trying to get the Google Cardboard SDK for Unity working on Android. I am using Unity 5.3.4fi Personal on OS X Yosemite 10.10.5. I have gone through many threads and forums trying to work out what the problem might be. From what I can decipher, this error is usually caused by duplicate.jar files and often linked to using multiple plugins.

The strange thing is that I am using a completely blank project, importing the Google Cardboard Unity SDK, adding the Cardboard prefab to the stage and then attempting a build. I have also searched for.jar files in finder and there are no duplicate.jar filenames other than the ones in the Temp folder. I have also tried removing the Cardboard folders and assets and using the Durovis Dive SDK instead. I get the same issue. I have made VR apps before in Unity 4.6 and never had these issues, so I have no idea what is going on.

I literally won't be able to make any VR games unless I can get this stupid issue fixed. If anyone has nay suggestions or similar experiences, it would be a massive help and you would be preventing premature hair loss. If you need further information, please ask. Ok, so I have manage to sort it out now. I completely removed Android Studio and ALL versions of Java and JDK and then reinstalled them. Through the process, there are a few things that I noticed, which may have been the reason for the errors, however I don't know for certain.

First of all I had more than 3 versions of JDK on my Mac. Secondly, when I installed Android Studio I copied it over a previous version and wasn't greeted with the setup wizard when I opened it for the first time. This then meant that I had to add the platform and tools manually in Android Studio, which may or may not have been the issue. What I did You might want to grab a coffee for this as there a few websites to read and re-installing Android Studio takes a while. Completely removed Android Studio in Terminal as shown here:. Completely removed Java as outlined here: - This is the point where I noticed that there were several versions of JDK.

When checking the contents of the 'JavaVirtualMachines' folder there were 2 files listed. I followed the steps to delete them, but simply pressing tab won't work because there are 2 files starting with 'jdk1', so just type a bit more of the file name, then press Tab. The last point of the guide says to type 'java' in Terminal to make sure it has completely gone. I noticed that there was a 1.6.0 version of JDK, which after a quick Google search turned out to be in another folder. So I typed in terminal 'cd /System/Library/Java/JavaVirtualMachines/' to get to the folder, then 'ls' to list its contents, then 'sudo rm -rf 1.6.0.jdk/' to delete the remaining version.

I then typed 'java' again to confirm that everything was gone. I re-installed JDK from. I re-installed Android Studio from - This time I was met with the setup wizard and followed the recommended settings.

I set up an entirely new Unity project, adjusted the player settings to have a proper bundle identifier etc. Then installed the Unity Cardboard SDK from and added the Cardboard Main prefab to the scene.

I plugged in my phone, went to build and it asked me to locate the JDK location and then said it needed to update the Android SDK, which it did and then finally I had the content working on my device. Hope this solves the issue for you and hopefully the next time someone encounters the issue they will be able to see this solution and not have to bang their head against a wall like I have for the past few days. Let me know if it works for you and if you have any insight into the route of the problem, it would also be useful for future reference. I'm encountering the same problem. The only tweak i came across with is if i delete plugins folder from cardboard SDK and uncheck virtual Reality in build Setting i can compile it but for the cost of just solid color view. I'm using controller for movements and when i use the controller i can hear movements etc. But no visuals.

So, there must be something wrong with either googleCardboard VR settings or unity VR settings but i still can't figure this out maybe you can have any luck finding the problem and if you find one kindly post it here too. Ok, so I have manage to sort it out now.

I completely removed Android Studio and ALL versions of Java and JDK and then reinstalled them. Through the process, there are a few things that I noticed, which may have been the reason for the errors, however I don't know for certain. First of all I had more than 3 versions of JDK on my Mac. Secondly, when I installed Android Studio I copied it over a previous version and wasn't greeted with the setup wizard when I opened it for the first time. This then meant that I had to add the platform and tools manually in Android Studio, which may or may not have been the issue. What I did You might want to grab a coffee for this as there a few websites to read and re-installing Android Studio takes a while.

Completely removed Android Studio in Terminal as shown here:. Completely removed Java as outlined here: - This is the point where I noticed that there were several versions of JDK. When checking the contents of the 'JavaVirtualMachines' folder there were 2 files listed.

I followed the steps to delete them, but simply pressing tab won't work because there are 2 files starting with 'jdk1', so just type a bit more of the file name, then press Tab. The last point of the guide says to type 'java' in Terminal to make sure it has completely gone.

I noticed that there was a 1.6.0 version of JDK, which after a quick Google search turned out to be in another folder. So I typed in terminal 'cd /System/Library/Java/JavaVirtualMachines/' to get to the folder, then 'ls' to list its contents, then 'sudo rm -rf 1.6.0.jdk/' to delete the remaining version. I then typed 'java' again to confirm that everything was gone. I re-installed JDK from. I re-installed Android Studio from - This time I was met with the setup wizard and followed the recommended settings.

I set up an entirely new Unity project, adjusted the player settings to have a proper bundle identifier etc. Then installed the Unity Cardboard SDK from and added the Cardboard Main prefab to the scene. I plugged in my phone, went to build and it asked me to locate the JDK location and then said it needed to update the Android SDK, which it did and then finally I had the content working on my device. Hope this solves the issue for you and hopefully the next time someone encounters the issue they will be able to see this solution and not have to bang their head against a wall like I have for the past few days. Let me know if it works for you and if you have any insight into the route of the problem, it would also be useful for future reference. Thanks mate for your solutions. When you mentioned that you had multiple JDKs, something clicked in my mind, as when i was checking the error description in console it was related with some 'VirtualMachine/jdk.

Cardboard Sdk For Unity For Mac Free

' so, Here what I did!. I followed the instructions from your provided link to uninstall jdk the older versions of JDK and re-installing it (.

Then i set up jdk in External Tools in unitypreferencesExternal Tools i.e '/Library/Java/JavaVirtualMachines/jdk1.8.092.jdk/Contents/Home' for me. Tried out with the same project, It processed through dex conversion but gave me an error for installing apk on device. Created a new project set up basic scene and built the new project and 'Voila' it ran normally on my device. So, the problem was with multiple versions of jdk conflicting with each other. Maybe you can work it out with deleting older versions of jdk instead of completely installing and re-installing it and set up home path for jdk manually in unity.

Hope this solution might save some of your time for re-installing Android Studio.