I’ve been busy making a new version of my ‘hyper-blazer’ game; ‘hyper-blazer 2’ if you will. This time with lots more eye-candy
I’m using libgdx, which so far is great. Running on both desktop and android Just Works, awesome!
I’m using 2 cameras; one for 3D and one for 2D.
First I render the 3D scene using the perspective camera, which works fine.
Then I switch to the ortho camera and use SpriteBatch to draw my overlays (virtual sticks for Android in this case).
Now the problem is that the textures I want to draw just show up as white blocks.
The problem is not the textures themselves; in a simple standalone test they show up fine.
I read that SpriteBatch requires a ‘clean’ OpenGL state, so I disable culling, lighting etc before using the SpriteBatch, but this didn’t seem to help.
Any hints?