Rom1 wrote:film.AddSampleCount(float(film.GetXPixelCount()*film.GetYPixelCount()));
in line 554 of hitpoints.cpp (just after Film &film(*scene.camera->film);)
I had something similar to this part already...
Rom1 wrote:and I stop the rendering by adding
if (scene.camera->film->enoughSamplesPerPixel)
{
renderer->Terminate();
}
in line 608 of sppmrenderer.cpp (just after hitPoints->IncPhotonPass();)
But this is the part i was missing.
