Search in sources :

Example 1 with SliceRenderInfo

use of org.jwildfire.create.tina.render.SliceRenderInfo in project JWildfire by thargor6.

the class RenderSlicesThread method doRender.

@Override
protected void doRender() {
    renderer = new FlameRenderer(flame, prefs, flame.isBGTransparency(), false);
    renderer.setProgressUpdater(progressUpdater);
    renderer = new FlameRenderer(flame, prefs, flame.isBGTransparency(), false);
    int width = renderWidth;
    int height = renderHeight;
    RenderInfo info = new RenderInfo(width, height, RenderMode.PRODUCTION);
    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(quality);
    renderer.setProgressUpdater(progressUpdater);
    SliceRenderInfo renderInfo = new SliceRenderInfo(renderWidth, renderHeight, RenderMode.PRODUCTION, slicesCount, zmin, zmax, slicesPerRender);
    renderer.renderSlices(renderInfo, outFilePattern);
}
Also used : FlameRenderer(org.jwildfire.create.tina.render.FlameRenderer) SliceRenderInfo(org.jwildfire.create.tina.render.SliceRenderInfo) RenderInfo(org.jwildfire.create.tina.render.RenderInfo) SliceRenderInfo(org.jwildfire.create.tina.render.SliceRenderInfo)

Aggregations

FlameRenderer (org.jwildfire.create.tina.render.FlameRenderer)1 RenderInfo (org.jwildfire.create.tina.render.RenderInfo)1 SliceRenderInfo (org.jwildfire.create.tina.render.SliceRenderInfo)1