Hello!
I want to make a static background (from picture) and to show a simple cube infront of it. I have modified the Hello World example - instead of using color for background, I used 512*512 big Texture. But when I rotate cube, something strange happens:
(when I load it and don't touch it)
(the more I touch/rotate it, the more it fades!)
Code modifications:
I load my texture into TextureManager from onCreate()
TextureManager.getInstance().addTexture("textureBG", new Texture(BitmapHelper.rescale(BitmapHelper.convert(getResources().getDrawable(R.drawable.garden)), 512, 512)));
And then in the onDrawFrame(GL10 gl)
fb.blit(TextureManager.getInstance().getTexture("textureBG"), 512, 512, 0, 0, 512, 512, false);
world.renderScene(fb);
world.draw(fb);
fb.display();
What am I doing wrong? How can I fix it?
Thank You!