Log in or register to post comments

I want to display PNG image on camera.

May 20, 2011 - 6:48am #1

Hi Mr.Kim
Your advice did help solve my problem. thank you very much!

The QCAR is very good.

I want to display PNG image on camera.
┌───────────────┬─────┐

│ │ │

│ │ │

│ │ │

│ │ │

└───────────────┴─────┘

Whole area is screen. Right rect is image and left is camera. Do you understand? The image is on the camera.
I want to do it.
I used canvas but the image didn't display.
If my methood was wrong.
Please give me some advice.

Re: I want to display PNG image on camera.

May 20, 2011 - 9:23am #2

The most efficient way to do this would be to use OpenGL. Add your image as another texture, and render a plane to the screen using an orthographic projection. Do this after rendering all your other 3D content, e.g. in the renderFrame method in ImageTargets.cpp.

You can also overlay an Android view over the camera view, if you prefer, although this comes with a bit of a performance hit. Try adding an ImageView using addContentView, right after the addContentView(mGlView...) call in ImageTargets.java.

http://developer.android.com/reference/android/widget/ImageView.html

- Kim

Log in or register to post comments