Since my game objects are going to be made exclusively of custom mesh, dynamically generated, I decided to try to do that first.
Using the default lighting provided by SimpleApplication (what IS the default lighting; I can’t see anything about it in SimpleApplication), with Unshaded.j3md material, and material.setBoolean(“VertexColor”, true), I can build my mesh, and see it, although it seems to be lit from the left, so that the right side is totally dark.
Adding a directional light has no effect:
DirectionalLight sun = new DirectionalLight();
sun.setColor(ColorRGBA.White);
sun.setDirection(new Vector3f(-.5f,-.5f,-.5f).normalizeLocal());
rootNode.addLight(sun);
Adding an ambient light has no effect:
AmbientLight al = new AmbientLight();
al.setColor(new ColorRGBA(1.8f,1.8f,1.8f,1.0f));
rootNode.addLight(al);
Adding both still has no effect.
I took both example from the wiki/forum, and assume they are right. Therefore it is probably an issue with my material and/or my mesh.
Is there a way to say: just display everything at full color? No shadows.
I tried using wireframe, but even that seems to be shaded. I use the same color everywhere, so it should not be an issue that I used black or something, giving it a shaded look. Still some of my corner/vertice are “dark”, while the others look OK.