chunky-dev / chunky

A path tracer to create realistic images of your Minecraft worlds.
https://chunky-dev.github.io/docs
GNU General Public License v3.0
642 stars 76 forks source link

Render only part of the scene with a lot of noise #344

Closed marcbal closed 4 years ago

marcbal commented 8 years ago

Some render are very long just because of some part of the scene with a lot of noise. Is it possible to find a way to render only this part when there is no need to continue rendering the rest of the image ?

empirebuilder1 commented 8 years ago

That's not how the raytracing engine works.

Turn off emitters if you want shorter render times.

marcbal commented 8 years ago

Why the raytracing couldn't work only on a part of the image?

Each pathtrace is only for 1 pixel of the rendering. So, it is possible to select a part of the rendering image, where the pathtracing continue to work, and ignore the pixels outside this chunk of the image.

It's just a suggestion, and I know that removing emitters will reduce the render time. But it's not what I want.

empirebuilder1 commented 8 years ago

It's not how the current engine works. While it might be possible, it'd require a change to how it merges the calculations.

Actually on a second, less personal anger fueled check, it might not be quite such a bad idea. However, emitters (relatively) close to the camera tend to scatter light across the entire scene, and probably would only be effective later on in a render.

leMaik commented 4 years ago

This pretty much duplicates #150, so I'll close it. With a few changes to the way that SPP are stored (per pixel instead of globally), this should be possible to implement.

quantumgolem commented 4 years ago

@leMaik Are there any plans on implementing this on the roadmap?

leMaik commented 4 years ago

@sn0wyfall This is closed as a duplicate, please keep an eye on #150 for updates. :-)

That said, this is not a top priority. If someone wants to look into this, PRs are welcome!