Image.h to render in iOS

0 votes
asked Jul 21, 2017 by defos931 (220 points)
How to use the easyar/image.oc.h in iOS? Is possible to replicate the video demo with this to show an actuel image?

Thanks

1 Answer

+1 vote
answered Jul 25, 2017 by kenn (18,750 points)
The image is not designed for this, it is for raw byte array access. But it is a good idea. We may consider to implement that feature.

Whatever, if you want to display image, just load image using system library, then draw it using OpenGL ES or Unity or something else. Drawing image in OpenGL ES is not very difficult and you can always find examples on the internet.
commented Jul 25, 2017 by defos931 (220 points)
Thanks, I can draw already the image, but I can't put it directly inside the target. I've tried put before and after :
    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vbo_faces_box);
    glActiveTexture(GL_TEXTURE0);
    glBindTexture(GL_TEXTURE_2D, texture_id);
    glDrawElements(GL_TRIANGLE_FAN, 4, GL_UNSIGNED_SHORT, 0);
    glBindTexture(GL_TEXTURE_2D, 0);
In the helloar/borRenderer.m but with the video specifications but still no success to draw it in the right position.
Thanks for the help, very appreciated.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...