[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4096] contrib/py/scripts/addons/ online_mat_lib/material-library/bundled/cycles: add effects/wireframe_osl. bcm & patterns/sierpinski_squares_osl.bcm

Brendon Murphy meta.androcto1 at gmail.com
Sun Dec 23 03:25:51 CET 2012


Revision: 4096
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4096
Author:   meta-androcto
Date:     2012-12-23 02:25:44 +0000 (Sun, 23 Dec 2012)
Log Message:
-----------
add effects/wireframe_osl.bcm & patterns/sierpinski_squares_osl.bcm

Modified Paths:
--------------
    contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/index.xml

Added Paths:
-----------
    contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.bcm
    contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.jpg
    contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.bcm
    contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.jpg

Added: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.bcm
===================================================================
--- contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.bcm	                        (rev 0)
+++ contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.bcm	2012-12-23 02:25:44 UTC (rev 4096)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<material view_color="rgb(0.80000, 0.80000, 0.80000)" sample_lamp="True">
+	<nodes>
+		<node type="OUTPUT_MATERIAL" loc="300, 300" />
+		<node type="MIX_SHADER" fac="0.5" loc="75, 304" />
+		<node type="BSDF_DIFFUSE" color="rgba(0.0, 0.0, 0.0, 1.0)" roughness="0.0" loc="-149, 133" />
+		<node type="BSDF_DIFFUSE" color="rgba(0.14667, 0.26590, 0.39998, 0.0)" roughness="0.0" loc="-299, 265" />
+		<node type="SCRIPT" mode="INTERNAL" script="0" line_width="0.99998" raster="1" loc="-142, 435" />
+		<node type="BSDF_TRANSPARENT" color="rgba(1.0, 1.0, 1.0, 1.0)" loc="-115, 257" />
+	</nodes>
+	<links>
+		<link to="0" input="0" from="1" output="0" />
+		<link to="1" input="0" from="4" output="0" />
+		<link to="1" input="2" from="2" output="0" />
+		<link to="5" input="0" from="3" output="0" />
+		<link to="1" input="1" from="5" output="0" />
+	</links>
+	<scripts>
+		<script name="TDwireframe.osl.001" id="0">
+<br />/*<br />    Wireframe texture by Thomas Dinges (c)2012<br />    http://www.openshading.com/osl/example-shaders/<br />*/<br /><br />#include &quot;stdosl.h&quot;<br />#include &quot;oslutil.h&quot;<br /><br />shader TDwireframe(<br />    float Line_Width = 2.0,<br />    int Raster = 1,<br />    output float Factor = 0.0)<br />{<br />    //Factor = wireframe(&quot;triangles&quot;, Line_Width, Raster);<br />    /*  currently blender always provides triangles at this point in the render <br />        as in fully triangulated mesh that the render engine works with<br />        at some stage the polygons option will provide original poly edges instead */<br />    Factor = wireframe(&quot;polygons&quot;, Line_Width, Raster);<br />}<br /><br /><br />		
+		</script>
+	</scripts>
+</material>
\ No newline at end of file

Added: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.jpg
===================================================================
(Binary files differ)


Property changes on: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/effects/wireframe_osl.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/index.xml
===================================================================
--- contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/index.xml	2012-12-23 00:31:13 UTC (rev 4095)
+++ contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/index.xml	2012-12-23 02:25:44 UTC (rev 4096)
@@ -49,6 +49,7 @@
 		<material name="Hex Tile OSL" href="hex_tile_osl" by="varkenvarken" stars="4" addon="0.4" />
 		<material name="Hex Wire OSL" href="hex_wire_osl" by="varkenvarken" stars="4" complexity="complex" addon="0.4" />
 		<material name="Hex Color OSL" href="hex_color_osl" by="varkenvarken" stars="4" complexity="complex" addon="0.4" />
+		<material name="Sierpinski Squares OSL" href="sierpinski_squares_osl" by="elbrujodelatribu" stars="4" complexity="complex" addon="0.4" />
 	</category>
 	<category title="Plastics" folder="plastics" addon="0.4">
 		<material name="Toy Brick (Red)" href="toy_brick_red" by="Peter Cassetta" stars="4" addon="0.4" />
@@ -75,7 +76,7 @@
 		<material name="Weave Test" href="weave_test" by="niabot" stars="4" complexity="complex" addon="0.4" />
 	</category>
 	<category title="Wood" folder="wood" addon="0.4">
-		<material name="Parquete Tile Osl" href="parquete_tile_osl" by="sambler" stars="4" complexity="intermediate" addon="0.4" />
+		<material name="Parquete Tile OSL" href="parquete_tile_osl" by="sambler" stars="4" complexity="intermediate" addon="0.4" />
 		<material name="Polished Walnut" href="polished_walnut" by="Peter Cassetta" stars="4" complexity="intermediate" addon="0.4" />
 		<material name="Rough Pine" href="rough_pine" by="Peter Cassetta" stars="4" complexity="intermediate" addon="0.4" />
 		<material name="Rough Walnut" href="rough_walnut" by="Peter Cassetta" stars="3" complexity="intermediate" addon="0.4" />

Added: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.bcm
===================================================================
--- contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.bcm	                        (rev 0)
+++ contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.bcm	2012-12-23 02:25:44 UTC (rev 4096)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<material view_color="rgb(0.80000, 0.80000, 0.80000)" sample_lamp="True">
+	<nodes>
+		<node type="BRIGHTCONTRAST" color="rgba(1.0, 1.0, 1.0, 1.0)" bright="-0.05000" contrast="0.30000" loc="223, 395" />
+		<node type="TANGENT" direction="RADIAL" axis="Y" loc="199, 258" />
+		<node type="MAPPING" translation="Vector(0.0, 0.0, 0.0)" rotation="Vector(0.0, 0.0, 0.0)" scale="Vector(1.0, 0.89999, 1.0)" use_min="False" use_max="False" vector="Vector(0.0, 0.0, 0.0)" loc="-659, 401" />
+		<node type="TEX_COORD" dupli="False" loc="-889, 332" />
+		<node type="VALTORGB" interpolation="LINEAR" fac="0.5" stops="8" stop1="0.0|rgba(0.42573, 0.38247, 0.05731, 1.0)" stop2="0.25|rgba(0.25, 0.20410, 0.0, 1.0)" stop3="0.5|rgba(0.5, 0.0, 0.05438, 1.0)" stop4="0.625|rgba(0.0, 0.17271, 0.02292, 1.0)" stop5="0.75|rgba(0.50702, 0.0, 0.52719, 1.0)" stop6="0.875|rgba(0.17083, 0.14998, 0.16761, 1.0)" stop7="0.9375|rgba(0.08121, 0.42573, 0.0, 1.0)" stop8="1.0|rgba(0.14220, 0.14909, 0.44060, 1.0)" loc="-67, 357" />
+		<node type="OUTPUT_MATERIAL" loc="733, 388" />
+		<node type="BSDF_ANISOTROPIC" color="rgba(0.80000, 0.80000, 0.80000, 1.0)" roughness="0.09999" anisotropy="0.80000" rotation="0.49999" loc="411, 402" />
+		<node type="SCRIPT" mode="INTERNAL" script="0" zoom="0.05000" vector="Vector(0.0, 0.0, 0.0)" maxiterations="6.0" loc="-379, 400" />
+	</nodes>
+	<links>
+		<link to="0" input="0" from="4" output="0" />
+		<link to="4" input="0" from="7" output="1" />
+		<link to="6" input="0" from="0" output="0" />
+		<link to="7" input="1" from="2" output="0" />
+		<link to="2" input="0" from="3" output="2" />
+		<link to="5" input="0" from="6" output="0" />
+		<link to="6" input="5" from="1" output="0" />
+	</links>
+	<scripts>
+		<script name="sierpinski squares.osl" id="0">
+#include "stdosl.h"<br /><br />float genCheck(vector p, float res)<br />{<br />    return (mod(res * p[0], 1.0) &lt; 0.5 ^ mod(res * p[1], 1.0) &lt; 0.5) ?<br />        0.0 : 1.0;<br />}<br /><br />shader sierpinski_squares(<br />    float Zoom = 1.0,<br />    vector Vector = P,<br />    float MaxIterations = 10.0,<br />    output float Fac = 1.0,<br />    output color ColorOut = 0.8)    <br />{<br />    vector p = Vector/(2.0*Zoom);<br />    float diExp = 1.0;<br />    float result = genCheck(p,1.0);<br /><br />    for(float i = 0.7; i &lt;= MaxIterations; i++)<br />    {<br />        result += genCheck(p,diExp) / i;<br /><br />        diExp *= 2.0;<br />    }<br />    result /= MaxIterations / 2.0;<br /><br />    Fac = result;<br />    ColorOut = color(result,result,result);<br />}<br />
+		</script>
+	</scripts>
+</material>
\ No newline at end of file

Added: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.jpg
===================================================================
(Binary files differ)


Property changes on: contrib/py/scripts/addons/online_mat_lib/material-library/bundled/cycles/patterns/sierpinski_squares_osl.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream



More information about the Bf-extensions-cvs mailing list