VBOinfo, and node?


I'm new to jME and are playing around with the example code provided in the CVS.

There is one thing I'd like to do that I can't figure out how:

In TestShadowPass the character is a PQTorus and I'd like to change that to my own 3d model from file but since my model get loaded as a Node it won't work because Node doesn't have the method .setVBOInfo(VBOInfo vbo) and without that line .getWorldBound() in both that node and the parent get null. Is there any workaround?

Thank you for taking your time


Try calling updateWorldBound before getting it, or you might not have a bound already on your object, in which case, you can call setModelBound first.

Oh, sorry I had commented out the line that updated the parent's worldBound but the problem still remains using the Node:

        PQTorus b = new PQTorus("torus - target", 2, 3, 2.0f, 1.0f, 64, 12);
        b.setModelBound(new BoundingBox());
   //Doesn't work
   Node r1 = (Node)BinaryImporter.getInstance().load(new File("man.jme"));
   r1.setModelBound(new BoundingBox());

What is wrong?

EDIT: The conclusion of this is that the setVBOInfo method didn't have anything to with it. It was the Node that was the problem.