Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2015-02-05 22:32:15 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2015-02-18 20:59:54 +0300
commit017c9f143d13294bbace5ef2e8159e9d96325dad (patch)
tree23f75fcca00a9a1910e5310adead124f5fb5068e /render_povray/ui.py
parent218a565e74375fad9c5dbdbf8871571775405565 (diff)
Added: UberPOV / POV Feature Set choice in user preferences
Added: Stochastic antialiasing for UberPOV Added: Blurry Reflection for UberPOV Improved: Defaults for AA and Depth of Field to a better quality/time Improved: UV texture transforms more closely match BI and more functionalised
Diffstat (limited to 'render_povray/ui.py')
-rw-r--r--render_povray/ui.py48
1 files changed, 34 insertions, 14 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 59d3b5c2..2d0b1099 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -269,7 +269,9 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
def draw_header(self, context):
scene = context.scene
- if scene.pov.antialias_enable:
+ if bpy.context.user_preferences.addons[__package__].preferences.branch_feature_set_povray != 'uberpov' and scene.pov.antialias_method =='2':
+ self.layout.prop(scene.pov, "antialias_enable", text="", icon='ERROR')
+ elif scene.pov.antialias_enable:
self.layout.prop(scene.pov, "antialias_enable", text="", icon='ANTIALIASED')
else:
self.layout.prop(scene.pov, "antialias_enable", text="", icon='ALIASED')
@@ -281,23 +283,41 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
layout.active = scene.pov.antialias_enable
+
row = layout.row()
row.prop(scene.pov, "antialias_method", text="")
- row.prop(scene.pov, "jitter_enable", text="Jitter")
-
- split = layout.split()
- col = split.column()
- col.prop(scene.pov, "antialias_depth", text="AA Depth")
- sub = split.column()
- sub.prop(scene.pov, "jitter_amount", text="Jitter Amount")
- if scene.pov.jitter_enable:
- sub.enabled = True
+ if bpy.context.user_preferences.addons[__package__].preferences.branch_feature_set_povray != 'uberpov' and scene.pov.antialias_method =='2':
+ col = layout.column()
+ col.alignment = 'CENTER'
+ col.label(text="Stochastic Anti Aliasing is")
+ col.label(text="Only Available with UberPOV")
+ col.label(text="Feature Set in User Preferences.")
+ col.label(text="Using Type 2 (recursive) instead")
else:
- sub.enabled = False
+ row.prop(scene.pov, "jitter_enable", text="Jitter")
+
+ split = layout.split()
+ col = split.column()
+ col.prop(scene.pov, "antialias_depth", text="AA Depth")
+ sub = split.column()
+ sub.prop(scene.pov, "jitter_amount", text="Jitter Amount")
+ if scene.pov.jitter_enable:
+ sub.enabled = True
+ else:
+ sub.enabled = False
+
+ row = layout.row()
+ row.prop(scene.pov, "antialias_threshold", text="AA Threshold")
+ row.prop(scene.pov, "antialias_gamma", text="AA Gamma")
+
+ if bpy.context.user_preferences.addons[__package__].preferences.branch_feature_set_povray == 'uberpov':
+ row = layout.row()
+ row.prop(scene.pov, "antialias_confidence", text="AA Confidence")
+ if scene.pov.antialias_method =='2':
+ row.enabled = True
+ else:
+ row.enabled = False
- row = layout.row()
- row.prop(scene.pov, "antialias_threshold", text="AA Threshold")
- row.prop(scene.pov, "antialias_gamma", text="AA Gamma")
class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):