use of io.github.mistercavespider.lina.ctrl.TimeTracer in project Lina by MisterCavespider.
the class Test method simpleInitApp.
@Override
public void simpleInitApp() {
flyCam.setMoveSpeed(45f);
stateManager.attach(new ScreenshotAppState("image/"));
//
// arr = new LineArray(8);
// Geometry geom = new Geometry("LineArray", arr);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setTransparent(true);
mat.setBoolean("VertexColor", true);
// geom.setMaterial(mat);
// rootNode.attachChild(geom);
//
// arr.setVertex(0, new Vector3f(0, 0, 0));
// arr.setVertex(1, new Vector3f(1, 1, 1));
// arr.setVertex(2, new Vector3f(2, 6, 4));
// arr.setVertex(3, new Vector3f(3, 12, 9));
//
// arr.setVertex(4, new Vector3f(4, 20, 16));
// arr.setVertex(5, new Vector3f(5, 30, 25));
// arr.setVertex(6, new Vector3f(6, 42, 36));
// arr.setVertex(7, new Vector3f(7, 56, 49));
//
// System.out.println();
//
// str = new LineString(64);
// lineString = new Geometry("LineString", str);
// lineString.setMaterial(mat.clone());
// rootNode.attachChild(lineString);
//
// str.addPoint(Vector3f.ZERO, ColorRGBA.Red);
// str.addPoint(Vector3f.UNIT_X, ColorRGBA.Red);
// str.addPoint(Vector3f.UNIT_XYZ, ColorRGBA.Red);
g = new Geometry("g", new Sphere(8, 8, .5f));
g.setMaterial(mat.clone());
rootNode.attachChild(g);
g.addControl(new TimeTracer(mat.clone(), 64, 64));
}
Aggregations