public void putGrid(Vector3f pos, ColorRGBA color){ putShape(new Grid(6, 6, 0.2f), color, 1).center().move(pos); }
rootNode.addLight(al); Grid grid = new Grid(50, 50, 5); Geometry gridGeom = new Geometry("grid", grid); gridGeom.setMaterial(new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"));
rootNode.addLight(al); Grid grid = new Grid(50, 50, 5); Geometry gridGeom = new Geometry("grid", grid); gridGeom.setMaterial(new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"));
public static void attachWireFrameDebugGrid(AssetManager assetManager, Node n, Vector3f pos, Integer size, ColorRGBA color) { Geometry g = new Geometry("wireFrameDebugGrid", new Grid(size, size, 1.0f)); //1WU Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat.getAdditionalRenderState().setWireframe(true); mat.setColor("Color", color); g.setMaterial(mat); g.center().move(pos); n.attachChild(g); } }
private static void attachGrid(Vector3f pos, float size, ColorRGBA color, AssetManager assetManager, Node rootNode) { Geometry g = new Geometry("wireframe grid", new Grid((int) size, (int) size, 1f)); Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat.getAdditionalRenderState().setWireframe(true); mat.setColor("Color", color); g.setMaterial(mat); g.center().move(pos); rootNode.attachChild(g); } }