Brecht Van Lommel
ab1b5af08d
Fix cycles OSL missing support for texture mapping paramaters found in texture
...
properties tab.
2012-11-20 17:40:10 +00:00
Campbell Barton
68e9fdeb81
code cleanup: comment unused members of bmesh operator slots and some osl style edits.
2012-11-20 14:31:58 +00:00
Thomas Dinges
f92359cc29
Fix [ #33239 ] Cycles OSL : Environment Texture Rotation Incorrect:
...
* Projection mappings were not implemented yet.
2012-11-20 14:18:56 +00:00
Brecht Van Lommel
abce6309e3
Scons: better fix for OSL compiler path, so it also works on OS X.
2012-11-19 15:50:28 +00:00
Brecht Van Lommel
312abf8cb2
SCons: make OSL linking work on windows, and fix OSL compiler path issue to
...
properly expand to absolute path.
2012-11-19 14:54:35 +00:00
Jens Verwiebe
3b570440e4
OSX/scons: refine oslc compile workaround
2012-11-19 11:46:55 +00:00
Jens Verwiebe
4ece50723b
OSX/scons/osl: ready for compile now, little hack to be resolved, todo:fix a crash with shadercompile
2012-11-16 00:43:28 +00:00
Brecht Van Lommel
2324c80f50
Cycles OSL: windows build system changes to support static OSL/OIIO.
2012-11-15 17:16:27 +00:00
Thomas Dinges
1c9b548d92
Windows / Scons OSL:
...
* Initial support, still commented.
2012-11-15 16:34:22 +00:00
Brecht Van Lommel
1c410ab6e7
Fix #33183 : cycles bump mapping was not executed with only an AO node in a material.
2012-11-15 14:08:46 +00:00
Sergey Sharybin
9eccf40daa
OSL Scons rules
...
Initial support of OSL builds using SCons build system. Only tested on Linux now.
No changes to configuration files themselves -- for now check how it's configured
for linux buildbot (it was already horror to make all this changes and verify them,
changes to linux-config.py could easily be done later).
Currently WITH_BF_STATICOSL and WITH_BF_STATICLLVM are more like rudiments because
linking against oslexec requires special trick with --whole-archive. We woul either
need to find a way dealing with this oslexec less hackish or drop STATICOSL and
STATICLLVM flags. Will keep dropping this flags for until we have "final" build
rules for OSL.
Still can not make 32bit linux rendering with OSL -- blender simply crashes when
starting rendering. So for time being this issues are solving disabled OSL for
32bit build slaves.
2012-11-15 13:11:12 +00:00
Brecht Van Lommel
e73408f247
Cycles: add strength input for normal map node.
2012-11-08 16:35:20 +00:00
Brecht Van Lommel
209cd25745
Cycles OSL: phong_ramp(N, exponent, colors[8]) closure added, which works like
...
a specular ramp shader. Note this is OSL only still, for experimenting.
Patch by Thomas.
2012-11-06 19:59:07 +00:00
Brecht Van Lommel
27d647dcf8
Cycles: 4 new nodes.
...
* Tangent: generate a tangent direction for anisotropic shading. Can be either
radial around X/Y/Z axis, or from a UV map. The default tangent for the
anisotropic BSDF and geometry node is now always radial Z, for UV tangent use
this node now.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Tangent
* Normal Map: generate a perturbed normal from an RGB normal map image. This
is usually chained with an Image Texture node in the color input, to specify
the normal map image. For tangent space normal maps, the UV coordinates for
the image must match, and the image texture should be set to Non-Color mode
to give correct results.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Normal_Map
* Refraction BSDF: for best results this node should be considered as a building
block and not be used on its own, but rather mixed with a glossy node using a
fresnel type factor. Otherwise it will give quite dark results at the edges for
glossy refraction.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Refraction
* Ambient Occlusion: controls the amount of AO a surface receives, rather than
having just a global factor in the world. Note that this outputs a shader and
not a color, that's for another time.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Ambient_Occlusion
2012-11-06 19:59:02 +00:00
Brecht Van Lommel
2ba840652d
Cycles: improve Anisotropic BSDF node, changing the Roughness U/V inputs to
...
Roughness, Anisotropy and Rotation. Also a fix for automatic tangents and
OSL attribute handling.
Meaning of new sockets explained in the documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Anisotropic
2012-11-04 22:31:32 +00:00
Brecht Van Lommel
615fe0295f
Cycles OSL: refactoring and fixes
...
* Moved kernel/osl/nodes to kernel/shaders
* Renamed standard attributes to use geom:, particle:, object: prefixes
* Update stdosl.h to properly reflect the closures we support
* Fix the wrong stdosl.h being used for building shaders
* Add geom:numpolyvertices, geom:trianglevertices, geom:polyvertices attributes
2012-11-03 14:32:13 +00:00