blenderproc.python.loader.HavenEnvironmentLoader module

Load the haven environmental data to set it as an HDRi background.

blenderproc.python.loader.HavenEnvironmentLoader.get_random_world_background_hdr_img_path_from_haven(data_path)[source]

Sets the world background to a random .hdr file from the given directory.

Parameters:

data_path (str) – A path pointing to a directory containing .hdr files.

Return type:

str

Returns:

The path to a random selected path

blenderproc.python.loader.HavenEnvironmentLoader.set_world_background_hdr_img(path_to_hdr_file, strength=1.0, rotation_euler=None)[source]

Sets the world background to the given hdr_file.

Parameters:
  • path_to_hdr_file (str) – Path to the .hdr file

  • strength (float) – The brightness of the background.

  • rotation_euler (Union[list, Euler, ndarray, None]) – The euler angles of the background.