rootNode.attachChild(SkyFactory.createSky(
assetManager, “Textures/Sky/Bright/BrightSky.dds”, false));
I have added that to my code under: @Override
public void simpleInitApp() {
But I get this error:
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalArgumentException: The given texture parameter is not set.
at com.jme3.material.Material.clearTextureParam(Material.java:375)
at com.jme3.material.Material.setTexture(Material.java:417)
at com.jme3.util.SkyFactory.createSky(SkyFactory.java:25)
at com.jme3.util.SkyFactory.createSky(SkyFactory.java:77)
at com.jme3.util.SkyFactory.createSky(SkyFactory.java:85)
at jme3test.helloworld.HelloTerrain.simpleInitApp(HelloTerrain.java:25)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:218)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:138)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:206)
at java.lang.Thread.run(Thread.java:662)
Java Result: -1073741819
what version of jME3 do you use? alpha 4 or nightly?
the problem seems to be that the texture is not found , check the path to the texture in your project.
In recent version the loader throws a more explicit error
I fixed it, I am not telling what the simple error was. It will make me look stupid.
ALright new problem, I got it to work with the default brightsky. But when i try to use my custom one.
rootNode.attachChild(SkyFactory.createSky(
assetManager, “Textures/Sky/Lagoon/Skyimage.png”, false));
I put the image in the lagoon file.
java.lang.IllegalArgumentException: The given texture parameter is not set.
at com.jme3.material.Material.clearTextureParam(Material.java:375)
at com.jme3.material.Material.setTexture(Material.java:417)
at com.jme3.util.SkyFactory.createSky(SkyFactory.java:25)
at com.jme3.util.SkyFactory.createSky(SkyFactory.java:77)
at com.jme3.util.SkyFactory.createSky(SkyFactory.java:85)
at com.galaxywars.GalaxyWars.simpleInitApp(GalaxyWars.java:41)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:218)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:138)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:206)
at java.lang.Thread.run(Thread.java:662)
Java Result: -1073741819
Ha, nevermind i fixed that problem. It all loads up and everything, but my sky isn’t there.