DLR-RM / BlenderProc

A procedural Blender pipeline for photorealistic training image generation
GNU General Public License v3.0
2.74k stars 445 forks source link

How to increase photorealism? #983

Closed fortminors closed 11 months ago

fortminors commented 11 months ago

Describe the issue

I am looking for a way to configure the camera/renderer so that the rendered images look more realistic. At the moment, one could tell quite easily that the images do not look real enough. Perhaps, there is a way to toggle a more time/power consuming renderer that would achieve better results?

I am adding what I toggle currently for the renderer below.

Minimal code example

bproc.renderer.set_noise_threshold(0)
bproc.renderer.set_denoiser('INTEL')

Files required to run the code

No response

Expected behavior

I expect to find a way that increases the quality of rendering to its limits

BlenderProc version

v2.6.1

cornerfarmer commented 11 months ago

Could you provide an example image which shows the lack in realism that you mean? The code you wrote only decreases the noise in the rendered images, but that is probably not what you mean?

fortminors commented 11 months ago

What I mean is generally, in order to increase the render quality, are there any options to choose from? ie for the examples this library provides, could I somehow tweak the settings to make them more realistic? Or is it mostly dependent on light and materials used?

cornerfarmer commented 11 months ago

Hey @fortminors, sorry for the late response. In general, you get realistic images by having realistic lighting and good materials and meshes. You can take a look at the front_3d_with_improved_mat example, which uses high quality materials. Also for realistic lighting, you could use a hdri environment map, as done here: https://github.com/DLR-RM/BlenderProc/blob/455cc0a76990a5e5a9395e4f2c2bfb3d76a1020c/examples/datasets/haven/main.py#L17

fortminors commented 11 months ago

Thank you! Will have a look