beniboy
February 25, 2011, 9:15pm
1
i can’t see the cubeMap of my scene. i’ve got this in the log:[patch]WARNING: Invalid texture: Texture 408fbecf
Cubemap textures must contain 6 data units.[/patch]it says there is something wrong with my image, but it looks like the examples.
my texture:
and my code:[java] rootNode.attachChild(SkyFactory.createSky(
assetManager, “Textures/SkyBox.png”, false));[/java]
what is my mistake?
nehon
February 26, 2011, 8:37am
2
This texture is not a valid cube map,
You need to export it as a dds file.
Look at this tutorial
http://www.cgtextures.com/content.php?action=tutorial&name=cubemaps
beniboy
February 26, 2011, 10:33pm
3
then why is this in the JME wiki?
■JME3 supports cube maps in PNG, JPG, or (compressed) DDS format.
normen
February 26, 2011, 10:46pm
4
You can use a cube map with separate jpg files.
beniboy
February 26, 2011, 10:59pm
5
how? i don’t see it in the wiki.
i just tried exporting it to a dds file, and i’ve got the same results…
normen
February 26, 2011, 11:02pm
6
A dds file is multiple files in one. You need to cut the image into the single segments and use the SkyboxFactory method that takes images for north, south etc.
Follow the tutorial exactly, it explains how to split the images