Log in or register to post comments

Augmented reality for beginners

November 23, 2010 - 3:48am #115

Hi,this is kesava, i had a question that by using qualcomm we can develop any type of application like image recognization and gps based?

Re: Augmented reality for beginners

November 23, 2010 - 5:59am #114

The QCAR SDK only supports image-based tracking. That means you need a known image to point the device at and track off of. It does not use device sensors or GPS to do location-based tracking.

- Kim

Re: Augmented reality for beginners

November 24, 2010 - 12:20am #113

It is ok, is it possible to do virtual dressing room application, is qualcomm having all the libraries required to do that application

Re: Augmented reality for beginners

November 24, 2010 - 5:29am #112

I'm not exactly sure what you're asking, but the SDK does not have any face or body tracking built in. Please see the Trackables section of the developer guide to get a better idea of what sort of surfaces the SDK can track:

https://ar.qualcomm.com/qdevnet/developer_guide

- Kim

Re: Augmented reality for beginners

November 24, 2010 - 7:52pm #111

Thank u siva for ur reply

Re: Augmented reality for beginners

November 25, 2010 - 12:11am #110

do u mean Qualcomm ar sdk is only for marker based ar applications? it will not supports for markerless based ar applications

Re: Augmented reality for beginners

November 25, 2010 - 7:20am #109

That's correct, the SDK only supports markers and image targets, along with 3D structures created out of multiple image targets.

- Kim

Re: Augmented reality for beginners

November 30, 2010 - 3:09am #108

Hello,i had some picture with me, consider this picture as marker, In that picture i had one person and one chain, so that i need to detect that chain itself present in the live video how can i done it. please provide any libraries that supports this type of recognization so that it will help me . please provide the information asap.

Re: Augmented reality for beginners

November 30, 2010 - 6:39am #107

Sorry, the QCAR SDK does not do image recognition; that is, it cannot pull components out of your image for you. If the picture is known ahead of time, couldn't you just map out the coordinates of the chain yourself?

It would help us if we knew what you were trying to accomplish. Do you simply want to draw content on top of the chain?

- Kim

Re: Augmented reality for beginners

November 30, 2010 - 10:47am #106

ok, which language should i use to develop ar applications, can u help me please.

Re: Augmented reality for beginners

November 30, 2010 - 10:50am #105

i mean to say that i need to use qualcomm ar sdk, so that i will use the android mobile phone , for tracking the image and placing virtual things i need to use some language, can u tell me which language should i use for the qualcomm ar sdk, plz let me know

Re: Augmented reality for beginners

November 30, 2010 - 10:53am #104

You can write most of your application in C/C++. You may also find it helpful to write a little Java, if you want to leverage the Android SDK in any way (for touch handling, sound, etc.) You use the JNI (Java Native Interface) to communicate between the two. Finally, you use OpenGL ES (1.1 or 2.0) for rendering 3D graphics.

Please see the sample applications for more details.

- Kim

Re: Augmented reality for beginners

November 30, 2010 - 11:01am #103

siva, i am unable to follow u, can u provide a simple code how can we handle the live-cam in c++ language?

Re: Augmented reality for beginners

November 30, 2010 - 11:06am #102

I had android mobile phone and i install qualcomm ar sdk in my pc, after that how can i start my application developing? plz help me

Re: Augmented reality for beginners

November 30, 2010 - 11:40am #101

Please follow the Get Started guide on the main page:

https://ar.qualcomm.com/qdevnet/

Be sure to expand each section, and follow the directions carefully. "Step 3: Compile and Run a QCAR Sample App" will show you how to build the ImageTargets sample application and run it on your device.

Then, open the ImageTargets.cpp file, located in the samples/ImageTargets/jni directory. This is where you can add your code.

- Kim

Re: Augmented reality for beginners

December 6, 2010 - 1:50am #100

Hello siva, i need to install qcar sdk in the andorid mobile phone or in the personal computer? to develop ar applications

Re: Augmented reality for beginners

December 6, 2010 - 5:56am #99

Applications built with the QCAR SDK only run on Android devices. Please see the Device Compatibility sticky for a list of supported devices:

http://ar.qualcomm.at/node/2000017

- Kim

Re: Augmented reality for beginners

December 6, 2010 - 8:38am #98

I am asking that, to develop Ar applications we need to install qcar sdk in the mobile phone or personal computer ? plz let me know

Re: Augmented reality for beginners

December 6, 2010 - 8:45am #97

You must install the QCAR SDK on your personal computer, it can be downloaded from here:

https://ar.qualcomm.com/qdevnet/

Please follow the instructions in the Get Started guide, on the left-hand side of that page. You will be building applications in Eclipse and deploying them to your Android device.

- Kim

Re: Augmented reality for beginners

December 6, 2010 - 8:37pm #96

Thanks kim, mobile phone attached to the usb is used for taking the live video is it? reply me

Re: Augmented reality for beginners

December 6, 2010 - 9:19pm #95

The entire AR application runs on the mobile phone. It renders live video in the background (from the device's camera), performs tracking, and renders your content on the targets. The entire AR experience takes place on the device.

- Kim

Re: Augmented reality for beginners

December 6, 2010 - 9:38pm #94

But kim, the sdk is in our pc, how can we track the live video from the personal computer without having camera attached to it.

Re: Augmented reality for beginners

December 7, 2010 - 2:49am #93

The SDK is for writing the programs which are then installed onto the phone. The SDK itself does not go on the phone.
The whole AR experience is on the phone, not the PC.

Rob.

Re: Augmented reality for beginners

December 7, 2010 - 9:52am #92

While writing the program in ecllipse with c++ language, we will track the live video using your phone attached to the usb is it? And how can we see the live video in the personal computer? please let me know and it will be help me to do the applications

Re: Augmented reality for beginners

December 7, 2010 - 9:57am #91

how can we create custom markers of my own desire and how that code will be passed to the program to track that marker in the live video? plz reply to my questions it will help me

Re: Augmented reality for beginners

December 7, 2010 - 10:01am #90

Please understand, the QCAR SDK is for writing MOBILE applications. You cannot use it to write desktop applications. You cannot test the applications on your desktop either, you can only test on the mobile device. The entire application experience is handheld.

You write your code on your personal computer, and cross-compile for the Android OS, using Eclipse and tools provided by Google. The end result is an application that only runs on the Android OS, on an Android device.

- Kim

Re: Augmented reality for beginners

December 7, 2010 - 10:06am #89

https://ar.qualcomm.com/qdevnet/developer_guide

You use the online My Trackables tool for uploading images to create targets:

https://ar.qualcomm.com/qdevnet/projects

- Kim

Re: Augmented reality for beginners

December 7, 2010 - 10:08am #88

sorry kim, i am very new to this, so i had many questions to ask. please dont mind.

Re: Augmented reality for beginners

December 7, 2010 - 10:17am #87

wat is the use of cygwin, can u tell me

Re: Augmented reality for beginners

December 7, 2010 - 10:45am #86

I just ask that you read through the documentation once before asking questions, most of your answers are there :)

Cygwin is a unix-like environment for Windows, for running command-line tools. To build applications with the QCAR SDK, you must use the ndk-build command that comes with the Android NDK. This must be run from a command line, and in Windows you use Cygwin. In Mac or Linux you can use the basic command line tool that comes with the operating system.

- Kim

Re: Augmented reality for beginners

December 8, 2010 - 7:50pm #85

Hello, is qualcomm ar sdk will run on windows7 ?. plz reply me

Re: Augmented reality for beginners

December 8, 2010 - 8:55pm #84

Yes, the SDK works with Windows 7.

- Kim

Re: Augmented reality for beginners

December 8, 2010 - 11:16pm #83

I have a Image with me in A4 paper, i need to track that image in live video , is i need to downloand the Ar extension for unity3 ? for tracking the image which i had? plz relpy me

Re: Augmented reality for beginners

December 9, 2010 - 5:51am #82

That just depends on whether or not you want to use Unity. There are two pathways for using the QCAR SDK:

1) Download the qcar-sdk and follow the directions in the Get Started guide. With this method you write native code in C++, use ndk-build to build a native shared library, and use Eclipse to build an Android application including that shared library.

- or -

2) Download the QCAR extension for Unity 3. Import the package into your project. Now, instead of writing native code in C++, you use Unity's scripting language to write your application. That's typically in C# or JavaScript. You set Unity to build an Android application, and it does the rest of the work. With this approach you do not need Eclipse, and you do not need to build shared libraries using ndk-build.

The documentation for using the Unity extension is under the AR Extension for Unity 3 topic on the home page:

https://ar.qualcomm.com/qdevnet/

- Kim

Re: Augmented reality for beginners

December 9, 2010 - 4:32pm #81

By using qcar sdk, is it possible to do
1) custom markers tracking in the live video
2) placing virtual objects on the custom marker patterns in live video
3) for placing virtual objects in live video, we need opengl libraries, all these are included in qcar sdk ?

Re: Augmented reality for beginners

December 10, 2010 - 7:05am #80

1) Yes, you can track custom image targets. Use the My Trackables tool on this site to create your custom target.

2) Yes, you can place virtual objects on the target in the live video. This runs on your handheld Android device.

3) Yes, you do need OpenGL libraries for rendering 3D virtual content. These are included in the Android NDK.

I suggest trying one of the sample projects included with the SDK, it will give you a better understand of how all this works.

- Kim

Re: Augmented reality for beginners

December 13, 2010 - 3:15am #79

i need to create virtual objects such as googles with different colors, so that i need to place them on the human.
so my question is
1)how the googles are created using opengl libraries, can u have any example.

Re: Augmented reality for beginners

December 13, 2010 - 6:26am #78

Start with the ImageTargets sample project. There are two files of interest:

- samples/ImageTargets/jni/ImageTargets.cpp
- samples/Shared/jni/Teapot.h

ImageTargets.cpp contains all the OpenGL ES rendering code. Teapot.h contains the geometry to be rendered. You can replace the arrays in Teapot.h with your own model data.

Some users have had luck with the following script, for converting a .obj model to the format in the header file:

http://heikobehrens.net/2009/08/27/obj2opengl/

You should be able to save your model to a .obj file using any standard modeling tool.

- Kim

Re: Augmented reality for beginners

December 13, 2010 - 10:54pm #77

I need to place various virtual objects such as googles in my application, so

1) Is i need to download java native interface(JNI) to get above functionality?

Re: Augmented reality for beginners

December 14, 2010 - 6:33am #76

No, in fact the JNI isn't something separate that your download. It is simply the interface you use for communicating between Java and native code.

You can write all of your rendering code in native (C/C++) and bypass the need to communicate with Java. Simply make changes to the ImageTarget.cpp file to try it out.

- Kim

Re: Augmented reality for beginners

December 14, 2010 - 4:35pm #75

My question is
1) I need to place various virtual objects such as googles one by one, so that i
need to create forward and backward virtual buttons.
if forward button is clicked, the next virtual object should be displayed
if backward button is clicked, previous virtual object should be come

is it possible to write the code in c++ to get above functionality

Re: Augmented reality for beginners

December 14, 2010 - 4:59pm #74

Sure, that shouldn't be too difficult. Take a look at the VirtualButtons sample project, and VirtualButtons.cpp in particular. In that sample, when the buttons are tapped the model's texture is changed. For your application, you will also want to change the model that is drawn when the button is tapped. The basic code structure is similar though, that project should be a good starting point.

- Kim

Re: Augmented reality for beginners

December 14, 2010 - 9:21pm #73

Can i know which
1) image recognization technique is used to recognize the Image Target.
2)what was the technique used for knowing the position and orientation of the external point reference or Image Target.

Re: Augmented reality for beginners

December 14, 2010 - 10:01pm #72

The QCAR SDK uses Natural Feature Tracking to track image targets. You preprocess the image using our online Target Management System (https://ar.qualcomm.com/qdevnet/projects). Using this tool, you can see the set of features the tracker will be looking for. At runtime, the tracker compares the camera feed with this known set of features, and tries to find the target in the image. Once it locks on the target, the tracker can figure out where the target is in relation to the device. This is given to the developer as a Pose matrix, and can be used to place 3D content on the target.

- Kim

Re: Augmented reality for beginners

December 15, 2010 - 3:50pm #71

1)I am asking that i need to change the virtual content i.e googles from time to time. is it possible?
2)How can i store the virtual content of various no of googles?
3) I dont want to change the color of the virtual object but it should change the new virtual content wat i had stored

Re: Augmented reality for beginners

December 15, 2010 - 4:03pm #70

I should warn you that this stuff isn't easy. You really need to work through the sample applications and understand the code there before you can continue. You're going to need a basic understanding of OpenGL ES to render any 3D objects.

First, you will have to convert your model to a format that you can easily read in and feed to OpenGL. Look at the Teapot.h file included in the Shared sample project. This is one possible format for storing your model data.

Some users in the forum here have been using this script to convert a .obj model file to a header file like Teapot.h:

http://heikobehrens.net/2009/08/27/obj2opengl/

Once you have your model in header form, I suggest trying to replace the Teapot model in the VirtualButtons project. You may as well work with that project, since you eventually want virtual button support in your application. Once you get one custom model rendering correctly, we can talk about how to switch models on a button press.

- Kim

Re: Augmented reality for beginners

December 15, 2010 - 9:10pm #69

Ok, my question is
1) Is it possible to add my own virtual content, such as googles by using qcar sdk?
2)I can use htc desire? for developing the above application

Re: Augmented reality for beginners

December 16, 2010 - 1:49am #68

Yes and yes.
But it sounds as though you really don't know what you're doing.
You're going to need experience with Java, C++, JNI, Android and openGL ES to create your application.
This stuff is really not as easy as clicking and dragging things together.

Just take some time and go read the "Developer Guide" and the "Get Started" document.

Re: Augmented reality for beginners

December 16, 2010 - 9:36pm #67

Sorry robertrose, I am starter to do coding in augmented reality, i know c++ & java well. i dont have any experience with opengl but i can understand.

Re: Augmented reality for beginners

December 16, 2010 - 10:19pm #66

How can i open the Teapot.h file? i tried using with wordpad, it is not opened

Re: Augmented reality for beginners

December 17, 2010 - 1:46am #65

You should be able to open it using Notepad.

Log in or register to post comments