Log in or register to post comments

Can We Retrieve from Database???

March 30, 2012 - 7:35am #1


Suppose say i am using many trackers (say 100 or more)...Now if all the textures for the trackers are loaded in the app itself than it would occupy much space...so one alternate is to use database..

Whether it is possible to store the texture .png files in the database and retrieve it when the texture is viewed??
I am not sure whether it is feasible...

Pls guide...

Regards Kevin

No problem gun0051, that

December 18, 2012 - 12:45am #6

No problem gun0051,

that should be perfectly possible on iOS too; however I would invite you to create a new Thread and post this question on the iOS section of this Forum, as here it is Android specific.

You will get prompt reply there.



How about on iOS

December 17, 2012 - 8:55pm #5

So sorry AlessadroB

I forgot to tell you that my project is on iOS not Andriod. Do you know how to solve this problem on iOS? I use FrameMarker so that the data for FrameMarker is already store in Apps. When the FrameMarker is detected, I would like to render the 3D Model(.h file) from server.  Are there anyway to solve this problem without using The Unity and How ? 

Thank you again for helping :)

Hi, it should be perfectly

December 17, 2012 - 6:34am #4


it should be perfectly possible to retrieve images from a database and generate a texture out of it;

for the DB part (how to store/retrieve images to/from a database), that's pretty much an Android specific question (not Vuforia related), so you may want to check the Android developer guide for it; in general in Android you can access DB using Content Providers for SQL Lite (but there may be other options as well):



This forum thread is addressing this topic, as it provides code specifically for storing/retrieving Botmaps to/from a DB:



Once you have handled the Bitmaps loading from a DB, you will need to generate your OpenGL on-the-fly  textures, using pretty much the same code that you can find in the initRendering function in ImageTargets.cpp; however you will need to put that code (glGenTextures etc..) in your _renderFrame() function, so that you can do the texture creation on the fly when needed (i.e. whenever there is a new Bitmap available)





Render texture from Database at runtime

December 16, 2012 - 8:15pm #3

Could you give me some code or sample about loading texture from database because my project looks like your project. My project is about rendering 3D model from database when the frameMarker is detected. Thank you .

Re: Can We Retrieve from Database???

March 30, 2012 - 8:41am #2

I'm not sure if this is the best way (or even a good way) but I have done something similar by loading only a small (2^2, 2^3) transparent texture then making calls through to Java to load a texture when a particular trackable is in view.

The transparent texture makes sure there are no crashes in JNI involving missing textures while the other texture is trying to load.


Log in or register to post comments