Actually i want to calculate the distance of the building shown in the Camera view in Android using Augmented Reality?
I have the GPS coordinates of the mobile.
For information on finding the distance between two sets of coordinates, take a look at How to calculate distance using coordinates from LocationManager
Related
I have been searching seens long about augmented reality examples or documents which covers location based services.
For Example i have to create such type of app which gives location based marker on camera view.Whenever i move camera to the direction of latitude and longitude i need to display AR marker on that direction.some thing like it is used to navigate user to that direction.
There are many SDKs available for this like.
GoogleCore,
Vuforia,
Wikitude
But main problem of Google Core is it is not supported with all devices and i have also checked other example which needs compass sensor but which is also i dont want because compass sensor also not available in all devices
Also,I have searched in Vuforia and Wikitude but i am not getting how to display AR object with respect to latitude and longitude
There are lots off calculation available but i am not able to identify actual one to use.Please help if anyone knows about it
Thanks in advance!!!
As rendering engine, I want to use LibGdx. As AR Engine I think Vuforia could fit.
I want to place an object (2D or 3D) on the ground. What I am going to achieve: When walking through the streets, I want to see augmented objects lying there or some textual information. So how can I
measure the current camera position (based on the sensor)
get the real-world y compared to the current ground
get the angle / current camera position and pose
calculate all of the gathered data into something that I can use in libgdx for rendering the object correctly over the camera preview ?
I want to use GPS coordinates or Natural Markers for the virtual objects, so any kind of other markers can not be used. I have already found a sample that uses the sensors of the camera so that I can turn around me and see then augmented objects. However all of these "fly", I want to place them on the floor and walk on by them instead of "taking them with me".
I have an augmented reality application in android and using metaio SDK as library. in my appplication i placed a 3d object metaioman at given latitude and longitude at camera preview of 4 sides north, south, east and west. and when i move the device at certain location eg east then the object is shown. and now i want to get the screen coordinate of that 3d object. i googled it but havn't found any thing. what should i do..?
It takes three days searching without stopping and have not found anyone to explain how to solve this problem.
I'd like to rotate the maps in my app so they follow the direction the user is heading - pretty much like it can be done on iOS, using the
[map setUserTrackingMode:MKUserTrackingModeFollowWithHeading]
call. So if a user turns around, the map rotates, showing what's in front of him always on top (like in many FPS games ;)
Is there a simple solution to get this working in Android app (it's API v2)?
Gather Locations from LocationClient or deprecated GoogleMap.setOnMyLocationChangeListener
create CameraPosition with lat/lng from Location object, bearing calculated from SensorManager and high zoom + tilt
put into CameraUpdateFactory.newCameraPosition
and the result put into GoogleMap.animateCamera with small duration
I am doing a small augmented reality app, and i have these objects which contains longitude and latitude information. I also have the current user location and the compass heading angle. How can I check if the coordinate is within the range of the camera view (No matter what it's distance from the camera is)?
I dont know how to make it, but I can give you logic if its possible for you to do.Yous should try this if you have not thought about it and you find it feasible. It can be idea or just a crap too.
You can do it by using current location and compass(like in which direction camera u watching). If the direction of that location from your current location and camera's direction matches then display that location as overlay.
Try this two links:
Augmented Reality on Android: Prepping the Camera and Compass
Augmented Reality on Android: Using GPS and the Accelerometer
Found it, this is exactly you want.
android-augment-reality-framework