Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/properties.py
| Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | enum_volume_sampling = ( | ||||
| ('MULTIPLE_IMPORTANCE', "Multiple Importance", "Combine distance and equi-angular sampling for volumes where neither method is ideal"), | ('MULTIPLE_IMPORTANCE', "Multiple Importance", "Combine distance and equi-angular sampling for volumes where neither method is ideal"), | ||||
| ) | ) | ||||
| enum_volume_interpolation = ( | enum_volume_interpolation = ( | ||||
| ('LINEAR', "Linear", "Good smoothness and speed"), | ('LINEAR', "Linear", "Good smoothness and speed"), | ||||
| ('CUBIC', "Cubic", "Smoothed high quality interpolation, but slower") | ('CUBIC', "Cubic", "Smoothed high quality interpolation, but slower") | ||||
| ) | ) | ||||
| enum_world_mis = ( | |||||
| ('OFF', "Off", "Don't sample the background, faster but might cause noise for non-solid backgrounds"), | |||||
brecht: Off -> None
OFF -> NONE | |||||
| ('AUTOMATIC', "Auto", "Automatically try to determine the best setting"), | |||||
| ('MANUAL', "Manual", "Manually set the resolution of the sampling map, higher values are slower and require more memory but reduce noise") | |||||
| ) | |||||
| enum_device_type = ( | enum_device_type = ( | ||||
| ('CPU', "CPU", "CPU", 0), | ('CPU', "CPU", "CPU", 0), | ||||
| ('CUDA', "CUDA", "CUDA", 1), | ('CUDA', "CUDA", "CUDA", 1), | ||||
| ('OPENCL', "OpenCL", "OpenCL", 2) | ('OPENCL', "OpenCL", "OpenCL", 2) | ||||
| ) | ) | ||||
| enum_texture_limit = ( | enum_texture_limit = ( | ||||
| ('OFF', "No Limit", "No texture size limit", 0), | ('OFF', "No Limit", "No texture size limit", 0), | ||||
| ▲ Show 20 Lines • Show All 794 Lines • ▼ Show 20 Lines | |||||
| class CyclesWorldSettings(bpy.types.PropertyGroup): | class CyclesWorldSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| def register(cls): | def register(cls): | ||||
| bpy.types.World.cycles = PointerProperty( | bpy.types.World.cycles = PointerProperty( | ||||
| name="Cycles World Settings", | name="Cycles World Settings", | ||||
| description="Cycles world settings", | description="Cycles world settings", | ||||
| type=cls, | type=cls, | ||||
| ) | ) | ||||
| cls.sample_as_light = BoolProperty( | cls.sample_as_light = BoolProperty( | ||||
| name="Multiple Importance Sample", | name="Multiple Importance Sample", | ||||
| description="Use multiple importance sampling for the environment, " | description="Legacy option, don't use anymore!", | ||||
brechtUnsubmitted Not Done Inline ActionsWe can remove this property, see below. brecht: We can remove this property, see below. | |||||
| "enabling for non-solid colors is recommended", | |||||
| default=True, | default=True, | ||||
| ) | ) | ||||
| cls.sampling_type = EnumProperty( | |||||
| name="Sampling type", | |||||
| description="How to sample the background light", | |||||
| items=enum_world_mis, | |||||
| default='AUTOMATIC', | |||||
| ) | |||||
brechtUnsubmitted Not Done Inline Actionssampling_type -> sampling_method brecht: sampling_type -> sampling_method
Sampling type -> Sampling Method | |||||
| cls.sample_map_resolution = IntProperty( | cls.sample_map_resolution = IntProperty( | ||||
| name="Map Resolution", | name="Map Resolution", | ||||
| description="Importance map size is resolution x resolution; " | description="Importance map size is 2*resolution x resolution; " | ||||
| "higher values potentially produce less noise, at the cost of memory and speed", | "higher values potentially produce less noise, at the cost of memory and speed", | ||||
| min=4, max=8192, | min=4, max=8192, | ||||
| default=1024, | default=1024, | ||||
| ) | ) | ||||
| cls.samples = IntProperty( | cls.samples = IntProperty( | ||||
| name="Samples", | name="Samples", | ||||
| description="Number of light samples to render for each AA sample", | description="Number of light samples to render for each AA sample", | ||||
| min=1, max=10000, | min=1, max=10000, | ||||
| ▲ Show 20 Lines • Show All 574 Lines • Show Last 20 Lines | |||||
Off -> None
OFF -> NONE