blenderproc.python.lighting.SuncgLighting module¶
-
class
blenderproc.python.lighting.SuncgLighting.
SuncgLighting
[source]¶ Bases:
object
-
static
_make_ceiling_emissive
(obj, collection_of_mats, ceiling_emission_strength=1.5)[source]¶ Makes the given ceiling object emissive, s.t. there is always a little bit ambient light.
Parameters:
-
static
_make_lamp_emissive
(obj, light, collection_of_mats, lightbulb_emission_strength=15, lampshade_emission_strength=7)[source]¶ Adds an emission shader to the object materials which are specified in the light dictionary
Parameters: - obj (
MeshObject
) – The blender object. - light (
Tuple
[List
[str
],List
[str
]]) – A tuple of two lists. The first list specifies all materials which should act as a lightbulb, the second one lists all materials corresponding to lampshades. - collection_of_mats (
Dict
[str
,Dict
[str
,Material
]]) – A dictionary that contains materials for lamps, windows and ceilings. - lightbulb_emission_strength (
float
) – The emission strength that should be used for light bulbs. Default: 15 - lampshade_emission_strength (
float
) – The emission strength that should be used for lamp shades. Default: 7
- obj (
-
static
-
blenderproc.python.lighting.SuncgLighting.
light_suncg_scene
(lightbulb_emission_strength=15, lampshade_emission_strength=7, ceiling_emission_strength=1.5)[source]¶ Makes the lamps, windows and ceilings object emit light.
Parameters: - lightbulb_emission_strength (
float
) – The emission strength that should be used for light bulbs. Default: 15 - lampshade_emission_strength (
float
) – The emission strength that should be used for lamp shades. Default: 7 - ceiling_emission_strength (
float
) – The emission strength that should be used for the ceiling. Default: 1.5
- lightbulb_emission_strength (