[SOLVED] Need help with impostor mesh

getting NullPointerException at com.jme3.scene.BatchNode.updateSubBatch(BatchNode.java:155)
to test downbload src: Dropbox - impostor.src.zip - Simplify your life

my guess there something evil with mesh (this one is extracted from biomonkey):

        setBuffer(VertexBuffer.Type.Position, 3, new float[]{
		0, 0, 0,
        0, 0, 0,
        0, 0, 0,
        0, 0, 0
    });

    setBuffer(VertexBuffer.Type.TexCoord, 2, new float[]{
		0, 0,
		1, 0,
		0, 1,
		1, 1
	});

    setBuffer(VertexBuffer.Type.TexCoord2, 3, new float[]{
		-1, 0,
		 0, 1,
		 0, 0,
		-1, 2,
		 0, 1,
		 2, 0
	});

    setBuffer(VertexBuffer.Type.Index, 1, new short[]{
		0, 1, 2,
		1, 3, 2
	});

There is no normal buffer.

1 Like

:open_mouth: how did i miss that? must be tired :tired_face:
thanks

Well the BatchNode could fail more elegantly… :stuck_out_tongue: