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>2019-05-05 23:00:14 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2019-05-05 23:00:14 +0300
commit3412140b3102207f440513721677ea75f30615d9 (patch)
treecea8db6b1e3f67385579ce5e9bc52408675fa8f8 /render_povray/__init__.py
parent792f4d5f69c3207176ef14ce9bee518b0ca66ea8 (diff)
Test: Adding back some UI list for World textures
Diffstat (limited to 'render_povray/__init__.py')
-rw-r--r--render_povray/__init__.py85
1 files changed, 80 insertions, 5 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index fabe865d..b7ceb5ef 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -20,14 +20,14 @@
bl_info = {
"name": "POV-3.7",
- "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, "
- "Constantin Rahn, Bastien Montagne, Leonid Desyatkov",
+ "author": "Campbell Barton, Maurice Raybaud, Leonid Desyatkov, "
+ "Bastien Montagne, Constantin Rahn, Silvio Falcinelli",
"version": (0, 1, 0),
"blender": (2, 80, 0),
"location": "Render > Engine > POV-Ray 3.7",
- "description": "Basic POV-Ray 3.7 integration for blender",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
- "Scripts/Render/POV-Ray",
+ "description": "POV-Ray 3.7 integration for blender",
+ "wiki_url": "https://archive.blender.org/wiki/index.php/"
+ "Extensions:2.6/Py/Scripts/Render/POV-Ray/",
"category": "Render",
}
@@ -3592,6 +3592,79 @@ class RenderPovSettingsWorld(PropertyGroup):
precision=4, step=0.01, min=0, soft_max=1,
default=(0.0, 0.0, 0.0), options={'ANIMATABLE'}, subtype='COLOR',
)
+ world_texture_list_index: IntProperty(
+ name = "Index for texture_slots",
+ default = 0)
+class WorldTextureSlot(PropertyGroup):
+ blend_factor: FloatProperty(
+ name="Blend",
+ description="Amount texture affects color progression of the "
+ "background",
+ soft_min=0.0, soft_max=1.0, default=1.0)
+
+ horizon_factor: FloatProperty(
+ name="Horizon",
+ description="Amount texture affects color of the horizon"
+ "",
+ soft_min=0.0, soft_max=1.0, default=1.0)
+
+ object: StringProperty(
+ name="Object",
+ description="Object to use for mapping with Object texture coordinates",
+ default="")
+
+ texture_coords: EnumProperty(
+ name="Coordinates",
+ description="Texture coordinates used to map the texture onto the background",
+ items=(("VIEW", "View", "Use view vector for the texture coordinates"),
+ ("GLOBAL", "Global", "Use global coordinates for the texture coordinates (interior mist)"),
+ ("ANGMAP", "AngMap", "Use 360 degree angular coordinates, e.g. for spherical light probes"),
+ ("SPHERE", "Sphere", "For 360 degree panorama sky, spherical mapped, only top half"),
+ ("EQUIRECT", "Equirectangular", "For 360 degree panorama sky, equirectangular mapping"),
+ ("TUBE", "Tube", "For 360 degree panorama sky, cylindrical mapped, only top half"),
+ ("OBJECT", "Object", "Use linked object’s coordinates for texture coordinates")),
+ default="VIEW")
+
+ use_map_blend: BoolProperty(
+ name="Blend Map", description="Affect the color progression of the background",
+ default=True)
+
+ use_map_horizon: BoolProperty(
+ name="Horizon Map", description="Affect the color of the horizon",
+ default=False)
+
+ use_map_zenith_down: BoolProperty(
+ name="", description="Affect the color of the zenith below",
+ default=False)
+
+ use_map_zenith_up: BoolProperty(
+ name="Zenith Up Map", description="Affect the color of the zenith above",
+ default=False)
+
+ zenith_down_factor: FloatProperty(
+ name="Zenith Down",
+ description="Amount texture affects color of the zenith below",
+ soft_min=0.0, soft_max=1.0, default=1.0)
+
+ zenith_up_factor: FloatProperty(
+ name="Zenith Up",
+ description="Amount texture affects color of the zenith above",
+ soft_min=0.0, soft_max=1.0, default=1.0)
+
+'''
+#class WORLD_TEXTURE_SLOTS_UL_layerlist(bpy.types.UIList):
+# texture_slots:
+
+class WorldTextureSlots(bpy.props.PropertyGroup):
+ index = bpy.prop.PropertyInt(name='index')
+ #foo = random prop
+
+bpy.types.World.texture_slots = bpy.props.CollectionProperty(type=PropertyGroup)
+
+for i in range(18): # length of world texture slots
+ world.texture_slots.add()
+'''
+
###############################################################################
# Text POV properties.
@@ -3642,6 +3715,7 @@ classes = (
PovrayPreferences,
RenderPovSettingsCamera,
RenderPovSettingsWorld,
+ WorldTextureSlot,
RenderPovSettingsMaterial,
MaterialRaytraceMirror,
MaterialSubsurfaceScattering,
@@ -3688,6 +3762,7 @@ def register():
bpy.types.Object.pov = PointerProperty(type=RenderPovSettingsObject)
bpy.types.Camera.pov = PointerProperty(type=RenderPovSettingsCamera)
bpy.types.World.pov = PointerProperty(type=RenderPovSettingsWorld)
+ bpy.types.World.texture_slots = CollectionProperty(type = WorldTextureSlot)
bpy.types.Text.pov = PointerProperty(type=RenderPovSettingsText)