Log in or register to post comments

HTML page in AR

February 1, 2013 - 7:01am #1

Hello everyone :)

I would like to know if it is possible to show a html page on an image target. Think about video playback sample project instead of having a video on the image target I want to put a html page.

Is it possible to put video from Youtube instead of having static one ?

best regrads.

Bayram. 

HTML page in AR

July 28, 2014 - 5:45am #7

I want to display my html page in imagetarget sample. I am not getting any help....Let me know if any body done html tracking using openGL rendering. How can I do this? 

HTML page in AR

February 3, 2013 - 2:40pm #6

You're welcome. Yeah, learning a bit of OpenGL is definitely a good idea as a start; 

the OpenGL code in our samples is relatively simple, but knowing at least the basics of OpenGL will make the sample code much easier to read and understand; if later on you have specific questions or doubts on certain parts of the sample code, feel free to come back here...

 

HTML page in AR

February 3, 2013 - 2:35pm #5

I didn't work with open GL before I think I will start some learning.

Thank you for the information thought it's very helpful.

Best regrads.

HTML page in AR

February 3, 2013 - 2:23pm #4

Hi, the rendering of any image (be it from a video or from a static image) on top of an image target is always done through a texture, using OpenGL;

the code is not hidden inside the Vuforia library, it is fully exposed in our samples;

for instance, have a look at the renderFrame function in the ImageTargets.cpp of the Image Targets sample, and you will find some useful geenral purpose code for rendering augmentations in OpenGL;

then if you look at the VideoPlayback sample you will find once again some OpenGL code very similar to the one used in Image Targets sample, but more focussed on the rendering of a textured rectangle (instead of a Teapot 3D model); you will also find that the texture are filled and updated with content coming from a video; the code handling the video playback is also completely exposed in the sample and is not encapsulated within the QCAR library.

So, it is really a matter of digging into our samples and understanding the code (same for the Cloud Reco sample);

one important thing is that everything related to rendering is done via OpenGL ES (i.e. Vuforia does not offer a specific 3D engine, but simply relies on OpenGL and explains how to best use it through the sample code);   so, obviously you are required to master OpenGL a bi, in ordert to handle everything related to the rendering part.

I hope this helps.

 

HTML page in AR

February 3, 2013 - 1:43pm #3

Hello,

Thanks for your answer.

I see the idea but I'm not sure how to do it. Isn't the drawing of a video on an image target done in the native library ? And this code is not accessible ?

Would you please provide some examples ?

Best regards. 

HTML page in AR

February 1, 2013 - 10:55am #2

Hi, rendering an HTML page as a texture is possible; in Android, the basic idea is to render the content of a View (which can be any Android View, including one showing HTML content) into a Bitmap, and then trasnferring the Bitmap content (pixels) into an OpenGL texture;

such technique is demonstrated in detail in the Cloud Recognition sample, so I would invite you to take a look at that sample; note that the sample is slightly more complex than ImageTargets or other basic ones, but it is worth spending some time on it.

Concerning your question about using videos from Youtube, the same topic is discussed here (and also in other threads, if you search our Forum):

https://developer.vuforia.com/forum/issues-and-bugs/it-possible-stream-video-url-video-playback-example

In general, it is possible to play video-on-textures by streaming it from the net through a URL, but for Youtube the situation is a bit different (read thread above)

I hope this helps.

 

 

Log in or register to post comments