Log in or register to post comments

render custom texture

January 21, 2014 - 3:02am #1
I have followed this in order to add a texture to my model.
 
  • How to add and render custom textures to your 3D model:

https://developer.vuforia.com/forum/faq/android-how-do-i-add-textures-my-model

 

The problem is the following:

I dowload the texture from a server (the bitmap) on a Asyntask in .java file in order to get the texture from the server.

On the onPostExecute  method i called the native method in order to add the texture.

I get the following error: 

call to OpenGL ES API with no current context (logged once per thread)

 

Thanks

 

render custom texture

January 21, 2014 - 3:41am #2

based on this:

http://foretribe.blogspot.com.es/2013/05/androidcall-to-opengl-es-api-with-no.html

 

i call the native method like this

// Our OpenGL view:
private QCARSampleGLView mGlView;


mGlView.queueEvent(new Runnable() { 
@Override
public void run() {
addTexture(....................);

}
}); 

 

That seems to solve the problem

 
Log in or register to post comments