Android: Image Format BGR8 is unsupported

I’m trying to add a skybox to a mobile game. But I get this:

E/ 2519): SEVERE Exception thrown in Thread[GLThread 2469,5,main]
E/ 2519): com.jme3.renderer.RendererException: Image format 'BGR8' is unsupported by the video hardware.
E/ 2519): 	at com.jme3.renderer.opengl.TextureUtil.getImageFormatWithError(
E/ 2519): 	at com.jme3.renderer.opengl.TextureUtil.uploadTexture(
E/ 2519): 	at com.jme3.renderer.opengl.GLRenderer.updateTexImageData(
E/ 2519): 	at com.jme3.renderer.opengl.GLRenderer.setTexture(
E/ 2519): 	at com.jme3.material.Material.updateShaderMaterialParameters(
E/ 2519): 	at com.jme3.material.Material.render(
E/ 2519): 	at com.jme3.renderer.RenderManager.renderGeometry(
E/ 2519): 	at com.jme3.renderer.queue.RenderQueue.renderGeometryList(
E/ 2519): 	at com.jme3.renderer.queue.RenderQueue.renderQueue(
E/ 2519): 	at com.jme3.renderer.RenderManager.renderViewPortQueues(
E/ 2519): 	at com.jme3.renderer.RenderManager.flushQueue(
E/ 2519): 	at com.jme3.renderer.RenderManager.renderViewPort(
E/ 2519): 	at com.jme3.renderer.RenderManager.render(
E/ 2519): 	at
E/ 2519): 	at
E/ 2519): 	at
E/ 2519): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(
E/ 2519): 	at android.opengl.GLSurfaceView$

The skybox is divided into 6 images and they are in .jpg format. Just loading the scene with skybox causes no problem, but when I try to attach the scene to rootNode, that error happens.
Anyone knows how to fix or bypass this?

upping this, i also have the same problem. answer please…
edit: i got i., i use j3o before for skybox, now I created it though skyfactory instead. use png or if you want to use jpg, open jpg in gimp and re-export it with unchecked progressive in export option.

1 Like