Package se.llbit.chunky.renderer

Examples of se.llbit.chunky.renderer.ConsoleRenderListener


            File file = getSceneFile(options);
            Scene scene = new Scene();
            FileInputStream in = new FileInputStream(file);
            scene.loadDescription(in);
            RenderContext context = new RenderContext(options);
            ConsoleRenderListener listener = new ConsoleRenderListener();
            scene.setCanvasSize(scene.width, scene.height);
            scene.loadDump(context, listener);
            if (pngFileName.isEmpty()) {
              pngFileName = scene.name + "-" + scene.spp + ".png";
            }
View Full Code Here


  private int doBenchmark(int renderThreads) {
    System.setProperty("java.awt.headless", "true");

    RenderContext renderContext = new RenderContext(options);
    BenchmarkManager benchmark = new BenchmarkManager(renderContext,
        new ConsoleRenderListener());
    benchmark.start();

    try {
      benchmark.join();
      BenchmarkDialog.recordBenchmarkScore(benchmark.getSceneName(),
View Full Code Here

    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);
View Full Code Here

TOP

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

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.