I'm trying to find out if there are any examples how to play 3D video for cardboard in android. I have a 3D video and need my app to play in cardboard. I'm not sure if the SDK has support and couldn't figure it out as there is very less documentation.
It is not very easy. I think the problem is not about Google Cardboard, but about Unity itself. It is not easy to add any kind of video to Unity. If you are able to open a normal video within the Unity game, I think that 3D video will work too.
Check the docs about how to configure it for Android: http://docs.unity3d.com/es/current/Manual/class-MovieTexture.html
I tried to add a video to an older version of Unity. Unity crashed. I did the conversion manually. I wrote the explanation here: http://answers.unity3d.com/questions/997663/unity-video-import-bug.html
I think this:
Google Cardboard SDK (Software Developement Kit)
Will help you to build apps that display 3D scenes with binocular rendering, track and react to head movements, and interact with apps through magnet input.
also you can easily adapt an existing Unity 3D app for virtual reality or build your own VR experience from scratch.
Thanks for all the answers. For me only solution that worked is to use that is described at HERE. Had to Use unity with a plugin to play video on movietexture.
Without using the unity plugin Easy Movie Texture plugin I couldn't find any easier solution.
Related
I would like to built a small app that shows a panorama 360º image with head tracking on Android. I quickly stumbled upon com.google.vr.sdk.widgets.pano.VrPanoramaView (https://developers.google.com/vr/develop/android/vrview). But there is a big disclaimer on top:
This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates. All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin.
So clicking the link to the new Cardboard SDK I ended up here: https://developers.google.com/cardboard/develop/c/quickstart
Which shows a game like environment in stereo VR. Super cool in its own right, but it isn't a replacement for VrPanoramaView. And the newer SDKs for Android do not support VrPanoramaView anymore.
Also, I could not find an example on the new Cardboard SDK site how to built a 'simple' VR image 360º panorama viewer with headtracking.
Googling a bit more I found that people said there is no alternative for the deprecated panorama VR viewer, which I find hard to understand. The VrPanoramaView seemed pretty simple and elegant in its use, whereas going full blown C++ with matrices and all for lens distortion seems like pretty hard core to deal with to me. Compare all that C++ code to this much simpeler code example: https://youtu.be/gnDa-fvEyUk?t=471
Is there an out-of-the-box VR 360º image viewer that supports stereo? Or how could I use the new Cardboard SDK and built something similar?
I want to create an Android App which supports Augmted reality but it seems that the technologies are getting worse.
Since Google stopped working on Sceneform there are only 2 options left: Using ARCore with OpenGL which is basically impossible because there are hardly any docs out there.
Or using AR Foundation but that is also not working properly and takes a lot of time to build because of the long building time.
Most of tutorials are about Google Sceneform and I just have the feeling that Sceneform did a great job and I don't understand why Google closed this project.
I'm familiar with frameworks like Vuforia but I would need a reliable plane detection tool which Vuforia does not provide as far as i know.
Does anybody have suggestions what I can use instead? Does anybody has experience with AR?
I have a published 2D puzzle game (require drawing 400 small images in each frame) on Android developed using SurfaceView. Due to performance issues on some tablets and phones, I am forced to look at other alternatives. It looks like Unity is the best option. Before I do this, I have several questions.
Can unity provide faster and consistent performance on most of Android devices? (like drawing 400 items every frame)
Can I mix Android Layouts and activities with Unity
Activity. (What I mean here is can I just replace the game play part
with unity keeping the existing implementation of the game using
android layouts/fragments/activities)
Can I call google play in-app purchases from Unity
Game canvas?
1.If the images are very small then it might be able to. Use the the Image or RawImage component to display each image. If performance is still bad, you can use GPU instancing which has been made more easier to use in Unity lately.
2.You can write a Java plugin and load it from Unity or you can even write your Activity in Java with layouts and then control your Unity program from it. See this post for more information on that.
Even though it is possible, don't do it. Only write a Java code when you have to otherwise, you will end up with a game that works on Android only. The point of using Unity is to make a Game that works on most devices. Port all your code to C#. That's what I would do.
3.Yes, you can use google play in-app purchases in Unity with the Prime31 plugin or you can use Unity IAP that's easy to use and requires no plugin at-all.
I have created 3d models of some objects and see them correctly using cardboard through sketchfab.com without any difficulty.
I can see them as a VR model exactly what I wanted.
But I dont know how to create a standalone android app using my 3d model.
I am just looking for a template mobile application where I will place my model and see them as a mobile app through cardboard.
Any recommendation for an early start?
After lots of research, I found out the best solution is using Unity3D application. There are plugins to assist with cardboard app development. I created my first app very easily within minutes of using a demo carboard application. Now I am enjoying and learning Unity3D
The cardboard example? Might be a bit of hacking to chop out their block model and replace it with your art but it shouldn't be a mountain of work
https://github.com/googlesamples/cardboard-java
How to do live streaming in google glass through android code, i am using eclipse IDE to develop android apps. I have downloaded GDK and created the project using GDK. I have browsed for live video streaming, i didnt get any blogs related to that(i dont know how to use Mirror API to do live streaming )..Can anyone helped me to go up?
If you're using the GDK, then you can just use the standard android VideoView or MediaPlayer. It's explained pretty well in the Android API Guide. http://developer.android.com/guide/topics/media/mediaplayer.html
You probably want to build and test this in Android first (a phone or emulator). That should be faster since it's easier to interact with the touch screen. Once you have that working you can load it onto your Glass and proceed from there.
As far as I know there isn't a way to do this with the Mirror API. Only with the GDK.