Search in sources :

Example 1 with PointCloudRenderInfo

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

the class RenderPointCloudThread 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);
    PointCloudRenderInfo renderInfo = new PointCloudRenderInfo(renderWidth, renderHeight, RenderMode.PRODUCTION, zmin, zmax, maxOctreeCellSize);
    renderer.renderPointCloud(renderInfo, outFilePattern);
}
Also used : PointCloudRenderInfo(org.jwildfire.create.tina.render.PointCloudRenderInfo) FlameRenderer(org.jwildfire.create.tina.render.FlameRenderer) PointCloudRenderInfo(org.jwildfire.create.tina.render.PointCloudRenderInfo) RenderInfo(org.jwildfire.create.tina.render.RenderInfo)

Aggregations

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