"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Using 2d Images

Hi!

How can i import images in 2d, images like png o jpeg, i'm working on Image Target Sample and i would like to change de 3d image to 2d images but i didn't know how.

(Sorry for my english)

Thanks for your help.

DavidBeard

Wed, 07/18/2012 - 18:05

Which SDK are you using?

The following instructions are for OpenGL 2 and Android, but can easily be adapted for iOS..

josiastech

Wed, 07/18/2012 - 20:56

Hi, thanks for your reply, i'm using the Android SDK i made de change on loadTextures() method and ImageTargets.cpp, im working on ImageTarget sample, what im trying to do is to display just a normal picture, without drawing any object, is this possible? can i show only a picture?

DavidBeard

Thu, 07/19/2012 - 01:18

Yes but the picture will need to be rendered onto a plane that's defined in 3D space. You can use the instructions I'd posted to define the plane and render the texture to it.

try what?

teapot ? or plan 2D image?

If you are trying to show a 2D image check the dimensions of the texture, they need to be a power of two.

ryo020288

Wed, 07/25/2012 - 06:07

yes to show 2d plane image.i try to follow david instruction..but the tepot in plane not show

This code is to replace the teapot with the plane - not to show both.

I posted up similar code here on iOS and the devs there were able to display a plane, which is what they wanted.

yes.

the ImageTargets app, on its own, out of the box, shows a teapot when the device is pointed at the chips or stones images

ffatihkose

Fri, 10/12/2012 - 08:48

hello

i work image target sample. how can i change teapot to 2d image(any image). i develop for ios. thank you

Please see my answer to your question in the iOS forums.

Please try to avoid double-posting - we will get to your questions as quickly as possible.

N

ryo020288

Wed, 10/24/2012 - 06:59

i use this code..but error in line 404 amp is not declare and error expected ; before ) refers to &projectionmatrix.data

Please can you post up the XCode log to provide more information.

thanks

N