Blenderproc: generate images with differnt lighting conditions and environment

Created on 15 May 2021  路  7Comments  路  Source: DLR-RM/BlenderProc

hello authors,

i have modeled some traffic sign baords in blender, how can i add different lighting conditions (day and night) and different environment effects (snow, fog). is "bop_object_physics_positioning" a good example to start with?
Screenshot from 2021-05-15 17-01-25

thank you

question first answer provided

Most helpful comment

@soans1994 Hi,

Randomize chosen texture between singular pipeline runs (more like reruns as per this explanation) via the sampler.Path (there is an example) or via changing the respective <args:x> value that you set to the run.py (more info in this post).

P.S.: also there is a direct pasting way described here.

All 7 comments

@soans1994 Hi,

is "bop_object_physics_positioning" a good example to start with?

Depending on the details of what you are trying to do. There is no avoiding learning the details of the pipeline implementation unless there is a perfectly fitting configuration file for your case, so if you choose some sort of the configuration file as a base, make sure you understand what each module does. Then, I guess, you will see if it fits your case.

I personally would advise you to start from scratch, adding module after module in the debug mode of the BlenderProc, the pipeline would be much more controllable.

how can i add different lighting conditions

There are many answers on a variety of questions provided in the well-documented source code, examples, and github issues history of BlenderProc. In combination such quick search-and-read would reveal the existence of the various light interfaces, as well as the existence of the light_sampling example. Additionally, one may find similar questions that have an answer already provided.

different environment effects (snow, fog)

I am afraid we do not have dedicated modules/functions for that at the moment (@themasterlink, do we?) but you can alwasy try something yourself, just remember that we are alwas open for PRs.

@ideas-man thanks for the solutions. i read the light sampling documents. how can i add the background scene of a city. if i create a city scene in the same blend file, how can i call this in the config file?

blend file

For loading from .blend files refer to the respective Loader (BlendLoaderModule).

@ideas-man
i tried the 3d backround, but, if want to use mutliple street images as background for my synthetic dataset, how can i achieve this?

@soans1994 Hi,

Randomize chosen texture between singular pipeline runs (more like reruns as per this explanation) via the sampler.Path (there is an example) or via changing the respective <args:x> value that you set to the run.py (more info in this post).

P.S.: also there is a direct pasting way described here.

@ideas-man thank you for the new updates. I will update the blenderproc repo.

I assume this helped. I close this for now.

Was this page helpful?
0 / 5 - 0 ratings