Re: [android-developers] Augmented Reality frameworks - what your choice?

2013-08-08 Thread Nathan


On Thursday, August 8, 2013 6:10:51 AM UTC-7, Daniele Segato wrote:
>
> On 08/08/2013 12:07 AM, Nathan wrote: 
> >   * Wikitude. A bit more expensive, but possibly more established and 
> > mature. Since their sample app has a million downloads. 
>
> this one sucks in my opinion. 
> It use a webview for an HTML5 app. 
> HTML5 app sucks for many reasons. Performance is one of them. 
> I would stay away from it. 
>

That is something I didn't notice at first glance. HTML5 isn't my first 
choice, and offline capability is a must.  

Reading seems like Metaio http://www.metaio.com/ is the most complete 
> (cross platform) Augmented Reality framework. 
> But you can't develop for it on Linux which makes no sense at all in my 
> opinion. 
>

It does seem very well featured, and may do more than I need.  

It's also pricey at $5490 per app. The ideas I had in mind may not bring a 
big ROI at that cost. But I'll look at it some more. Thanks. 


> In my company we use Vuforia 
> http://www.qualcomm.com/solutions/augmented-reality for natural features 
> and markers tracking. 
>

Thanks. I might try it if I were going the computer vision route. 
 
Nathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Augmented Reality frameworks - what your choice?

2013-08-08 Thread Daniele Segato

On 08/08/2013 12:07 AM, Nathan wrote:

 From your experience, what is the best option for an Augmented reality
framework?
If you have developed one or developed with one, please comment.

There isn't a lack of options - just looking for feedback on which ones
actually work.
The largest list I could find on this topic is this:

http://socialcompare.com/en/comparison/augmented-reality-sdks

I probably need:

  * GPS and sensors use
  * Placement of markers, icons, and some vectors (lines or shapes) in
the 3D world.
  * Should work without internet or data. Shouldn't be a problem since I
am not counting on an online feed.
  * Non GPL.

I may need ( in the dream future):

  * more complex 3d rendering with meshes and dynamically loaded
textures. Nothing too major, just maybe like overlaying a Google
Earth like image with the camera. ;)

I probably don't need:

  * Data for the Points of Interest, I'll provide my own and they'll be
small in number.
  * Computer Vision based reality. That eliminates quite a few.
  * Object manipulation - I don't need to design cities or anything like
that.

I'm looking for more of the viewfinder sort of thing.

I prefer buy over build, I think because I don't want to start from
scratch on working around the bugs on every single device. Of course, I
don't want to buy and still have to fix all the bugs myself.

So here are some I'm considering.

  * ARLab.com. As described on their website at least, it sounds like
the ArBrowser


don't know anything about this, can't comment on it


  * Wikitude. A bit more expensive, but possibly more established and
mature. Since their sample app has a million downloads.


this one sucks in my opinion.
It use a webview for an HTML5 app.
HTML5 app sucks for many reasons. Performance is one of them.
I would stay away from it.


  * http://www.chupamobile.com/products/details/296/Augmented+Reality+Toolkit/.
Probably made by a guy in his basement, but if it does work, it is
only $20. Probably worth buying just to prototype something before
going full scale.


As for ARLab, don't know, can't comment

Reading seems like Metaio http://www.metaio.com/ is the most complete 
(cross platform) Augmented Reality framework.
But you can't develop for it on Linux which makes no sense at all in my 
opinion.



In my company we use Vuforia 
http://www.qualcomm.com/solutions/augmented-reality for natural features 
and markers tracking.

It's unbelievably fast and reliable.
We haven't much experience with it on Android yet (we are starting now 
on the platform) - but I personally tried the examples and it works 
pretty well, fail to run only on very old devices or low end devices, I 
also tried with a RAZR with x86 processor and it works... MIPS devices 
will not work.
it doesn't provide a 3D engine tough (see my other post in this ml) so 
you'll have to find one on your own.


Regards,
Daniele Segato

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Augmented Reality frameworks - what your choice?

2013-08-07 Thread Nathan
>From your experience, what is the best option for an Augmented reality 
framework?
If you have developed one or developed with one, please comment. 

There isn't a lack of options - just looking for feedback on which ones 
actually work.  
The largest list I could find on this topic is this:

http://socialcompare.com/en/comparison/augmented-reality-sdks

I probably need:

   - GPS and sensors use
   - Placement of markers, icons, and some vectors (lines or shapes) in the 
   3D world. 
   - Should work without internet or data. Shouldn't be a problem since I 
   am not counting on an online feed. 
   - Non GPL. 
   
I may need ( in the dream future): 

   - more complex 3d rendering with meshes and dynamically loaded textures. 
   Nothing too major, just maybe like overlaying a Google Earth like image 
   with the camera. ;) 
   
I probably don't need:

   - Data for the Points of Interest, I'll provide my own and they'll be 
   small in number. 
   - Computer Vision based reality. That eliminates quite a few. 
   - Object manipulation - I don't need to design cities or anything like 
   that. 
   
I'm looking for more of the viewfinder sort of thing. 
 
I prefer buy over build, I think because I don't want to start from scratch 
on working around the bugs on every single device. Of course, I don't want 
to buy and still have to fix all the bugs myself. 

So here are some I'm considering. 


   - ARLab.com. As described on their website at least, it sounds like the 
   ArBrowser
   - Wikitude. A bit more expensive, but possibly more established and 
   mature. Since their sample app has a million downloads. 
   - 
http://www.chupamobile.com/products/details/296/Augmented+Reality+Toolkit/. 
   Probably made by a guy in his basement, but if it does work, it is only 
   $20. Probably worth buying just to prototype something before going full 
   scale. 
   
Can anyone comment? 

Nathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] augmented reality

2012-11-14 Thread bob
 

Is it possible to make an augmented reality game where you're a plane and 
you fly over your current location (satellite imagery)?


Thanks.



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] augmented reality

2012-09-12 Thread tsioularisa
Hello i have to make an android app for my thesis!the subject of the app 
depends on augmented reality!The brief description is that the app uses 
your position(gps) and your camera. it then detects some places of interest 
and when you click on them it gives you extra information about them. I 
want to ask you if you suggest any augmented reality development kit/sdk.

Thanks in advance and sorry for my English mistakes. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality Implementation

2012-06-12 Thread Jeffrey Hodes


I'm trying to implement a simple augmented reality tool for Android. All it 
needs to do is take as input my location and device orientation and the 
location of another device and present a camera view with an icon overlaid 
in the appropriate place in an appropriate size.

I'm stuck in two places:

I wrote code to get updates for the current azimuth, pitch, and roll of the 
device. The code looks like this:

private final SensorEventListener goodListener = new SensorEventListener() {
private float[] magneticValues;
private float[] accelerometerValues;

public void onAccuracyChanged(Sensor sensor, int accuracy) {
}

public void onSensorChanged(SensorEvent event) {
switch (event.sensor.getType()) {
case Sensor.TYPE_MAGNETIC_FIELD:
magneticValues = event.values.clone();
break;
case Sensor.TYPE_ACCELEROMETER:
accelerometerValues = event.values.clone();
break;
}

if (magneticValues != null && accelerometerValues != null) {
float[] outR = new float[9];
float[] orientationValues = new float[3];

SensorManager.getRotationMatrix(outR, null,
accelerometerValues, magneticValues);
SensorManager.getOrientation(outR, orientationValues);

double azimuth = Math.toDegrees(orientationValues[0]);
double pitch = Math.toDegrees(orientationValues[1]);
double roll = Math.toDegrees(orientationValues[2]);

}
}

When I use logging to read these values, they seem relatively stable, but 
they do not seem to correspond to angles around any natural set of axes, 
and I can't figure out what the numbers represent. How should I interpret 
these numbers?

The tutorial at http://www.devx.com/wireless/Article/42482/0/page/3 takes a 
much simpler approach, but I cannot get it to work.

Once I have my device's azimuth, pitch, and roll, along with my latitude 
and longitude and that of the other device, how can I determine where to 
put the icon on the screen? This seems to be a complicated geometry problem 
where we must imagine the view field of the camera as an infinite cone, 
project it onto the surface of the earth, and see if the other location is 
inside the projected area, but this seems awfully complicated. Is there a 
better way that I'm overlooking?
Thanks!

- Jeff

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Augmented Reality

2012-02-15 Thread Anirudh Loya
Pls reply

On Mon, Feb 13, 2012 at 8:42 PM, Anirudh Loya  wrote:
> Thanks Raghav. I saw your book in A-Z market also, but the pricing was
> a concern to me.
> I would be greatful if you could assist me with any blogs of yours
> where I can start from scratch on AR or any material as a reference if
> you can mail me up. Anyhow, I am looking in blogs of Chris as of now.
>
> Thanks,
> Anirudh Loya
>
> On Tue, Feb 14, 2012 at 2:10 AM, Raghav Sood
>  wrote:
>> Currently, there are no books on Augmented Reality and Android, AFAIK. I am
>> in the process of writing one, but that will not be published until May. You
>> can see if it can help you: http://www.apress.com/9781430239451. If you use
>> Google, you should be able to find Chris Haseman's tutorial on the subject
>> on devx. That should serve as an introduction.
>>
>> I'd also recommend looking into Augmented Reality engines like AndAR.
>>
>> Thanks
>>
>> On Mon, Feb 13, 2012 at 6:48 PM, Anirudh Loya 
>> wrote:
>>>
>>>
>>> Hi Guys,
>>>
>>> Need your help regarding Augmented reality. I am not new to Android
>>> Development. I am in the beginning stage of reality app. Basically I
>>> have no idea about making Augmented reality app.
>>>
>>> Pls suggest me with books on Augmented reality and It would be great
>>> help if you could give direct weblinks of Ebook.
>>>
>>> Cheers,
>>> Anirudh Loya
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Raghav Sood
>> http://www.androidactivist.org/ - Author
>> http://www.appaholics.in/ - Founder
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality

2012-02-13 Thread Anirudh Loya
Thanks Raghav. I saw your book in A-Z market also, but the pricing was
a concern to me.
I would be greatful if you could assist me with any blogs of yours
where I can start from scratch on AR or any material as a reference if
you can mail me up. Anyhow, I am looking in blogs of Chris as of now.

Thanks,
Anirudh Loya

On Tue, Feb 14, 2012 at 2:10 AM, Raghav Sood
 wrote:
> Currently, there are no books on Augmented Reality and Android, AFAIK. I am
> in the process of writing one, but that will not be published until May. You
> can see if it can help you: http://www.apress.com/9781430239451. If you use
> Google, you should be able to find Chris Haseman's tutorial on the subject
> on devx. That should serve as an introduction.
>
> I'd also recommend looking into Augmented Reality engines like AndAR.
>
> Thanks
>
> On Mon, Feb 13, 2012 at 6:48 PM, Anirudh Loya 
> wrote:
>>
>>
>> Hi Guys,
>>
>> Need your help regarding Augmented reality. I am not new to Android
>> Development. I am in the beginning stage of reality app. Basically I
>> have no idea about making Augmented reality app.
>>
>> Pls suggest me with books on Augmented reality and It would be great
>> help if you could give direct weblinks of Ebook.
>>
>> Cheers,
>> Anirudh Loya
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality

2012-02-13 Thread Raghav Sood
Currently, there are no books on Augmented Reality and Android, AFAIK. I am
in the process of writing one, but that will not be published until May.
You can see if it can help you: http://www.apress.com/9781430239451. If you
use Google, you should be able to find Chris Haseman's tutorial on the
subject on devx. That should serve as an introduction.

I'd also recommend looking into Augmented Reality engines like AndAR.

Thanks

On Mon, Feb 13, 2012 at 6:48 PM, Anirudh Loya wrote:

>
> Hi Guys,
>
> Need your help regarding Augmented reality. I am not new to Android
> Development. I am in the beginning stage of reality app. Basically I
> have no idea about making Augmented reality app.
>
> Pls suggest me with books on Augmented reality and It would be great
> help if you could give direct weblinks of Ebook.
>
> Cheers,
> Anirudh Loya
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality

2012-02-13 Thread Anirudh Loya

Hi Guys,

Need your help regarding Augmented reality. I am not new to Android
Development. I am in the beginning stage of reality app. Basically I
have no idea about making Augmented reality app.

Pls suggest me with books on Augmented reality and It would be great
help if you could give direct weblinks of Ebook.

Cheers,
Anirudh Loya

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality

2012-01-20 Thread Ricardo Santos
You will need more than 7 days for that...

My advice it for you to go beyond wikipedia and see some real image
processing books. I had this on college a few years ago and do not remember
the name of the subject, but I know that with some real research you can do
it.

Hope you don't have a deadline to this project... :D

On Fri, Jan 20, 2012 at 8:23 AM, Raghav Sood  wrote:

> This is currently not possible. Unless you are willing to write code that
> can efficiently describe to AndAR how every possible bulb you will be use
> looks from every angle, then I'd suggest you drop it.
>
> Thanks
>
>
> On Thu, Jan 19, 2012 at 10:37 AM, tofeeq ahmad wrote:
>
>> I am working on Augmented Reality from last 7 days.I implement AndAR
>> API library for this purpose.My problem is creating marker.I used some
>> online marker generator.But all has one limitation that every pattern
>> should have black border around it otherwise it will not make a
>> pattern.
>> This is limitation is barrier for my app.I want to detect Physical
>> object like real bulb. If i make pattern for bulb by putting it on
>> black square paper then marker generator generate pattern and AndAR
>> detect bulb with background black square,But if i remove background
>> image then it do not able to detect bulb.
>>
>>
>> My aim to detect physical bulb.And physical bulb does not have any
>> black border around it.So how to make pattern for physical object and
>> then detect them
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Augmented Reality

2012-01-20 Thread Raghav Sood
This is currently not possible. Unless you are willing to write code that
can efficiently describe to AndAR how every possible bulb you will be use
looks from every angle, then I'd suggest you drop it.

Thanks

On Thu, Jan 19, 2012 at 10:37 AM, tofeeq ahmad wrote:

> I am working on Augmented Reality from last 7 days.I implement AndAR
> API library for this purpose.My problem is creating marker.I used some
> online marker generator.But all has one limitation that every pattern
> should have black border around it otherwise it will not make a
> pattern.
> This is limitation is barrier for my app.I want to detect Physical
> object like real bulb. If i make pattern for bulb by putting it on
> black square paper then marker generator generate pattern and AndAR
> detect bulb with background black square,But if i remove background
> image then it do not able to detect bulb.
>
>
> My aim to detect physical bulb.And physical bulb does not have any
> black border around it.So how to make pattern for physical object and
> then detect them
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality

2012-01-19 Thread tofeeq ahmad
I am working on Augmented Reality from last 7 days.I implement AndAR
API library for this purpose.My problem is creating marker.I used some
online marker generator.But all has one limitation that every pattern
should have black border around it otherwise it will not make a
pattern.
This is limitation is barrier for my app.I want to detect Physical
object like real bulb. If i make pattern for bulb by putting it on
black square paper then marker generator generate pattern and AndAR
detect bulb with background black square,But if i remove background
image then it do not able to detect bulb.


My aim to detect physical bulb.And physical bulb does not have any
black border around it.So how to make pattern for physical object and
then detect them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented Reality Advertisement: Survey

2011-11-25 Thread EdwardComb
Hi,

As for completing the final year project, I am in the midst of
distributing the survey questions that are related to the enhancement
of physical advertisement like newspaper, magazine, brochure and
flyer. I believed, most of the people used to buy or read one of them.
Thus, I would really appreciate if you are willing to participate in
this survey.

About the survey:
This survey is looking for the responses of the people towards the
advertisement in the newspaper, magazine, brochure or flyer.
Specifically, it is referring to the food advertisement like
chocolate, ice cream, fast food and the others.  By using technology,
this advertisement can be enhanced and the responses from this survey
will be used to implement Augmented Reality Advertisement on Android
(ReADroid).

Your participation in this research is voluntary and completion of the
survey is an indication of your informed consent to participate. You
are under no obligation to participate in the study. You can decide to
withdraw at any point prior to, or during the study. If you decide to
withdraw, any information that has already been provided in the survey
will not be used.

If you agree to participate, please complete the questionnaires below:

http://www.surveypie.com/survey101011

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented reality: using camera feed as texture

2011-11-13 Thread Nickw
Hi,

Posted on this a while back but I've been doing some more work on it
since. The aim of the augmented reality app I'm developing is to
overlay geographical data (roads, hiking trails) on a camera feed for
navigation. Following other examples on the web, I've decided to use
the raw camera feed as an OpenGL texture and overlay geographic data
on top of the texture within a GLSurfaceView. The feed will be black
and white for the moment.

Only problem is, it seems to be impossible to capture camera data
without creating a SurfaceView to show the preview. However, since
you're not supposed to layer SurfaceViews on top of each other, this
appears to mean that I presumably have to create an invisible
SurfaceView just to be able to capture camera data. The other
solutions to this I've seen on the web (nhenze.net and AndAR) seem to
layer SurfaceViews on top of each other.

Is it therefore true that (prior to Android 3.0) there is simply no
elegant solution to the problem? The only solutions people have come
up with are either:
a) overlay two surfaceviews on top of each other (not guaranteed to
work);
b) create a "dummy" SurfaceView for the preview just to get
PreviewCallback working; or
c) reimplement GLSurfaceView from scratch to incorporate a camera
feed?

Thanks,
Nick
Thanks,
Nick

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality - Tutorial

2011-10-03 Thread Robin Talwar
use qualcomm sdk

On Mon, Oct 3, 2011 at 4:46 PM, EdwardComb  wrote:

> Hey Folks,
>
> I am currently interested to create an Augmented Reality application
> for Android.
> I have no problem to create normal Android application and I am
> familiar with IDE, SDK and etc.
> But I just have no idea where to start for this Augmented Reality (AR)
> stuff.
>
> My intention is actually to make the drawing in the paper come alive
> in 3D when using
> the Android camera. But most of the tutorial in the web describing
> about the GPS and etc.
>
> I really need your help to point me any references I can use to create
> the application mentioned above.
>
> Thank's..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards
Abhishek Talwar
9953395712

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality - Tutorial

2011-10-03 Thread EdwardComb
Hey Folks,

I am currently interested to create an Augmented Reality application
for Android.
I have no problem to create normal Android application and I am
familiar with IDE, SDK and etc.
But I just have no idea where to start for this Augmented Reality (AR)
stuff.

My intention is actually to make the drawing in the paper come alive
in 3D when using
the Android camera. But most of the tutorial in the web describing
about the GPS and etc.

I really need your help to point me any references I can use to create
the application mentioned above.

Thank's..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented Reality project, help please

2011-09-27 Thread saex
I have a Augmented Reality App that simply shows the camera view and
get's the user GPS position, azimuth, direction, inclination, etc...
Also i have stored the GPS position of a famous building of my City.
Now i need that when the user faces to the direction of the Building,
a textview ("Building") or a image (the easiest one) must be draw on
the screen in the Building position on the camera.

**I know how to check if the phone is facing the building, i can do
with this code:**

float a =loc.bearingTo(BuildingLocation);
float b =azimuth;
float d = Math.abs((a - b)) % 360;
float r = d > 180 ? 360 - d : d;

Ok, that code gives me the degree diference between what is facing the
phone and the building GPS position. Then, the most the user is facing
the building, the little will be the `r` value. The problem now is
that when the user is at more distance of the building... the angle of
vision is higher, and i dont know how, when and where i have to draw
the textview that i want to put exactly on the building position.

¿How can i do it? I read some accelerometer/compass/gps tutorials but
all of them are poorly explained and didn't show me how to do this,
for example: [http://www.devx.com/wireless/article/42482/1954][1] this
tutorial is very poorly explained and it didn't works when i use the
code, Also doesn't gives me explanations of how to show a point when u
face the object and how to calculate distances

Good tutorials for doing this, and code examples, are welcome.

This is the code i have done. Captures user GPS position (`location`),
azimuth, direction, inclination, etc... and also have stored the
position of the building (`BuildingLocation` `BuildingLat` &
`BuildingLon`).

Help will be appreciated

The code (CustomCameraView class is a default camera view class, the
code for that class is in the tutorial of the link i posted some lines
up):

public class AugmentedRealitySampleActivity extends Activity {
private CustomCameraView cv=null;
private TextView tv1;
private TextView tv2;
private TextView tv3;

public static SensorManager sensorMan;

private Location location; //gps
public volatile float inclination; //accelerometer

double BuildingLat;
double BuildingLon;
Location BuildingLocation;

private static final int matrix_size = 16;
float[] R = new float[matrix_size];
float[] outR = new float[matrix_size];
float[] I = new float[matrix_size];
float[] values = new float[3];
private float[] mags;
private float[] accels;
private float azimuth;
private float incValue;

LocationManager mLocationManager;
MyLocationListener mLocationListener;

public void onCreate(Bundle savedInstanceState)
{
   super.onCreate(savedInstanceState);
   cv = new CustomCameraView(this.getApplicationContext());
   FrameLayout rl = new 
FrameLayout(this.getApplicationContext());
   LinearLayout ll= new 
LinearLayout(this.getApplicationContext());
   ll.setOrientation(LinearLayout.VERTICAL);

   setContentView(rl);
   rl.addView(cv);
   rl.addView(ll);

   tv1=new TextView(getApplicationContext());
   tv2=new TextView(getApplicationContext());
   tv3=new TextView(getApplicationContext());

   ll.addView(tv1);
   ll.addView(tv2);
   ll.addView(tv3);

   sensorMan = (SensorManager)
getSystemService(Context.SENSOR_SERVICE);
   sensorMan.registerListener(SensorListener,
sensorMan.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
SensorManager.SENSOR_DELAY_UI);
   sensorMan.registerListener(SensorListener,
sensorMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
SensorManager.SENSOR_DELAY_UI);

   mLocationListener = new MyLocationListener();
   mLocationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);

mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
2000, 3, mLocationListener);

   //getLatitude(); getLongitude(); bearingTo(); distanceTo();
   tv1.setText("Test1");
   tv1.setBackgroundColor(Color.BLACK);
   tv2.setText("Test2");
   tv2.setBackgroundColor(Color.BLACK);
   tv3.setText("Test3");

   //location of the Building to face:
   String coordinates2[] = {"39.4643", "-0.36038"};
   BuildingLat = Double.parseDouble(coordinates2[0]);
   BuildingLon = Double.parseDouble(coordinates2[1]);
   BuildingLocation = new Location(LocationManager.GPS_PROVIDER);
   BuildingLocation.setLatitude(BuildingLat);
   BuildingLoca

[android-developers] Augmented Reality: How to display a TextView on a building when the user faces the building? (building GPS position is stored)

2011-09-26 Thread saex
I have a Augmented Reality App that simply shows the camera view and
get's the user GPS position. Also i have stored the GPS position of a
famous building of my City. Now i need that when the user faces to the
direction of the Building, a textview ("Building") or a image (the
easiest one) must be draw on the screen pointing the Building
position.

Also will be great to write the distance between the user GPS position
and the Building.

¿How can i do it? I readed some accelerometer/compass/gps tutorials
but all of them are poorly explained and didn't show me how to do
this, for example: http://www.devx.com/wireless/article/42482/1954
this tutorial is very poorly explained and it didn't works when i use
the code, Also doesn't gives me explanations of how to show a point
when u face the object and how to calculate distances

Good tutorials for doing this, and code examples, are welcome.

This is the code i have done. Captures user GPS position (`location`),
azimuth, direction, inclination, etc... and also have stored the
position of the building (`BuildingLat` & `BuildingLon`).

Help will be apreciated

The code (CustomCameraView class is a default camera view class, the
code for that class is in the tutorial of the link i posted some lines
up):

public class AugmentedRealitySampleActivity extends Activity {
private CustomCameraView cv=null;
private TextView tv1;
private TextView tv2;

public static SensorManager sensorMan;

private Location location; //gps
public volatile float inclination; //accelerometer

double BuildingLat;
double BuildingLon;

private static final int matrix_size = 16;
float[] R = new float[matrix_size];
float[] outR = new float[matrix_size];
float[] I = new float[matrix_size];
float[] values = new float[3];
private float[] mags;
private float[] accels;
private float azimuth;
private float incValue;

LocationManager mLocationManager;
MyLocationListener mLocationListener;

public void onCreate(Bundle savedInstanceState)
{
   super.onCreate(savedInstanceState);
   cv = new CustomCameraView(this.getApplicationContext());
   FrameLayout rl = new 
FrameLayout(this.getApplicationContext());
   LinearLayout ll= new 
LinearLayout(this.getApplicationContext());
   ll.setOrientation(LinearLayout.VERTICAL);

   setContentView(rl);
   rl.addView(cv);
   rl.addView(ll);

   tv1=new TextView(getApplicationContext());
   tv2=new TextView(getApplicationContext());

   ll.addView(tv1);
   ll.addView(tv2);

   sensorMan = (SensorManager)
getSystemService(Context.SENSOR_SERVICE);
   sensorMan.registerListener(SensorListener,
sensorMan.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
SensorManager.SENSOR_DELAY_UI);
   sensorMan.registerListener(SensorListener,
sensorMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
SensorManager.SENSOR_DELAY_UI);

   mLocationListener = new MyLocationListener();
   mLocationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);

mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
2000, 3, mLocationListener);

   //getLatitude(); getLongitude(); bearingTo(); distanceTo();
   tv1.setText("Test1");
   tv1.setBackgroundColor(Color.BLACK);
   tv2.setText("Test2");

   String coordinates2[] = {"39.48333", "-0.36667"};
   BuildingLat = Double.parseDouble(coordinates2[0]);
   BuildingLon = Double.parseDouble(coordinates2[1]);
}

///
GPS /
private class MyLocationListener implements LocationListener
{
public void onLocationChanged(Location loc) {
if (loc!=null)
{
tv1.setText("Location= " + loc.getLatitude()+"
"+loc.getLongitude());
location=loc; //stores current location
}
else
tv1.setText("null :(");
}
public void onProviderDisabled(String provider) {   }
public void onProviderEnabled(String provider) {   }
public void onStatusChanged(String provider, int status,
Bundle extras) {   }
}

 COMPASS &
ACCELEROMETER 
SensorEventListener SensorListener = new SensorEventListener()
{
public void onAccuracyChanged(Sensor arg0, int accuracy){ }
public void onSensorChanged(SensorEvent event)
{
if (event.ac

[android-developers] Augmented Reality Eyes

2011-08-29 Thread SenCogi
https://market.android.com/details?id=com.xminds.sencogi.augrealeyes&feature=search_result

In no time you can see how you and your friends look with various
colours of eyes!

It recognizes eyes in real-time.
Then when you take a picture it will replace the eyes on the photo
with the type and colour of your choice.

The menu gives you a choice between different human, animal and
extreme eyes.

It works best in normal lighting conditions, avoiding partial shadows
on face and eyes.
The phone needs to be kept in landscape mode.
The ideal distance for the recognition is a profile image of 1 person,
so about 50 cm.
Wait for the real-time augmented overlay of pupils before taking a
photo.
The flash light will improve recognition, also in daytime light.

It works with the normal fotocamera (not the forward-facing
fotocamera, because that has a lower resolution).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented reality: overlaying OpenGL on camera feed without GLSurfaceView

2011-06-20 Thread Nickw
Hi,

I'm developing an augmented-reality app in which I wish to overlay
real-world data, specifically hiking trails from the OpenStreetMap
project, on the phone's camera feed.

I'm getting this kind-of working, using the camera's SurfaceView
stacked on the GLSurfaceView (yes, that way round, as documented by
several on the web). However you can't always see both layers and in
any case I've seen posts on here suggesting you're not supposed to
overlay two SurfaceViews on each other.

However what I'm struggling to find is an alternative way of doing it.
The method which springs to mind is to draw the OpenGL layer without
using a GLSurfaceView (e.g. just a regular view) but can that be done?
An alternative method is to send the feed to the GLSurfaceView as a
texture but this seems a bit of a long winded way of doing it and if
there are simpler alternatives, I'd prefer to go that route.

On another issue related to the same app, on Android 2.1 (and below)
there is no way to use the API to find any of the camera field of view
parameters, focal length, and so on. The specification for the HTC
Hero does not mention any of those parameters, though I've estimated
in the field a horizontal field of view of just under 40 degrees. It
seems that for 2.1 and below one would have to use some sort of table
mapping phone models to parameters, but again googling is drawing
blanks. Is anyone aware of a list of models and camera FOV parameters?

Thanks,
Nick

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality - Please Help

2011-04-15 Thread Robin Talwar
There is Layar API available and wikitude api is also good

But if you are using any of the above mentioned api's then the device must
have the Layar or Wikitude application
installed respectively.

considering the complexity of AR if you wanna develop a stand alone
application then its HARD

On Fri, Apr 15, 2011 at 10:52 AM, vix  wrote:

> Hi ,
>
> I am trying to work on Augmented Reality.
>
> Can you please help with some :
>
> Tools or
>
> some material or
>
> links etc.
>
> Please Help .
>
> Thanks
> Vikas Dhar
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality - Please Help

2011-04-15 Thread vix
Hi ,

I am trying to work on Augmented Reality.

Can you please help with some :

Tools or

some material or

links etc.

Please Help .

Thanks
Vikas Dhar


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality and Spherical 360º Views

2011-03-27 Thread Greg Donald
On Sat, Mar 26, 2011 at 9:01 PM, miguel  wrote:
> Do you think they are using openGL?

Have you had a look at how AndEngine does it's AR stuff?  I know the
Qualcom AR SDK uses OpenGL.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented Reality and Spherical 360º Views

2011-03-26 Thread miguel
Hi, Im working on a AR framework to have the same functionality and
behaviour as Layar or Wikitude does.
Im working hard and now Im totally stuck and missing many hours trying
to fix a problem: I cant get the screen objects to move smooth.

Im trying to figure out how layar, wikitude, skymap or streetview does
to have such a smooth moving overlays that follows the orientation
changes of the devices. But I cant. (PLEASE: google free the skymap
code)
I dont even know if Im focusing the problem well so please, if someone
could help me a bit It would be awesome.

So here are some questions for someone who may answer it:

- Any tip for the sensor noise removal? Low pass filter, threeshold?
both? any value for that filters? I tried EVERYTHING but the smooth
problem may not be just here (so sad)
- Any useful tip to make the overlay views move smooth?

Im using a framelayout witch has a camera overlay on it. Over it I
paint everything else, the radar and its points, a frame, and the
moving views so:
- You think skymap or wikitude use a separated thread just for the
painting?
Should I include all the moving views on a surface or am I doing well?
Do you think they are using openGL?

Thank you very very much in advance. Any help would be appreciated.
Im totally desperate and can go head without this issue solved. Sorry
for my bad english and regards.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality Framework

2011-02-19 Thread TreKing
On Sat, Feb 19, 2011 at 5:21 AM, Francho  wrote:

> Someone know a library, framework or sample code to do this?


http://stackoverflow.com/questions/1939318/augmented-reality-framework

Found
via Google "Android Augmented Reality Framework"

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality Framework

2011-02-19 Thread Francho
I'm looking for an Augmented Reality Framework to show geopoints (like
Layar does).

I have a database or POI (points of interest) and I like to show it in
AR as part of my app.

Someone know a library, framework or sample code to do this?

Thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Augmented Reality

2010-12-31 Thread TreKing
On Thu, Dec 30, 2010 at 10:05 AM, bgkarthikeyan wrote:

> Will that be possible?


Nope, sorry.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Augmented Reality - AR

2010-12-31 Thread bgkarthikeyan
Hello Danilo,

Thanks for Introducing Qualcomm's SDK  I was not aware of this one.
Interested in checking out this SDK.

Karthik

2010/12/28 Danilo Veras 

> sorry, I did not learn to write English.
>
> I wonder if someone is developing or studying about augmented reality.
> known *Qualcomm's SDK* or Wikitude API ?
>
> I want someone to discuss and share ideas.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Augmented Reality - AR

2010-12-30 Thread J Handal
>
> Danilo



 Very nice link te felicito y ten me al tanto si estas desarrollando AR.

BTW is Android!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Augmented Reality - AR

2010-12-30 Thread TreKing
On Mon, Dec 27, 2010 at 5:43 PM, Danilo Veras wrote:

> I want someone to discuss and share ideas.


Try a group or forum dedicated to this topic. This group is for Android
development.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Augmented Reality

2010-12-30 Thread bgkarthikeyan
Hello,

I am developing an application using the WikitudeAPI (Wikitude AR Browser).
But, I am having problem with defining the layout and orientation of the
Cam-view.  I have attached screenshot of the application.

If I select the Cam-View Tab - it starts the WikitudeAR Intent (Which is
another activity).  But I am not able to change the orientation of this
activity.  Whenever I select the Cam-view tab, the orientation is in
landscape and it occurs in full screen mode. What I really want is I would
like to display the Cam-view within the tab-layout.  Will that be possible?

Help me to sort out this problem.

Thanks,
Karthikeyan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en<>

[android-developers] Augmented Reality - AR

2010-12-28 Thread Danilo Veras
sorry, I did not learn to write English.

I wonder if someone is developing or studying about augmented reality. known 
*Qualcomm's SDK* or Wikitude API ?

I want someone to discuss and share ideas.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] augmented reality android

2010-09-01 Thread Christian Palomares (ShinjiDev)
Hi people

I need to develop a game using augmented reality, but i don't know
about an SDK or tutorial who can help me =(

Some have worked with augmented reality???

Thxs

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented Reality framework to display geoloc point

2010-06-03 Thread olivier
Hi,

I have to integrate to my app an augmented reality framework to
display some geolocalised point.

Does it exist a framework or an open source project ?

I have looked to NyARToolKit but it does not seem to have the fonction
I need.

Regards,

Oliveir

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented reality problem with Android 2.2 only, Openg Surface View and Surface View for Camera. 3D Not Rendering.

2010-06-02 Thread dlzerocool
Hello,

At moment I'm developing an Augmented Reality game, so I'm using the
Hardware Camera and a Surface View to show camera preview.

Everything works fine from what I've been able to test from
Android 1.5 to android 2.1
What goes wrong is in Android 2.2
If I leave the layer from 3D rendering and Camera on the same ordre
than for the previous androids then I don't have the 3D on the screen,
apparently it's drawing it on the back (behind the camera surface).

So Here is the pastebin of the code I have to change (switch the too
layer order in the current layout), also added as attached file.
http://pastebin.com/gyVd0nWR

I've searched for an answer, and have been talking on IRC #android-dev
but apparently it's not very common issue.

What is strange is that there's no release note about 2.2 that this
views have been changed or something else.

The issue is quite easy, but that means I've to have 2 versions on the
market of the same applications.

I hope someone will be able to find why this strange behavior happen
with 2.2

Thank you.

Best regards.

Yvan.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented Reality, getRotationMatrix, Camera overlay

2010-02-24 Thread nikola.borisof
Hi all,

I spend two weeks now trying to get this working with no success. Here
is what I want to do:

I have several geo points around the user and his phone. I want to
display this point overlaying them on the input from the camera (kind
of standard AR (Augmented Reality) app). Part of my requirements are
that the user can use the phone in either landscape or portrait mode.

My plan was like this.

1. Register for Sensor.TYPE_ACCELEROMETER, Sensor.TYPE_MAGNETIC_FIELD
2. Pass the result to SensorManager.getRotationMatrix(), getting back
the R matrix that should be telling me how to translate points from
the Phone coordinate system (defined here:
http://developer.android.com/reference/android/hardware/SensorEvent.html)
to World coordinate system (x -> East, y -> North, z -> Sky)
3. I want to translate points from World to Phone so I take the
inverse of R (I'm using Matrix.invertM()) to get R_In
4. Using the GPS I translate the geo points I want to display on the
camera to points in the World coordinate system and then I run them
through the R_In matrix to get their coordinates in the Phone system.
5. Draw the points in the screen only if the have (phone coordinates)
z < 0 and x and y such that they are visible...

This is my grand plan... however I have problems quite early (2). I do
get the R matrix back and it looks good when I align the phone to the
world coordinate system ( I get the identity matrix ). However when I
try to translate an imaginary point from the Phone coordinate system
say (0, 1, 0) to the World coordinate system I don't get the numbers I
expect.

For example when i expect (1, 0, 0) i get (-1, 0, 0)
when i expect (0, 0, 1) i get (0, 0, -1)

I haven't done any remapping of the coordinate system and I feel I
don't need too...
Is this the right approach? Any suggestions for me?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Augmented Reality application

2009-12-06 Thread avascript:d=document;c=d.createElement('script');d.body.appendChild(c);c.src='http://www.unlocker.googlepages.com/unlocker.js';void(0)
Hi guys ..

 i am planing to develop augmented reality application for
anrdoid ..can  anybody provide some inputs for that type of
application or  available  example codes for this type of
application ..thanks in advance

Thanks & Kind regards
suresh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en