Log in or register to post comments

Custom ImageTargetTextures

March 5, 2015 - 7:53am #1

Hello, how can i add a custom ImageTargetTexture through Unity? I tried to put my custom image in the StonesAndChips folder by giving it the same name, format and resolution of chips_scaled and replacing the original. The problem is that the app won't recognize the custom image unless i revert to the stock texture.

What am i missing? 

Sorry if this is the wrong section.

Thanks!

 

P.S. Everything is correctly selected under the Image Target Behaviour script.

Custom ImageTargetTextures

March 5, 2015 - 9:04am #3

Oh i forgot to add, i edited the xml file by adding another line with my custom image name. Should i replace the stock one instead? Also, how can i create the database file? 

Thanks for the reply!

 

Sorry i didn't see the link to the Target Manager! I'll try and create the new database from there!

Custom ImageTargetTextures

March 5, 2015 - 8:15am #2

The target texture that you see in Unity are there to assist you with authoring your scene. You can find them in the Editor/QCAR folder. But changing these textures won't have any effect on which images your app can recognize.

To enable an image to be recognized, you need to add it to your database in the Target Manager and then import that database to your app. It's the *dat and *xml files from that database that provide the data needed to recognize an image.

Log in or register to post comments