Tutorial problem with example 3 (m.reconstruct)

Hi,



I get this error from the example code in the tutorials pdf:


"Game.java": cannot find symbol; symbol  : method reconstruct(com.jme.math.Vector3f[],com.jme.math.Vector3f[],com.jme.renderer.ColorRGBA[],com.jme.math.Vector2f[],int[]), location: class com.jme.scene.TriMesh at line 52, column 11




It looks like that method doesnt accept the Vector3f, Vector2f and int[] arrays but expects "FloatBuffer" objects.

Are the tutorials outdated or something? (i hope not :s).


The source code is:

import com.jme.app.SimpleGame;
import com.jme.scene.TriMesh;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.math.Vector2f;
import com.jme.bounding.BoundingBox;



public class Game extends SimpleGame {
    public static void main(String[] args) {
        Game game = new Game();
        game.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
        game.start();
    }

    protected void simpleInitGame() {
        TriMesh m = new TriMesh("My Mesh");

        Vector3f[] vertexes = {
                              new Vector3f(0, 0, 0),
                              new Vector3f(1, 0, 0),
                              new Vector3f(0, 1, 0),
                              new Vector3f(1, 1, 0)
        };

        Vector3f[] normals = {
                             new Vector3f(0, 0, 1),
                             new Vector3f(0, 0, 1),
                             new Vector3f(0, 0, 1),
                             new Vector3f(0, 0, 1)
        };

        ColorRGBA[] colors = {
                             new ColorRGBA(1, 0, 0, 1),
                             new ColorRGBA(1, 0, 0, 1),
                             new ColorRGBA(0, 1, 0, 1),
                             new ColorRGBA(0, 1, 0, 1)
        };

        Vector2f[] texCoords = {
                               new Vector2f(0, 0),
                               new Vector2f(1, 0),
                               new Vector2f(0, 1),
                               new Vector2f(1, 1)
        };

        int[] indexes = {0, 1, 2, 1, 2, 3};

        m.reconstruct(vertexes, normals, colors, texCoords, indexes); // <<


ERROR ON THIS LINE
       
        m.setModelBound(new BoundingBox());
        m.updateModelBound();
       
        rootNode.attachChild(m);
       
        lightState.setEnabled(false);
    }
}


More up to date versions of the tutorials can be found in CVS. Follow the link at the top of the wiki page: http://www.jmonkeyengine.com/wiki/doku.php?id=starter:hello_trimesh