creating a panoramic spherical view in android's cardboard - android

I've been wanting to create an android's cardboard app, in which the user enters a spherical panoramic view of some panoramic picture I've taken, and that I could gather data about where the user is looking in the process.
I've seen the "Cardboard Demo" provided by google, they have a feature called "photo sphere" in which the user can view photos exactly the way I want, but I want to implement it differently.
Can anyone give me some direction on how such a panormaic viewer with cardboard?

I was also trying to build the same kind of app. You can do a Skybox implementation in Opengl.(Cube mapping)
As you said, if you already have panorama image, then you can map the same to a Sphere.
You can Refer this Blog

I have ended up using Google's Cardboard SDK for Unity.
Basic idea :
Get Unity.
https://unity3d.com/get-unity/download
Get Google CardBoard
https://www.google.com/get/cardboard/get-cardboard/
Download the following SDK for unity
https://github.com/googlesamples/cardboard-unity
Try first to get the CardBoard/DemoScene (It's in the previous link) running on your app. Use this link for guidance :
https://developers.google.com/cardboard/unity/get-started
The DemoScene is basically a 3D game for Google cardboard, you can start by loading that project into unity and playing around with the different elements. From here it's pure unity, you can use the cardboard elements (They are the only important thing here, and define two offset cameras that are synced with the movement of the phone for 3d viewing of the cardboard) from the DemoScene project and create your own scene.
As due to gathering data on where the user is looking at , I extracted the
angles of the cardboard camera objects on unity.
Good Luck!

Refer this link- Open Photoshpere from SD card in android to view in Google Cardboard
You can use the Rajawali framework-
https://github.com/ejeinc/RajawaliCardboardExample

Related

How can I add some clickable points in VR panorama image view in Android?

If I insert a 360 degree image in VrPanoramaView then the image is showing and rotating successfully but and in this library only one click event which is panoramaView.setEventListener(new VrPanoramaEventListener()).
I want to add some points in that image.
So I want to know how I can give some selected points in Google VR View in android?
UPDATE:
VrPanoramaView is deprecated:
These components were removed in v1.190 of the GVR SDK for Android. The Video360 sample should be used as a basis for creating 360 photo and video viewers. If you still want to use these widgets, you will need to use SDK v1.180 or earlier.
There's a new open source Cardboard SDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. It's recommend that all developers actively building for Google Cardboard migrate to the new Cardboard SDK: iOS, Android NDK, Unity XR Plugin (SDK)
This might not be the answer how to handle 2 points in Google VR View but as it's deprecated you should go with the new open source Cardboard SDK. There are plenty tutorials how to handle such events and more. Cheers! :)

Add markers to Panorama in Android

I already have an android app, It downloads a 360-degree panoramic image from the internet and displays inside the app using the PanoramaApi. This is all nice; I get the finger pan feature and the gyroscope based movement feature.
But I want more features. I want to be able to put markers inside the image and when clicked; I want to be able to move to a new Panoramic image inside the same viewer. Much like the live-in tour feature of CommonFloor. They also have the same feature in their Android App.
My goal is to create the same functionality.
What I have achieved so far is to display one panorama with PanoramaApi. Here is my effort so far on Github. My goal is to add markers and move from one panorama to another. And since I am currently displaying panorama using an Intent from the PanoramaAPI; I highly doubt that I will be able to add markers using this method.
There must be a better method for doing this.
I thought of using Unity, as Cardboard SDK for unity will also let me add Google Cardboard in future.
I don't want the user to install two separate APKs instead, I want the Unity to be embedded inside the current android app. It is documented here. One trick to display panorama images is documented here. However, I still have some problems with this.
How can I add markers to this?
If I add the markers somehow, how to embed that information within the panorama jpg file? (Can I do this without embedding the info as meta-data in the file, but instead saving that meta-data in a separate file (JSON/XMl or something else))?
How to pass the URLs for the panoramic jpegs and possible meta-data files, from the android activity to Unity?
I know about krpano, but it is for the web. I want a similar solution but for android.
Are there better libraries or SDKs that will enable me to achieve this? If not how can I communicate between Android and Unity?

Android Panorama viewing

Since i began programmation this forum provides me all that i always need! i want to thank you for... Thanks for all!!!!
Now i'm here to asking a problem that i not found it yet here.
I'm working on an android application. In my app, i have to read an android panorama which must be on a distant server. I have two problems to do this and hope u to save:
1. I take a panorama from my phone and When i connect it to PC from copying my panorama, this one become a simple jpeg image. I don't know how and why!!!
2. I have no idea on how to view panorama on android. I search on google, on android forums and still at my beginning point, i have to present my application next week!!!
So i give myself to you for bringing me out from this depth.
Thanks.
there's this library that do that with spherical cubic and cylindrical panoramic imagesPanoramaGL
and there's the utility with the google Play Services libs but only for spheric images refer to this :
Android Support for Photo Sphere

Augmented Reality framework for sending to a video

I am new to Augmented Reality, and I was wondering if there was already an existing Framework available for my situation. I want to make an App that scans a non coded image (bottle, pen, phone etc.), and based on the image, sends the user to a specific video.
Is there anything like this currently available? I think this would be more marker based, but I am not entirely sure. Thanks in advance!
I have used this in my app. I found it pretty easy and it did good work in my app. Its Motorola's augmented reality framework.
You should use this if you only want a video to show up when an image is tracked: https://dev.metaio.com/creator/getting-started/
you just drag the video you want over the image you want to trigger it and then deploy it.
If you'd prefer to actually code it within a framework, you can try the metaio sdk, which also allows you use 3D objects for tracking-- i.e you said track an image of a pen, but why not track the pen itself? Tutorials and more info here:
metaio sdk tutorial: https://dev.metaio.com/sdk/getting-started/
3D object tracking tool: https://dev.metaio.com/toolbox/

Is there a Framework that recognizes a 3D image and send to a video?

Is there an android Framework that can be used in an app to recognize a 3D image and send the user to a video. This should fall under augmented reality, but so far everything I have viewed uses 2D image and stuff to produce a 3D image on the screen... My situation is backwards from that. I tried using vuforia but I couldn't get the sdk to work, and unity needs an android license. DroidAr doesn't seem to fit the bill either. Or are there any tutorials on this matter? Thanks.
I have not used the feature, but Metaio has a 3D object, "markerless" tracking feature as well as the ability to do video playback within the SDK. I am sure if you would rather simply redirect to a video (YouTube) or something this would not be exceptionally difficult.
http://www.metaio.com/software/mobile-sdk/features/
Metaio's mobile SDK is similar to Vuforia, so if you had trouble with that you might have difficulty getting it up and running. If your programming skills aren't up to that, you might consider looking into Junaio, an AR browser made by Metaio. With Junaio you simply create a content channel rather than having to build the app from scratch. Again, I have not actually tried this feature yet but the documentation seems to indicate that 3D tracking is available in Juniao:
http://www.junaio.com/develop/quickstart/3d-tracking-and-junaio/
Good luck!

Categories

Resources