Package se.llbit.chunky.renderer

Examples of se.llbit.chunky.renderer.RenderManager


    context = renderContext;
    chunky = chunkyInstance;

    view = new Chunk3DView(this, chunkyInstance.getFrame());

    renderMan = new RenderManager(
        view.getCanvas(), renderContext, this);

    buildUI();

    renderMan.start();
View Full Code Here


   */
  private int doHeadlessRender() {
    System.setProperty("java.awt.headless", "true");

    RenderContext renderContext = new RenderContext(options);
    RenderManager renderManager = new RenderManager(
        new PlaceholderRenderCanvas(),
        renderContext, new ConsoleRenderListener(), true);

    try {
      renderManager.loadScene(options.sceneName);
      if (options.target != -1) {
        renderManager.scene().setTargetSPP(options.target);
      }
      renderManager.scene().goHeadless();

      renderManager.start();
      return 0;
    } catch (FileNotFoundException e) {
      System.err.println("Scene \"" + options.sceneName + "\" not found!");
      renderManager.interrupt();
      return 1;
    } catch (IOException e) {
      System.err.println("IO error while loading scene (" + e.getMessage() + ")");
      renderManager.interrupt();
      return 1;
    } catch (SceneLoadingError e) {
      System.err.println("Scene loading error (" + e.getMessage() + ")");
      renderManager.interrupt();
      return 1;
    } catch (InterruptedException e) {
      System.err.println("Interrupted while loading scene");
      renderManager.interrupt();
      return 1;
    }
  }
View Full Code Here

TOP

Related Classes of se.llbit.chunky.renderer.RenderManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.