Android VR player - android

I am little new to Virtual Reality concept in android and also developed one sample demo with Rajawali VR library to show video side by side and watch it with CardBoard.
I have used this link which also help for Head Tracking, but I want to show normal videos (I mean not 360 video), like same way in Side by Side app.
Actually I want to know which View should I use instead of Sphere, because to see normal video with CardBoard we need some flat surface to play video in it side by side.
So please kindly help in that.

Try ScreenQuad material primitives of rajawali and then set the scale accordingly.It will be worked.

Related

How to show 4 videos at once using Google Cardboard?

I am trying to show four videos at once using Google Cardboard. These videos are normal 2D videos that were shot on a normal 16:9 camera. What I want and need is to have one video in front of you then you turn your head 90 degrees and you see another video, turn again and see another until you hit the front video again. Please see my Pablo Picasso Microsoft Paint skills to visualize what I am talking about...
So basically what I need is like four VR movie theater screens that a person can look around in. Is there a program I could use or do I have to do some programming to make this happen? Searching this is not easy with all the articles of VR that pop up. Any help that can point me in the right direction would be greatly appreciated!
I actually found an app that did this all for me. The app is called 360 Virtual Reality Player(Google Play Store) and it takes any 2D video and makes it into a head-tracked VR video. Once I found this app, all I needed to do is stitch the videos together with a black bar in between them using OpenCV to get the desired effect.

Making scene making from real clicked images for Google cardboard

I know about Google cardboard and I want to make say a campus tour of any company which will be handled by head movements in Google Cardboard with unity how to make campus buildings from the real images which I clicked by my camera.I am new to unity and much aware with android coding.could you link any unity tutorial.
And second thing my approach toward this idea is good with unity or it should be with android.
i want to make thing like this youtube link which i want Please suggest
In theory you could position a great lot of images in 3D space and have a scene with a very modern-art-like look - but it's much easier to do a spherical image and drag it to a sphere.
You can use a digital camera and hugin to stitch photos manually for better quality or just take any android phone with a gyroscope and semi-good camera and do a photosphere.
After getting a spherical image, just drag it to a sphere with reversed normals and put the VR camera in it's center - voilla, you've got a VR app.
A good idea would be to allow the user some interaction, moving between scenes etc. Usually there is a point where you look and either wait a bit or press the cardboard button.

Android Camera motion blur effect

Working on Android Mobile Camera
Want to implement the motion blur effect to the Android mobile camera.
This is implemented in iOS using the filter GPUImageLowPassFilter. I want alternative for this in android.
The best way to do this is to take a screen shot of the control, apply a blur to it, and then show that image over the top of the original control. This is how the yahoo weather app does it and its how google suggest you do things like this.
Render script does bluring fast. I've also got some code, but it's not currently at hand right now.
These might help:
http://blog.neteril.org/blog/2013/08/12/blurring-images-on-android http://docs.xamarin.com/recipes/android/other_ux/drawing/blur_an_image_with_renderscript/
I've also read that there are methods built into Android that do this, but the API isn't public so we cannot use it... which sucks.

Video Capture and implementation Google Cardboard (like Paul Mccartney app)

Regards community
I just want to build a similar app like this,
with my own content of course.
How to capture 360 degree video (cameras, format, ingest, audio)?
Implementation:
2.1 Which one Cardboard SDK works best for my interests (Android or Unity)
2.2 Do you know any blogs, websites, tutorials, samples in which I can support.
Thank you
MovieTextures are a great way to do this in Unity, but unfortunately MovieTextures are not implemented on Android (maybe this will change in Unity 5). See the docs here:
For a simple wrap-a-texture-on-a-sphere app, the Cardboard Java SDK should work. But if you would rather use Unity due to other aspects of the app, the next best way to do this would be to allocate a RenderTexture and then grab the GL id and pass it to a native plugin that you would write.
This native code would be decoding the video stream, and for each frame it would fill the texture. Then Unity can handle the rest of the rendering, as detailed by the previous answer.
First of all, you need content, and to record stereo 360 video, you'll need a rig of at least 12 cameras. Such rigs can be purchased for GoPro cams. That's gonna be expensive.
The recently released Unity 5 is a great option and I strongly suggest using it. The most basic way of doing 360 stereo videos in Unity is to create two spheres with MovieTextures showing your 360 video. Then you turn them "inside out", so that they display their back faces instead of the front faces. This can be done with a simple shader, turning on front face culling and removing the mirror effect. Then you place your cameras inside the spheres. If you are using the google cardboard sdk camera rig, put the spheres on different culling layers and make the cameras only see the appropriate spheres. Remember to put the spheres in proper positions regarding the cameras.
There may be other ways to do this, leading to better results, but they won't be as simple. You can also look for some paid scripts/plugins/assets to do 360 video in VR.

playing 3D rotated video on android

I'm trying find a way to play a video in a view while rotating it on Android 2.2. I'm not talking about 90 degrees rotation, I'm talking about 3D rotations.
I see that starting from API level 14 there is View.SetRotation/X/Y but I want to use API LEVEL 8.
I've tried creating my own video view by extending VideoView, create a custom matrix and set:
canvas.setMatrix(matrix);
in onDraw(Canvas) and dispatchDraw(Canvas), but this didn't make a difference. My video is playing completely flat.
Any idea how I can do this?
Here you can see some examples to what I would like to achieve:
http://www.youtube.com/watch?v=PDXxPQEDegY
http://www.youtube.com/watch?v=OBoCrWrabs4
Thanks!!
Check out NineOldAndroids.
Android library for using the Honeycomb animation API on all versions
of the platform back to 1.0
In the examples you have mentioned, no one is rotating videos.That is a simple AR app which recognizes an image provided as the "marker" in the app bundle itself.When it recognizes the image a set action is performed, that can be playing video or doing anything you want (possible in Android :)).I have done this in past and will try to fetch some snippets for you.

Categories

Resources