Package se.llbit.chunky.renderer

Examples of se.llbit.chunky.renderer.RenderContext


          try {
            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


   * @return error code
   */
  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 {
View Full Code Here

   * @return error code
   */
  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 {
View Full Code Here

    if (renderControls == null || !renderControls.isDisplayable()) {
      File sceneDir = SceneDirectoryPicker.getSceneDirectory(frame);
      if (sceneDir != null) {
        ChunkyOptions config = options.clone();
        config.sceneDir = sceneDir;
        RenderContext context = new RenderContext(config);
        String name = world.levelName();
        String preferredName = SceneManager.preferredSceneName(
                            context, name);

        if (SceneManager.sceneNameIsValid(preferredName) &&
View Full Code Here

    if (renderControls == null || !renderControls.isDisplayable()) {
      File sceneDir = SceneDirectoryPicker.getSceneDirectory(frame);
      if (sceneDir != null) {
        ChunkyOptions config = options.clone();
        config.sceneDir = sceneDir;
        RenderContext context = new RenderContext(config);
        SceneSelector sceneSelector = new SceneSelector(null, context);
        sceneSelector.setLocationRelativeTo(frame);
        if (sceneSelector.isAccepted()) {
          String scene = sceneSelector.getSelectedScene();
          renderControls = new RenderControls(Chunky.this, context);
View Full Code Here

  /**
   * Benchmark the path tracing renderer.
   */
  public void runBenchmark() {
    RenderContext context = new RenderContext(options);
    new BenchmarkDialog(getFrame(), context);
  }
View Full Code Here

TOP

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

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.