TestNiftyGuiExamples.java - black screen

Hi.



Under linux… TestNiftyGuiExamples.java do not work. Just a black screen appears.



As far as I understand, under Windows it works ok.





Log:



Nov 9, 2011 9:51:27 AM com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

Nov 9, 2011 9:51:27 AM com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

Nov 9, 2011 9:51:27 AM com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

Nov 9, 2011 9:51:27 AM com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

Nov 9, 2011 9:51:27 AM com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

Nov 9, 2011 9:51:27 AM com.jme3.scene.Node attachChild

INFO: Child (Statistics View) attached to this node (Gui Node)

Nov 9, 2011 9:51:27 AM com.jme3.material.MaterialDef

INFO: Loaded material definition: Default GUI

Nov 9, 2011 9:51:28 AM de.lessvoid.nifty.Nifty loadFromFile

INFO: loadFromFile [all/intro.xml]

Nov 9, 2011 9:51:28 AM com.jme3.asset.DesktopAssetManager locateAsset

WARNING: Cannot locate resource: all/intro.xml

com.jme3.asset.AssetNotFoundException: all/intro.xml

at com.jme3.niftygui.NiftyJmeDisplay$ResourceLocationJme.getResourceAsStream(NiftyJmeDisplay.java:78)

at de.lessvoid.nifty.tools.resourceloader.ResourceLoader.getResourceAsStream(ResourceLoader.java:64)

at de.lessvoid.nifty.Nifty.loadFromFile(Nifty.java:523)

at de.lessvoid.nifty.Nifty.fromXml(Nifty.java:409)

at jme3test.niftygui.TestNiftyExamples.simpleInitApp(TestNiftyExamples.java:56)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:231)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)

Nov 9, 2011 9:51:28 AM de.lessvoid.nifty.Nifty gotoScreen

INFO: gotoScreen [start]

Nov 9, 2011 9:51:28 AM de.lessvoid.nifty.Nifty gotoScreenInternal

INFO: gotoScreenInternal [start]

Nov 9, 2011 9:51:28 AM de.lessvoid.nifty.Nifty gotoScreenInternal

WARNING: screen [start] not found

Nov 9, 2011 9:51:28 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation

INFO: Uniform m_VertexColor is not declared in shader [ShaderSource[name=Common/MatDefs/Misc/Unshaded.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Misc/Unshaded.frag, defines, type=Fragment]].

Nov 9, 2011 9:51:35 AM com.jme3.renderer.lwjgl.LwjglRenderer cleanup

INFO: Deleting objects and invalidating state

Nov 9, 2011 9:51:35 AM com.jme3.input.lwjgl.LwjglMouseInput destroy

INFO: Mouse destroyed.

Nov 9, 2011 9:51:35 AM com.jme3.input.lwjgl.LwjglKeyInput destroy

INFO: Keyboard destroyed.

Nov 9, 2011 9:51:35 AM com.jme3.system.lwjgl.LwjglAbstractDisplay deinitInThread

INFO: Display destroyed.

BUILD SUCCESSFUL (total time: 10 seconds)

The same problem is with TestNiftyToMesh.java. Black screen.



Log of TestNiftyToMesh.java:



INFO: Child (BitmapFont) attached to this node (null)

Nov 9, 2011 9:56:02 AM com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

Nov 9, 2011 9:56:02 AM com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

Nov 9, 2011 9:56:02 AM com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

Nov 9, 2011 9:56:02 AM com.jme3.scene.Node attachChild

INFO: Child (Statistics View) attached to this node (Gui Node)

Nov 9, 2011 9:56:02 AM com.jme3.renderer.Camera

INFO: Camera created (W: 1,024, H: 768)

Nov 9, 2011 9:56:02 AM com.jme3.material.MaterialDef

INFO: Loaded material definition: Default GUI

Nov 9, 2011 9:56:02 AM de.lessvoid.nifty.Nifty loadFromFile

INFO: loadFromFile [all/intro.xml]

Nov 9, 2011 9:56:02 AM com.jme3.asset.DesktopAssetManager locateAsset

WARNING: Cannot locate resource: all/intro.xml

com.jme3.asset.AssetNotFoundException: all/intro.xml

at com.jme3.niftygui.NiftyJmeDisplay$ResourceLocationJme.getResourceAsStream(NiftyJmeDisplay.java:78)

at de.lessvoid.nifty.tools.resourceloader.ResourceLoader.getResourceAsStream(ResourceLoader.java:64)

at de.lessvoid.nifty.Nifty.loadFromFile(Nifty.java:523)

at de.lessvoid.nifty.Nifty.fromXml(Nifty.java:409)

at jme3test.niftygui.TestNiftyToMesh.simpleInitApp(TestNiftyToMesh.java:67)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:231)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)

Nov 9, 2011 9:56:02 AM de.lessvoid.nifty.Nifty gotoScreen

INFO: gotoScreen [start]

Nov 9, 2011 9:56:02 AM de.lessvoid.nifty.Nifty gotoScreenInternal

INFO: gotoScreenInternal [start]

Nov 9, 2011 9:56:02 AM de.lessvoid.nifty.Nifty gotoScreenInternal

WARNING: screen [start] not found

Nov 9, 2011 9:56:02 AM com.jme3.scene.Node attachChild

INFO: Child (Box) attached to this node (Root Node)

Nov 9, 2011 9:56:02 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation

INFO: Uniform m_VertexColor is not declared in shader [ShaderSource[name=Common/MatDefs/Misc/Unshaded.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Misc/Unshaded.frag, defines, type=Fragment]].

Nov 9, 2011 9:56:06 AM com.jme3.renderer.lwjgl.LwjglRenderer cleanup

INFO: Deleting objects and invalidating state

Nov 9, 2011 9:56:06 AM com.jme3.input.lwjgl.LwjglMouseInput destroy

INFO: Mouse destroyed.

Nov 9, 2011 9:56:06 AM com.jme3.input.lwjgl.LwjglKeyInput destroy

INFO: Keyboard destroyed.

Nov 9, 2011 9:56:06 AM com.jme3.system.lwjgl.LwjglAbstractDisplay deinitInThread

INFO: Display destroyed.

BUILD SUCCESSFUL (total time: 7 seconds)

Here it is :



http://hub.jmonkeyengine.org/groups/general-2/forum/topic/testniftyexample-cant-find-allintro-xml/



I didn’t managed to get it working. Tried adding the project to the library path, but I am sure I am not doing it right. If you succeeded let me know. :slight_smile:

“intro.xml” is in nifty-examples-1.4.2.jar which is include in zip from nifty-gui download | SourceForge.net
you need to add nifty-examples-1.4.2.jar into classpath to make it work.

There are few screenshot of niftygui on web, and it seems discontinued. But when I see the examples, I know it is not that bad and should be useful.

  1. years. later.
1 Like

2 times in the same week that’s no coincidence, the forum is under attack LOL.

1 Like

I can confirm. Always a new user registered for this kind of stuff. Suspicious. But better later than never :slight_smile: IT projects can last a long time and maybe everything else is ready and this is the release blocker…

1 Like

Idea to mods/admins of this forum: add a warning before posting if someone is posting for a thread from at least 1 year ago.

1 Like

I think so too. And maybe close threads automatically after some time without activities, perhaps two or three years.

2 Likes

But then the bots might start posting in current threads and we’d all get really confused. :wink:

1 Like

DETROIT BECOME HUMAN :laughing:

1 Like