Nifty issue - possible bug

I am having an issue using the nifty console control. For some reason every line after the first line is garbled.



Here is what I am outputting:

[java]

console.output(“Welcome to Metal Game”);

console.output("You can type -help at any time for more information ");

console.output( “Press F1 to toggle this console”);

[/java]



Here is what it looks like

https://docs.google.com/document/pub?id=1u4JoIUSHBgdakufX18w4PXXW56JNI5tivwtMmAf-ElU

Every command just outputs garbled text. I have verified that it works on another machine. I am using a fairly new Asus laptop with Intel HD card.

Interesting…I ran into the same problem a while ago, also on a laptop with an Intel graphics chip (GMA 4500MHD). Wonder if it’s a problem with the driver.

Yes! That is exactly the same thing that is happening to me. It appears that it is not specific to the console, as other controls are also displaying the garbled text. My card supposedly has openGL support. Could this be confirmed as either a coding bug or a hardware issue?

since you (or someone else) posted this as a Nifty bug on the sf.net project page for Nifty I think it’s ok to link this thread and the one over there together → http://sourceforge.net/tracker/?func=detail&aid=3304320&group_id=223898&atid=1059822



I’m pretty sure it’s a driver issue but maybe the test project I’ve posted can be used to pin down the problem to some degree? It’s just using plain LWJGL rendering of some text using a angelcode font rendering.

I posted a follow up in the bug tracker. The test project rendered text perfectly. Does this mean the bug is likely in JME?

No, not necessarily :slight_smile:



It still could be anything. A bug in the text rendering (unlikely) or still driver related. Maybe there is some other OpenGL state that was set before influencing the rendering in your case, loaded textures (like for the Scrollbar buttons) and probably a couple of more things.



To investigate that further I can think of:



  • Make sure you use the same font file in the test. Can you extract the exact Font File from the Nifty you use (it should be somewhere in the jar) and use this in my pure LWJGL test example?

  • Can you setup your Nifty test code (the xml file or when you use it, the JavaBuilders) and use the plain LWJGL Nifty Renderer? So that we can compare the output from another Nifty renderer to the JME version?

  • Did you ever notice something similar in one of the Nifty example on the blog? Like the Nifty 1.2 Tutorial/Demo thing (webstart)?

  • If this works correctly it points towards a possible problem in the JME3 renderer. Can you create a simple JME3 example (without Nifty) and render text with the JME build in BitmapText stuff? Any issues there?



Another thing you could do is do relax. Just wait a couple of hours because the rapture is probably happening in a couple of hours. And since you've always been good you will go to heaven and stuff ... and when you are still stuck with this issue like tommorow or so. Well, then things will just get worse in the next couple of weeks :D