[Bf-extensions-cvs] [07d0314] master: *added: first implementation of procedural textures *fixed:packed textures *fixed:library objects
Maurice Raybaud
noreply at git.blender.org
Thu Feb 27 22:53:22 CET 2014
Commit: 07d031412aa45b04998741f2810bb335ada228f9
Author: Maurice Raybaud
Date: Thu Feb 27 22:53:01 2014 +0100
https://developer.blender.org/rBA07d031412aa45b04998741f2810bb335ada228f9
*added: first implementation of procedural textures
*fixed:packed textures
*fixed:library objects
===================================================================
M render_povray/__init__.py
M render_povray/render.py
M render_povray/ui.py
===================================================================
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 1aa72f1..15184b6 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -20,19 +20,17 @@
bl_info = {
"name": "POV-Ray 3.7",
- "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, "
- "Constantin Rahn, Bastien Montagne",
+ "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn, Bastien Montagne",
"version": (0, 0, 9),
"blender": (2, 57, 0),
"location": "Render > Engine > POV-Ray 3.7",
"description": "Basic POV-Ray 3.7 integration for blender",
- "warning": "both POV-Ray 3.7 and this script are beta",
+ "warning": "this script is RC",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
- "Scripts/Render/POV-Ray",
+ "Scripts/Render/POV-Ray",
"tracker_url": "https://developer.blender.org/T23145",
"category": "Render"}
-
if "bpy" in locals():
import imp
imp.reload(ui)
@@ -43,6 +41,7 @@ else:
import bpy
from bpy.types import (AddonPreferences,
PropertyGroup,
+ Operator,
)
from bpy.props import (StringProperty,
BoolProperty,
@@ -56,7 +55,8 @@ else:
from . import render
from . import update_files
-
+def string_strip_hyphen(name):
+ return name.replace("-", "")
###############################################################################
# Scene POV properties.
@@ -67,6 +67,10 @@ class RenderPovSettingsScene(PropertyGroup):
name="Enable Tempfiles",
description="Enable the OS-Tempfiles. Otherwise set the path where to save the files",
default=True)
+ pov_editor = BoolProperty(
+ name="POV-Ray editor",
+ description="Don't Close POV-Ray editor after rendering (Overriden by /EXIT command)",
+ default=False)
deletefiles_enable = BoolProperty(
name="Delete files",
description="Delete files after rendering. Doesn't work with the image",
@@ -419,7 +423,452 @@ class RenderPovSettingsTexture(PropertyGroup):
# "it points at. pigment {} expected",
# default="")
-
+
+
+ tex_pattern_type = EnumProperty(
+ name="Texture_Type",
+ description="Choose between Blender or POV-Ray parameters to specify texture",
+ items= (('agate', 'Agate', '','PLUGIN', 0), ('aoi', 'Aoi', '', 'PLUGIN', 1),
+ ('average', 'Average', '', 'PLUGIN', 2), ('boxed', 'Boxed', '', 'PLUGIN', 3),
+ ('bozo', 'Bozo', '', 'PLUGIN', 4), ('bumps', 'Bumps', '', 'PLUGIN', 5),
+ ('cells', 'Cells', '', 'PLUGIN', 6), ('crackle', 'Crackle', '', 'PLUGIN', 7),
+ ('cubic', 'Cubic', '', 'PLUGIN', 8), ('cylindrical', 'Cylindrical', '', 'PLUGIN', 9),
+ ('density_file', 'Density', '(.df3)', 'PLUGIN', 10),
+ ('dents', 'Dents', '', 'PLUGIN', 11),
+ ('fractal', 'Fractal', '', 'PLUGIN', 12),
+ ('function', 'Function', '', 'PLUGIN', 13),
+ ('gradient', 'Gradient', '', 'PLUGIN', 14), ('granite', 'Granite', '', 'PLUGIN', 15),
+ ('image_pattern', 'Image pattern', '', 'PLUGIN', 16),
+ ('leopard', 'Leopard', '', 'PLUGIN', 17),
+ ('marble', 'Marble', '', 'PLUGIN', 18), ('onion', 'Onion', '', 'PLUGIN', 19),
+ ('pigment_pattern', 'pigment pattern', '', 'PLUGIN', 20),
+ ('planar', 'Planar', '', 'PLUGIN', 21), ('quilted', 'Quilted', '', 'PLUGIN', 22),
+ ('radial', 'Radial', '', 'PLUGIN', 23), ('ripples', 'Ripples', '', 'PLUGIN', 24),
+ ('slope', 'Slope', '', 'PLUGIN', 25),
+ ('spherical', 'Spherical', '', 'PLUGIN', 26), ('spiral1', 'Spiral1', '', 'PLUGIN', 27),
+ ('spiral2', 'Spiral2', '', 'PLUGIN', 28), ('spotted', 'Spotted', '', 'PLUGIN', 29),
+ ('waves', 'Waves', '', 'PLUGIN', 30), ('wood', 'Wood', '', 'PLUGIN', 31),
+ ('wrinkles', 'Wrinkles', '', 'PLUGIN', 32), ('brick', "Brick", "", 'PLUGIN', 33),
+ ('checker', "Checker", "", 'PLUGIN', 34), ('hexagon', "Hexagon", "", 'PLUGIN', 35),
+ ('object', "Mesh", "", 'PLUGIN', 36), ('emulator', "Internal Emulator", "", 'PLUG', 37)),
+ default='emulator',
+ )
+
+ magnet_style = EnumProperty(
+ name="Magnet style",
+ description="magnet or julia",
+ items=(('mandel', "Mandelbrot", ""),('julia', "Julia", "")),
+ default='julia')
+
+ magnet_type = IntProperty(
+ name="Magnet_type",
+ description="1 or 2",
+ min=1, max=2, default=2)
+
+ warp_types = EnumProperty(
+ name="Warp Types",
+ description="Select the type of warp",
+ items=(('PLANAR', "Planar", ""), ('CUBIC', "Cubic", ""), ('SPHERICAL', "Spherical", ""),
+ ('TOROIDAL', "Toroidal", ""), ('CYLINDRICAL', "Cylindrical", ""),('NONE', "None", "No indentation")),
+ default='NONE')
+
+ warp_orientation = EnumProperty(
+ name="Warp Orientation",
+ description="Select the orientation of warp",
+ items=(('x', "X", ""), ('y', "Y", ""), ('z', "Z", "")),
+ default='y')
+
+ wave_type = EnumProperty(
+ name="Waves type",
+ description="Select the type of waves",
+ items=(('ramp', "Ramp", ""), ('sine', "Sine", ""), ('scallop', "Scallop", ""), ('cubic', "Cubic", ""),
+ ('poly', "Poly", ""), ('triangle', 'Triangle', "")),
+ default='ramp')
+
+ gen_noise = IntProperty(
+ name="Noise Generators",
+ description="Noise Generators",
+ min=1, max=3, default=1)
+
+ warp_dist_exp = FloatProperty(
+ name="Distance exponent",
+ description="Distance exponent",
+ min=0.0, max=100.0, default=1.0)
+
+ warp_tor_major_radius = FloatProperty(
+ name="Major radius",
+ description="Torus is distance from major radius",
+ min=0.0, max=5.0, default=1.0)
+
+
+ warp_turbulence_x = FloatProperty(
+ name="Turbulence X",
+ description="Turbulence X",
+ min=0.0, max=5.0, default=0.0)
+
+ warp_turbulence_y = FloatProperty(
+ name="Turbulence Y",
+ description="Turbulence Y",
+ min=0.0, max=5.0, default=0.0)
+
+ warp_turbulence_z = FloatProperty(
+ name="Turbulence Z",
+ description="Turbulence Z",
+ min=0.0, max=5.0, default=0.0)
+
+ modifier_octaves = IntProperty(
+ name="Turbulence octaves",
+ description="Turbulence octaves",
+ min=1, max=10, default=1)
+
+ modifier_lambda = FloatProperty(
+ name="Turbulence lambda",
+ description="Turbulence lambda",
+ min=0.0, max=5.0, default=1.00)
+
+ modifier_omega = FloatProperty(
+ name="Turbulence omega",
+ description="Turbulence omega",
+ min=0.0, max=10.0, default=1.00)
+
+ modifier_phase = FloatProperty(
+ name="Phase",
+ description="The phase value causes the map entries to be shifted so that the map starts and ends at a different place.",
+ min=0.0, max=2.0, default=0.0)
+
+ modifier_frequency = FloatProperty(
+ name="Frequency",
+ description="The frequency keyword adjusts the number of times that a color map repeats over one cycle of a pattern.",
+ min=0.0, max=25.0, default=2.0)
+
+ modifier_turbulence = FloatProperty(
+ name="Turbulence",
+ description="Turbulence",
+ min=0.0, max=5.0, default=2.0)
+
+ modifier_numbers = IntProperty(
+ name="Numbers",
+ description="Numbers",
+ min=1, max=27, default=2)
+
+ modifier_control0 = IntProperty(
+ name="Control0",
+ description="Control0",
+ min=0, max=100, default=1)
+
+ modifier_control1 = IntProperty(
+ name="Control1",
+ description="Control1",
+ min=0, max=100, default=1)
+
+ brick_size_x = FloatProperty(
+ name="Brick size x",
+ description="",
+ min=0.0000, max=1.0000, default=0.2500)
+
+ brick_size_y = FloatProperty(
+ name="Brick size y",
+ description="",
+ min=0.0000, max=1.0000, default=0.0525)
+
+ brick_size_z = FloatProperty(
+ name="Brick size z",
+ description="",
+ min=0.0000, max=1.0000, default=0.1250)
+
+ brick_mortar = FloatProperty(
+ name="Mortar",
+ description="Mortar",
+ min=0.000, max=1.500, default=0.01)
+
+ julia_complex_1 = FloatProperty(
+ name="Julia Complex 1",
+ description="",
+ min=0.000, max=1.500, default=0.360)
+
+ julia_complex_2 = FloatProperty(
+ name="Julia Complex 2",
+ description="",
+ min=0.000, max=1.500, default=0.250)
+
+ f_iter = IntProperty(
+ name="Fractal Iteration",
+ description="",
+ min=0, max=100, default=20)
+
+ f_exponent = IntProperty(
+ name="Fractal Exponent",
+ description="",
+ min=2, max=33, default=2)
+
+ f_ior = IntProperty(
+ name="Fractal Interior",
+ description="",
+ min=1, max=6, default=1)
+
+ f_ior_fac = FloatProperty(
+ name="Fractal Interior Factor",
+ description="",
+ min=0.0, max=10.0, default=1.0)
+
+ f_eor = IntProperty(
+ name="Fractal Exterior",
+ description="",
+ min=1, max=8
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list