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);
}
Aggregations