Package org.jwildfire.create.tina.render

Examples of org.jwildfire.create.tina.render.RenderInfo


    Rectangle bounds = imgPanel.getImageBounds();
    int width = bounds.width;
    int height = bounds.height;
    Flame flame = getBatchRenderPreviewFlameHolder().getFlame();
    if (width >= 16 && height >= 16) {
      RenderInfo info = new RenderInfo(width, height, RenderMode.PREVIEW);
      if (flame != null) {
        double wScl = (double) info.getImageWidth() / (double) flame.getWidth();
        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);
View Full Code Here


      int height = resProfile.getHeight();
      if (halveSizeButton.isSelected()) {
        width /= 2;
        height /= 2;
      }
      RenderInfo info = new RenderInfo(width, height, RenderMode.INTERACTIVE);
      Flame flame = getCurrFlame();
      if (!Stereo3dMode.NONE.equals(flame.getStereo3dMode())) {
        throw new Exception("Stereo3d-rendering isn't currently supported in the interactive-renderer. Please use the editor or the batch-renderer to create stereo3d-images");
      }

      double wScl = (double) info.getImageWidth() / (double) flame.getWidth();
      double hScl = (double) info.getImageHeight() / (double) flame.getHeight();
      flame.setPixelsPerUnit((wScl + hScl) * 0.5 * flame.getPixelsPerUnit());
      flame.setWidth(info.getImageWidth());
      flame.setHeight(info.getImageHeight());
      flame.setSampleDensity(10);
      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);
View Full Code Here

            }
            else {
              width = resolutionProfile.getWidth();
              height = resolutionProfile.getHeight();
            }
            RenderInfo info = new RenderInfo(width, height, RenderMode.PRODUCTION);
            info.setRenderHDR(qualityProfile.isWithHDR());
            info.setRenderHDRIntensityMap(qualityProfile.isWithHDRIntensityMap());
            List<Flame> flames = new FlameReader(Prefs.getPrefs()).readFlames(job.getFlameFilename());
            Flame flame = flames.get(0);
            String primaryFilename = job.getImageFilename(flame.getStereo3dMode());
            double wScl = (double) info.getImageWidth() / (double) flame.getWidth();
            double hScl = (double) info.getImageHeight() / (double) flame.getHeight();
            flame.setPixelsPerUnit((wScl + hScl) * 0.5 * flame.getPixelsPerUnit());
            flame.setWidth(info.getImageWidth());
            flame.setHeight(info.getImageHeight());
            double oldSampleDensity = flame.getSampleDensity();
            double oldFilterRadius = flame.getSpatialFilterRadius();
            try {
              if (!doOverwriteExisting && new File(primaryFilename).exists()) {
                controller.getJobProgressUpdater().initProgress(1);
View Full Code Here

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

TOP

Related Classes of org.jwildfire.create.tina.render.RenderInfo

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.