Fps text not showing up

I am just running a simple test file


import com.jme.app.SimpleGame;
import com.jme.scene.shape.Box;
import com.jme.math.Vector3f;
/**
 * Started Date: Jul 20, 2004<br><br>
 * Simple HelloWorld program for jME
 *
 * @author Jack Lindamood
 */
public class HelloWorld extends SimpleGame{
 public static void main(String[] args) {
  HelloWorld app = new HelloWorld(); // Create Object
  // Signal to show properties dialog
 
  app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
  app.start(); // Start the program
 }
 protected void simpleInitGame() {
  // Make a box
    System.out.println("location " + SimpleGame.fontLocation);
  Box b = new Box("Mybox", new Vector3f(0,0,0), new Vector3f(1,1,1));
   rootNode.attachChild(b); // Put it in the scene graph
 }
}



However, the FPS text doesn't show up when I run the program. I get no error message. :?
This is what i get on the console


Apr 11, 2007 10:09:56 PM com.jme.app.BaseGame start
INFO: Application started.
Apr 11, 2007 10:09:56 PM com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
Apr 11, 2007 10:09:56 PM com.jme.system.PropertiesIO load
INFO: Read properties
Apr 11, 2007 10:10:02 PM com.jme.input.joystick.DummyJoystickInput <init>
INFO: Joystick support is disabled
Apr 11, 2007 10:10:02 PM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
Apr 11, 2007 10:10:02 PM com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode
INFO: Selected DisplayMode: 800 x 600 x 32 @75Hz
Apr 11, 2007 10:10:02 PM com.jme.system.PropertiesIO save
INFO: Saved properties
Apr 11, 2007 10:10:02 PM com.jme.app.BaseSimpleGame initSystem
INFO: jME version 0.11 beta
Apr 11, 2007 10:10:03 PM com.jme.renderer.lwjgl.LWJGLRenderer <init>
INFO: LWJGLRenderer created. W:  800H: 600
Apr 11, 2007 10:10:03 PM com.jme.app.BaseSimpleGame initSystem
INFO: Running on: vtdisp
Driver version: 6.14.10.357
S3 Graphics - VIA/S3G UniChrome Pro IGP/MMX/SSE - 1.2
Apr 11, 2007 10:10:03 PM com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
Apr 11, 2007 10:10:03 PM com.jme.util.lwjgl.LWJGLTimer <init>
INFO: Timer resolution: 1000 ticks per second
location com/jme/app/defaultfont.tga
Apr 11, 2007 10:10:03 PM com.jme.scene.Node <init>
INFO: Node created.
Apr 11, 2007 10:10:03 PM com.jme.scene.Node <init>
INFO: Node created.
Apr 11, 2007 10:10:03 PM com.jme.scene.Node attachChild
INFO: Child (FPS label) attached to this node (FPS node)
Apr 11, 2007 10:10:03 PM com.jme.scene.Node attachChild
INFO: Child (Mybox) attached to this node (rootNode)
Apr 11, 2007 10:10:37 PM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Apr 11, 2007 10:10:37 PM com.jme.app.BaseGame start
INFO: Application ending.



Has anyone run into this problem?

i don't have the jme code here (at work) and i don't remember in where the fps node is attached to the root node.

the log output says that the fps label (the text) is attached to the fps node and the box is attached to the root node. but i don't see any line saying that the fps node is attached to the root node.

try attaching fpsNode to rootNode in simpleInitGame.

The code you posted works nicely for me, fps and statistics are displayed.



Also, the fpsNode never seem to be attached to rootNode. It's drawn with it's own r.draw(fpsNode); in the render() function in SimpleGame. ( after r.draw(rootNode); and simpleRender(); )

as i said: i didn't look at the code :stuck_out_tongue:

yea, it does work nicely on my friend's computer but it doesn't work on mine.  :expressionless:

I been researching but can it be that my java can't read .tga file. But I don't know how to test if that is true.

OR

maybe my graphics card is too crappy? I don't really think that is the case.

We have our own tga loader class, so no, that isn't the issue.