By josiastech
on Wed, 07/18/2012 - 14:45
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.
Using 2d Images
Which SDK are you using?
The following instructions are for OpenGL 2 and Android, but can easily be adapted for iOS..
Using 2d Images
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?
Using 2d Images
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.
Using 2d Images
Using 2d Images
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.
Using 2d Images
yes to show 2d plane image.i try to follow david instruction..but the tepot in plane not show
Using 2d Images
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.
Using 2d Images
so this is only to show plane?not a teapot?
Using 2d Images
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
Using 2d Images
hello
i work image target sample. how can i change teapot to 2d image(any image). i develop for ios. thank you
Using 2d Images
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
Using 2d Images
i use this code..but error in line 404 amp is not declare and error expected ; before ) refers to &projectionmatrix.data
Using 2d Images
Please can you post up the XCode log to provide more information.
thanks
N