Log in or register to post comments

How to chnage Image target in existing sample

May 6, 2013 - 4:21am #1

Hi,

I am trying to change the image target from the ImageTarget-2-0-7 sample app provided. So i used the target manager to create a new target and downloaded the eclipse XML and DAT file (for example mytarget.xml and mytarget.dat) . Now I replaced all the reference for dataSetStonesAndChips and StonesAndChips.xml with mytarget and mytarget.xml . but when i build the app and run it on my android device, it doesnt recognize the image taget and doesnt show the tea pot, Also i need to get the intent or event when the image target has been recognized, Any help would be appreciated

How to chnage Image target in existing sample

May 13, 2013 - 10:31pm #15

Yes, removing the sample and re-importing it might be a good idea if nothing else works..

 

How to chnage Image target in existing sample

May 13, 2013 - 10:08pm #14

i thought , first you just delete app from your eclips,then u run ndk-build command after ndk build sucess, u import ur sample app from vouforia folder

How to chnage Image target in existing sample

May 13, 2013 - 6:05am #13

i tried using that

also i re downloaded the files and re compiled every thing

then also its coming the same

How to chnage Image target in existing sample

May 13, 2013 - 4:54am #12

Try removing (manually) the following directories:

- libs

- obj

- bin

and then rebuild with ndk-build

 

How to chnage Image target in existing sample

May 13, 2013 - 4:52am #11

I am building using the command prompt using "ndk-build" not cygin

i tried with cygin but i got this

 

$user_name /cygdrive/c/Development/Android/vuforia-sdk-android-2-0-31/samples/VideoPlayback-2-0-7
$ ndk-build
obj/local/armeabi-v7a/objs/VideoPlayback/SampleMath.o.d:1: *** multiple target patterns.  Stop.

How to chnage Image target in existing sample

May 12, 2013 - 10:54pm #10

hi before ur going to run  the app,you should run ndk-build command in cygwin terminal,then only ur changes will effect in ur code

How to chnage Image target in existing sample

May 12, 2013 - 10:46pm #9

Ya Image target sample is what i am talking about

How to chnage Image target in existing sample

May 6, 2013 - 11:24pm #8

Hi, does this happens also with other samples ?

Have you tried the Image Target sample for instance ?

 

How to chnage Image target in existing sample

May 6, 2013 - 9:59pm #7

No I am not telling the target is rotated what i mean is that the entire camera seems to be upside down, Its difficult for me to explain (I am holding the camera properly but its still giving that view) I also tried on the unity 4d using the sample its view also is inverted (means entire view)

But my first problem is of changing the image target

How to chnage Image target in existing sample

May 6, 2013 - 5:08am #6

Hi, when you say "the view is inverted by 180 degrees", do you mean it is flipped vertically, or do you mean it is rotated by 180 ?

if it is rotated, you are probably looking at the target top down (i.e. you would simply need to rotate your printed target... this sometimes happens to me too ;-) )

if it is flipped, then it might be that you are not uing the texture coordinates transformation as shown in the VideoPlayback sample...

 

How to chnage Image target in existing sample

May 6, 2013 - 5:06am #5

<ImageTarget size="326.975464 400" name="GTA" />

This is the size of image. 

I did a Project -> Clean and cleaned the project

Now when i used the same image for the video play back, the image target works

Also i forgot to mention , then entire view is inverted by 180 degrees? why is that so ?

both the image target and video playback both are inverted (The entire screen is inverted by 180)

How to chnage Image target in existing sample

May 6, 2013 - 4:53am #4

Hi, a couple of questions more:

  • what is the size of your new targets (see the size parameter in the XML) ?
  • have you refreshed the Eclipse project after building with ndk-build ?

 

How to chnage Image target in existing sample

May 6, 2013 - 4:32am #3

yes i copied both the files, and the rating is 5, I am using the GTA game poster for testing purposes

How to chnage Image target in existing sample

May 6, 2013 - 4:26am #2

Hi, have you copied the XML and DAT files into the "assets" folder of your sample project ?

Also, what is the star-rating of your target ?

 

Log in or register to post comments