Scene with nothing in it has 916 vertices?

I just started using jmonkeyengine and tried doing the first totorial from https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_simpleapplication.



When I ran it, I noticed there were 940 vertices, and 15 objects (in the output on the left side of the screen). I then removed any loading code and wound up with this:



[java]public class Tutorial1_SimpleApplication extends SimpleApplication{



public static void main(String[] args){

Tutorial1_SimpleApplication app = new Tutorial1_SimpleApplication();

app.start();

}



@Override

public void simpleInitApp() {

/Box b = new Box(Vector3f.ZERO, 1, 1, 1); // Cube shape

Geometry geom = new Geometry("box", b); // Cube geometry

Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.jm3d");

mat.setColor("Color", ColorRGBA.Blue);

geom.setMaterial(mat);

rootNode.attachChild(geom);
/

}

}[/java]



Which now displays 914 vertices and 14 objects. Where are the other 14 objects coming from? Are there some default objects that are created by the engine when it starts up?

This should be a FAQ I guess as this question has appeared twice this week. :slight_smile:



Hint: nothing appears on the screen unless it is through the OpenGL pipeline and therefore counted as objects, verts, tris, etc…



Hint 2: there is text on the screen showing the stats and current FPS.



Hint 3, there are 14 lines of text…

Ah, I see. I had not realized that jmonkeyengine drew each character as a separate quad, and each string as an object. Thanks for the information. It might be useful to specify this in the tutorial so that people would know what is going on.

Hm, good idea. I added it to the FAQ and mentioned it in the first tutorial.