Problem crating a skybox

Hi, i’m trying to make a skybox with jme3, I have this code:

[java]private void createSky() {

Sphere sphereMesh = new Sphere(32, 32, 10, false, true);

Geometry sphere = new Geometry(“Sky”, sphereMesh);


Material sky = new Material(assetManager, “Common/MatDefs/Misc/Sky.j3md”);

TextureKey key = new TextureKey(“Textures/Sky/Bright/”, true);



Texture tex = assetManager.loadTexture(key);

sky.setTexture(“m_Texture”, tex);

sky.setVector3(“m_NormalScale”, Vector3f.UNIT_XYZ);





this code works in windows, buy when I build this on linux it doesn’t work, it only not show the sky, but the rest yes.

If i change the material of sky to a solidColor, it works again.

Anybody can help me?

Install the latest graphics card drivers on the linux machine.

I have the last version of ubuntu with an integrated intel graphic card, in the same pc in windows it works but in linux it doesen’t , I have the drivers ho come with linux, how can i upgrade it?

System → Administration → Update Manager

It’s been a while since I knowingly updated my graphic driver though, it could be that you might also have to go to the Software Center and find your graphic driver (a search for “nvidia”, “amd” or “opengl” should do the trick) there to install the “optimized driver” thingy. If you have an odd setup then the is a great place for support.

my intel driver is up to date in ubuntu, i will belive that’s not the problem, any more solutions please?

There were strange issues with Intel HD graphics mentioned on the forum before…

Maybe it is the “” texture? Try using a spheremap sky like in the TestCubeMap test.

I try the TastCubeMap test but it doesn’t work. The problem is that it works in wndows but not in linux :S

this is what I got if execute the testcubemap of jmonkey sdk


Looks like your video driver might have bad support for shaders. Those samples work fine on most PCs.

and what can i do?

Get a better graphics card or hope for better drivers.