Square Skybox textures… how?

I tried handing in a “T with the stem facing right” texture as in the offered examples, and was told (repeatedly) by JME3 that a texture with 6 data units is required.

Can someone offer a code crib showing how one provides this? I can divvy out the 6 faces from my one jp, but I need to know how to feed them in, programmatically.


if you have 6 faces (must all be same size) you can do this:


Texture west = assetManager.loadTexture(“Textures/west.jpg”);

Texture east = assetManager.loadTexture(“Textures/east.jpg”);

Texture north = assetManager.loadTexture(“Textures/north.jpg”);

Texture south = assetManager.loadTexture(“Textures/south.jpg”);

Texture up = assetManager.loadTexture(“Textures/up.jpg”);

Texture down = assetManager.loadTexture(“Textures/down.jpg”);

Spatial sky = SkyFactory.createSky(assetManager, west, east, north, south, up, down);


don’t forget to thumbs up if this was helpful

wezrule said:
don't forget to thumbs up if this was helpful

How many $$$ do will you earn for each +1 xD.

Thanks-- had not thought to look for a different constructor.

How do I +1 a post/user?

edit: Ahh – I see it now that I am logged in.