Debug Graphics: Show normals as lines

        //mesh is the mesh for which you wan to see tbn
        Geometry debug = new Geometry("Debug normals",  TangentBinormalGenerator.genTbnLines(mesh, 0.08f)
        );
        Material debugMat = assetManager.loadMaterial("Common/Materials/VertexColor.j3m");
        debug.setMaterial(debugMat);
        debug.setCullHint(Spatial.CullHint.Never);
        debug.getLocalTranslation().set(translation);
        rootNode.attachChild(debug);

source in

2 Likes