protected void start() { graphics3dAdapter.addRootNode(rootNode); viewportAdapter = Graphics3DAdapterTools.createViewport(graphics3dAdapter); addFrameListener(this); }
public Graphics3DWorld(String worldName, Graphics3DAdapter graphics3dAdapter) { this.graphics3dAdapter = graphics3dAdapter; this.worldName = worldName; init(); }
public void startWithGui(int windowWidth, int windowHeight) { startWithGui(ClassicCameraController.CAMERA_START_X, ClassicCameraController.CAMERA_START_Y, ClassicCameraController.CAMERA_START_Z, windowWidth, windowHeight); }
public HeightMap getHeightMap() { HeightMap ret = null; if (groundProfile3D != null) { ret = groundProfile3D.getHeightMapIfAvailable(); } return ret; }
public static ClassicCameraController createNewWindow(Graphics3DAdapter graphics3DAdapter, String title, int width, int height, Vector3D initialCameraTranslation) { return createNewWindow(graphics3DAdapter, createViewport(graphics3DAdapter), title, width, height, initialCameraTranslation); }
public void addAllChildren(Graphics3DNode... children) { for (Graphics3DNode child : children) { addChild(child); } }
@Override public QuaternionReadOnly getCameraOrientation() { return camera.getCameraRotation(); }
@Override public double getFieldOfView() { return camera.getHorizontalFovInRadians(); }
protected synchronized void updateGraphics(float tpf) { for (Updatable updatable : updatables) { updatable.simpleUpdate(tpf); } }
@Override public Point3DReadOnly getCameraPosition() { return camera.getCameraPosition(); }
@Override public JMEGraphics3DAdapter getGraphics3DAdapter() { return (JMEGraphics3DAdapter) super.getGraphics3DAdapter(); }
protected void start() { graphics3dAdapter.addRootNode(rootNode); viewportAdapter = Graphics3DAdapterTools.createViewport(graphics3dAdapter); addFrameListener(this); }
public HeightMap getHeightMap() { HeightMap ret = null; if (groundProfile3D != null) { ret = groundProfile3D.getHeightMapIfAvailable(); } return ret; }
public static ClassicCameraController createNewWindow(Graphics3DAdapter graphics3DAdapter, String title, int width, int height, Vector3d initialCameraTranslation) { return createNewWindow(graphics3DAdapter, createViewport(graphics3DAdapter), title, width, height, initialCameraTranslation); }
public void startWithGui(int windowWidth, int windowHeight) { startWithGui(ClassicCameraController.CAMERA_START_X, ClassicCameraController.CAMERA_START_Y, ClassicCameraController.CAMERA_START_Z, windowWidth, windowHeight); }
public void addAllChildren(Graphics3DNode... children) { for (Graphics3DNode child : children) { addChild(child); } }
@Override public QuaternionReadOnly getCameraOrientation() { return camera.getCameraRotation(); }
@Override public double getFieldOfView() { return camera.getHorizontalFovInRadians(); }
protected synchronized void updateGraphics(float tpf) { for (Updatable updatable : updatables) { updatable.simpleUpdate(tpf); } }
@Override public Point3DReadOnly getCameraPosition() { return camera.getCameraPosition(); }