/** * This starts the traversal of a SceneGraph starting form root. * * @param root */ public void traverse(SceneGraphComponent root) { if (initialTrafo == null) { initialTrafo = new double[16]; // if (initialTransformation != null) // initialTransformation.getMatrix(initialTrafo); // else Rn.setIdentityMatrix(initialTrafo); } currentTrafo = initialTrafo; visit(root); // pipeline.setMatrix(initialTrafo); }