Log in or register to post comments

Is it possible to render 2D animation ?

March 6, 2012 - 6:49am #1

Hi,
I want to render 2D animation when detecting the target .
the animation must completely cover the image target ,when you move the camera the animation will still cover the image.
How to do this with openGL ? or how to do this without openGL??
please help me

Re: Is it possible to render 2D animation ?

March 13, 2012 - 7:20am #6

Did you add the include at the top of the file?

#include

- Kim

Re: Is it possible to render 2D animation ?

March 12, 2012 - 7:59pm #5

I am getting an error about ImageTarget not being a member of QCAR. Am I missing something?

I was following the instructions in this post http://ar.qualcomm.at/node/2000357

Re: Is it possible to render 2D animation ?

March 12, 2012 - 1:54pm #4

No, it isn't possible to directly render a html or fla animation using OpenGL (that I know of). You'll have to break up the animation into a series of textures and change the drawn texture on a timer. This is outside of the scope of what we can help with, but you should be able to find some resources online if you research 2D animation with OpenGL.

Sprite sheets are just a way of combining multiple frames into a single texture, I suggest researching the term if you're interested.

- Kim

Re: Is it possible to render 2D animation ?

March 12, 2012 - 4:55am #3

Kim, thanks for your reply,but I don't really understand what you mean "look into using sprite sheets",what is it?
I succes to cover an image on the target,
and I have a strange problem....
I want to put animation on target ,but the animation is a .fla file or something else (such as .html file...)
How to reander these type of file with opemGL? Is it possible?
or it's not related to openGL but related to android?
I am really confused: (

Re: Is it possible to render 2D animation ?

March 6, 2012 - 7:45pm #2

This post will help with rendering a single image on top of the image target:

http://ar.qualcomm.at/node/2000357

You could load a series of images and flipbook them to create the animation. Or look into using sprite sheets to improve performance. Note you will have to write this code yourself.

- Kim

Log in or register to post comments