Package org.jwildfire.create.tina.render

Examples of org.jwildfire.create.tina.render.FlameRenderer$RenderImageSimpleThread


      double hScl = (double) info.getImageHeight() / (double) renderFlame.getHeight();
      renderFlame.setPixelsPerUnit((wScl + hScl) * 0.5 * renderFlame.getPixelsPerUnit());
      renderFlame.setWidth(pImgWidth);
      renderFlame.setHeight(pImgHeight);
      renderFlame.setSampleDensity(prefs.getTinaRenderPreviewQuality() / 3.0);
      FlameRenderer renderer = new FlameRenderer(renderFlame, prefs, false, true);
      RenderedFlame renderRes = renderer.renderFlame(info);
      return renderRes.getImage();
    }
    return null;
  }
View Full Code Here


        double hScl = (double) info.getImageHeight() / (double) flame.getHeight();
        flame.setPixelsPerUnit((wScl + hScl) * 0.5 * flame.getPixelsPerUnit());
        flame.setWidth(info.getImageWidth());
        flame.setHeight(info.getImageHeight());

        FlameRenderer renderer = new FlameRenderer(flame, prefs, data.toggleTransparencyButton.isSelected(), false);
        flame.setSampleDensity(prefs.getTinaRenderRealtimeQuality());
        flame.setSpatialFilterRadius(0.0);
        RenderedFlame res = renderer.renderFlame(info);
        imgPanel.setImage(res.getImage());
      }
      else {
        imgPanel.setImage(new SimpleImage(width, height));
      }
View Full Code Here

                controller.getJobProgressUpdater().initProgress(1);
                controller.getJobProgressUpdater().updateProgress(1);
              }
              else {
                flame.setSampleDensity(job.getCustomQuality() > 0 ? job.getCustomQuality() : qualityProfile.getQuality());
                FlameRenderer renderer = new FlameRenderer(flame, Prefs.getPrefs(), flame.isBGTransparency(), false);
                renderer.setProgressUpdater(controller.getJobProgressUpdater());
                long t0 = Calendar.getInstance().getTimeInMillis();
                RenderedFlame res = renderer.renderFlame(info);
                long t1 = Calendar.getInstance().getTimeInMillis();
                job.setElapsedSeconds(((double) (t1 - t0) / 1000.0));
                new ImageWriter().saveImage(res.getImage(), primaryFilename);
                if (res.getHDRImage() != null) {
                  new ImageWriter().saveImage(res.getHDRImage(), job.getImageFilename(flame.getStereo3dMode()) + ".hdr");
View Full Code Here

      info.setRenderHDR(prefs.isTinaSaveHDRInIR());
      info.setRenderHDRIntensityMap(false);
      if (flame.getBGColorRed() > 0 || flame.getBGColorGreen() > 0 || flame.getBGColorBlue() > 0) {
        image.fillBackground(flame.getBGColorRed(), flame.getBGColorGreen(), flame.getBGColorBlue());
      }
      renderer = new FlameRenderer(flame, prefs, flame.isBGTransparency(), false);
      renderer.registerIterationObserver(this);
      displayUpdater = createDisplayUpdater();
      displayUpdater.setSampleCount(0);
      renderStartTime = System.currentTimeMillis();
      pausedRenderTime = 0;
View Full Code Here

      }
      if (chooser.showOpenDialog(imageRootPanel) == JFileChooser.APPROVE_OPTION) {
        cancelRender();
        File file = chooser.getSelectedFile();
        Flame newFlame = new Flame();
        FlameRenderer newRenderer = new FlameRenderer(newFlame, prefs, newFlame.isBGTransparency(), false);

        ResumedFlameRender resumedRender = newRenderer.resumeRenderFlame(file.getAbsolutePath());
        threads = new RenderThreads(resumedRender.getThreads(), null);
        Flame flame = currFlame = newRenderer.getFlame();
        // setup size profile
        {
          int width = newRenderer.getRenderInfo().getImageWidth();
          int height = newRenderer.getRenderInfo().getImageHeight();
          ResolutionProfile selected = null;
          boolean halve = false;
          for (int i = 0; i < interactiveResolutionProfileCmb.getItemCount(); i++) {
            ResolutionProfile profile = (ResolutionProfile) interactiveResolutionProfileCmb.getItemAt(i);
            if (profile.getWidth() == width && profile.getHeight() == height) {
View Full Code Here

        double hScl = (double) imgHeight / (double) flame.getHeight();
        flame.setPixelsPerUnit((wScl + hScl) * 0.5 * flame.getPixelsPerUnit());
        flame.setWidth(imgWidth);
        flame.setHeight(imgHeight);

        FlameRenderer renderer = new FlameRenderer(flame, prefs, false, true);
        renderer.setProgressUpdater(null);
        flame.setSampleDensity(50);
        flame.setSpatialFilterRadius(0.0);
        RenderInfo info = new RenderInfo(imgWidth, imgHeight, RenderMode.PREVIEW);
        RenderedFlame res = renderer.renderFlame(info);
        currThumbnail = new ImageIcon(res.getImage().getBufferedImg());
      }
    }
    catch (Exception ex) {
      currThumbnail = null;
View Full Code Here

TOP

Related Classes of org.jwildfire.create.tina.render.FlameRenderer$RenderImageSimpleThread

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.