Log in or register to post comments

Banana solution

October 10, 2011 - 7:12am #1

Pls, can anybody upload his/her, solution with working banana model or any kind of model except of the teapot ? I am trying to replace teapot model, but I am not successfull for almost 3 weeks now. I have read this forum many times, but no progress. Really frustrating.

Re: Banana solution

October 13, 2011 - 3:26pm #5

You're sending the wrong matrix to the shader, you want to do this:

glUniformMatrix4fv(mvpMatrixHandle, 1, GL_FALSE, (GLfloat*)&modelViewProjectionScaled.data[0]);

Also be sure to activate the right texture stage before binding your texture:

glBindTexture(GL_TEXTURE_2D, thisTexture->mTextureID);

Finally, you've removed some of the textures in Java but still have the code for swapping textures on the button press. This can cause a crash. Here's a quick way to prevent that:

//assert(textureIndex < textureCount);
const Texture* const thisTexture = textures[0];

- Kim

Re: Banana solution

October 12, 2011 - 5:13am #4

Guys thank you for your kind replies. However, nothing has changed. I am starting to be pretty paranoid. I am sending you my whole source code. If you have any spare time, pls look at it.
Thank you.

Source: www.cyklosety.cz/VirtualButtons.zip

Re: Banana solution

October 10, 2011 - 11:17pm #3

Hi werther,

See if this can you help you out.. Refer to my attachment..

i struggled with the same thing as you few weeks ago..:p

You can also refer to this thread..

Godd Luck..;)

Banana solution

October 10, 2011 - 4:22pm #2

If you aren't familiar with OpenGL ES this can be difficult. There are some tips in this thread: https://ar.qualcomm.at/node/2000446 If you let us know exactly what you're getting stuck on we can help more. I might also suggest using Unity, it can directly import many standard model formats. - Kim

Log in or register to post comments