Generating a procedural mesh -- what is needed?

Hi all, JME3 newbie here. I’ve been trying to make some custom meshes in code by just making buffers of vertices and indices. This works for a simple textured material. However when I try to use Lighting.j3md, a variety of terrible things happen; the model disappears except at certain rare angles, lighting is all wrong, etc.



I get the impression I need to be generating some other buffers, possibly normals at least? I can find no complete list of what needs to be made for a custom mesh.

Normals and Tangents, ttry the BinominalTangentGenerator class (or similar named)

[java]TangentBinormalGenerator.generate(yourSpatial);[/java]

Yeah, you have to generate a normal buffer to use the lighting material