randGen = RandomGeneratorFactory.getInstance(pPrefs, pPrefs.getTinaRandomNumberGenerator(), pThreadId);
slices = pSlices;
sliceThicknessMod = pSliceThicknessMod;
sliceThicknessSamples = pSliceThicknessSamples;
prefs = pPrefs;
ctx = new FlameTransformationContext(pRenderer, randGen, pRenderPackets.get(0).getFlame().getFrame());
ctx.setPreserveZCoordinate(pRenderPackets.get(0).getFlame().isPreserveZ());
ctx.setPreview(renderer.isPreview());
}